001package org.kuali.rice.krms.dto; 002 003import org.kuali.rice.krms.api.repository.action.ActionDefinition; 004import org.kuali.rice.krms.api.repository.action.ActionDefinitionContract; 005 006import java.io.Serializable; 007import java.util.Map; 008 009/** 010 * Created with IntelliJ IDEA. 011 * User: SW Genis 012 * Date: 2013/09/04 013 * Time: 12:00 PM 014 * To change this template use File | Settings | File Templates. 015 */ 016public class ActionEditor implements ActionDefinitionContract, Serializable { 017 018 private String id; 019 private String name; 020 private String namespace; 021 private String description; 022 private String typeId; 023 private String ruleId; 024 private Integer sequenceNumber; 025 026 private Map<String, String> attributes; 027 private Long versionNumber; 028 029 public ActionEditor() { 030 super(); 031 } 032 033 public ActionEditor(ActionDefinitionContract definition){ 034 this.setId(definition.getId()); 035 this.setName(definition.getName()); 036 this.setNamespace(definition.getNamespace()); 037 this.setDescription(definition.getDescription()); 038 this.setTypeId(definition.getTypeId()); 039 this.setRuleId(definition.getRuleId()); 040 this.setSequenceNumber(definition.getSequenceNumber()); 041 042 this.setAttributes(definition.getAttributes()); 043 this.setVersionNumber(definition.getVersionNumber()); 044 } 045 046 public void setId(String id) { 047 this.id = id; 048 } 049 050 @Override 051 public String getId() { 052 return this.id; 053 } 054 055 public void setVersionNumber(Long versionNumber) { 056 this.versionNumber = versionNumber; 057 } 058 059 @Override 060 public Long getVersionNumber() { 061 return this.versionNumber; 062 } 063 064 public void setName(String name) { 065 this.name = name; 066 } 067 068 @Override 069 public String getName() { 070 return this.name; 071 } 072 073 public void setNamespace(String namespace) { 074 this.namespace = namespace; 075 } 076 077 @Override 078 public String getNamespace() { 079 return this.namespace; 080 } 081 082 public void setDescription(String description) { 083 this.description = description; 084 } 085 086 @Override 087 public String getDescription() { 088 return this.description; 089 } 090 091 public void setTypeId(String typeId) { 092 this.typeId = typeId; 093 } 094 095 @Override 096 public String getTypeId() { 097 return this.typeId; 098 } 099 100 public void setRuleId(String ruleId) { 101 this.ruleId = ruleId; 102 } 103 104 @Override 105 public String getRuleId() { 106 return this.ruleId; 107 } 108 109 public void setSequenceNumber(Integer sequenceNumber) { 110 this.sequenceNumber = sequenceNumber; 111 } 112 113 @Override 114 public Integer getSequenceNumber() { 115 return this.sequenceNumber; 116 } 117 118 public void setAttributes(Map<String, String> attributes) { 119 this.attributes = attributes; 120 } 121 122 @Override 123 public Map<String, String> getAttributes() { 124 return this.attributes; 125 } 126 127}