1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 import org.infoglue.cms.controllers.kernel.impl.simple.RolePropertiesController; 28 import org.infoglue.cms.entities.management.RolePropertiesVO; 29 import org.infoglue.cms.util.ConstraintExceptionBuffer; 30 31 36 37 public class UpdateRolePropertiesAction extends InfoGlueAbstractAction 38 { 39 private RolePropertiesVO rolePropertiesVO; 40 private Integer languageId; 41 private Integer contentTypeDefinitionId; 42 private Integer currentEditorId; 43 private String attributeName; 44 private String returnAddress; 45 46 private ConstraintExceptionBuffer ceb; 47 48 public UpdateRolePropertiesAction() 49 { 50 rolePropertiesVO = new RolePropertiesVO(); 51 this.ceb = new ConstraintExceptionBuffer(); 52 } 53 54 public String doExecute() throws Exception 55 { 56 ceb.throwIfNotEmpty(); 57 RolePropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.rolePropertiesVO); 58 59 this.getResponse().sendRedirect(returnAddress); 60 61 return NONE; 62 } 63 64 public String doSaveAndExit() throws Exception 65 { 66 RolePropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.rolePropertiesVO); 67 68 return "saveAndExit"; 69 } 70 71 public String doSaveAndExitStandalone() throws Exception 72 { 73 RolePropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.rolePropertiesVO); 74 75 return "saveAndExitStandalone"; 76 } 77 78 public void setEntityId(Integer rolePropertiesId) 79 { 80 this.rolePropertiesVO.setRolePropertiesId(rolePropertiesId); 81 } 82 83 public java.lang.Integer getEntityId() 84 { 85 return this.rolePropertiesVO.getRolePropertiesId(); 86 } 87 88 public Integer getContentTypeDefinitionId() 89 { 90 return contentTypeDefinitionId; 91 } 92 93 public void setContentTypeDefinitionId(Integer contentTypeDefinitionId) 94 { 95 this.contentTypeDefinitionId = contentTypeDefinitionId; 96 } 97 98 public String getRoleName() 99 { 100 return this.rolePropertiesVO.getRoleName(); 101 } 102 103 public void setRoleName(String roleName) 104 { 105 this.rolePropertiesVO.setRoleName(roleName); 106 } 107 108 public String getOwnerEntityId() 109 { 110 return this.rolePropertiesVO.getRoleName(); 111 } 112 113 public void setOwnerEntityId(String ownerEntityId) 114 { 115 this.rolePropertiesVO.setRoleName(ownerEntityId); 116 } 117 118 public void setLanguageId(Integer languageId) 119 { 120 this.languageId = languageId; 121 } 122 123 public java.lang.Integer getLanguageId() 124 { 125 return this.languageId; 126 } 127 128 public java.lang.String getValue() 129 { 130 return this.rolePropertiesVO.getValue(); 131 } 132 133 public void setValue(java.lang.String value) 134 { 135 this.rolePropertiesVO.setValue(value); 136 } 137 138 public Integer getCurrentEditorId() 139 { 140 return currentEditorId; 141 } 142 143 public void setCurrentEditorId(Integer integer) 144 { 145 currentEditorId = integer; 146 } 147 148 public String getAttributeName() 149 { 150 return this.attributeName; 151 } 152 153 public void setAttributeName(String attributeName) 154 { 155 this.attributeName = attributeName; 156 } 157 158 public String getReturnAddress() 159 { 160 return returnAddress; 161 } 162 163 public void setReturnAddress(String returnAddress) 164 { 165 this.returnAddress = returnAddress; 166 } 167 } 168 | Popular Tags |