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.UserPropertiesController; 28 import org.infoglue.cms.entities.management.UserPropertiesVO; 29 import org.infoglue.cms.util.ConstraintExceptionBuffer; 30 31 36 37 public class UpdateUserPropertiesAction extends InfoGlueAbstractAction 38 { 39 private UserPropertiesVO userPropertiesVO; 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 UpdateUserPropertiesAction() 49 { 50 userPropertiesVO = new UserPropertiesVO(); 51 this.ceb = new ConstraintExceptionBuffer(); 52 } 53 54 public String doExecute() throws Exception 55 { 56 ceb.throwIfNotEmpty(); 58 UserPropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.userPropertiesVO); 59 60 this.getResponse().sendRedirect(returnAddress); 61 62 return NONE; 63 } 64 65 public String doSaveAndExit() throws Exception 66 { 67 UserPropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.userPropertiesVO); 68 69 return "saveAndExit"; 70 } 71 72 public String doSaveAndExitStandalone() throws Exception 73 { 74 UserPropertiesController.getController().update(this.languageId, this.contentTypeDefinitionId, this.userPropertiesVO); 75 76 return "saveAndExitStandalone"; 77 } 78 79 public void setEntityId(Integer userPropertiesId) 80 { 81 this.userPropertiesVO.setUserPropertiesId(userPropertiesId); 82 } 83 84 public java.lang.Integer getEntityId() 85 { 86 return this.userPropertiesVO.getUserPropertiesId(); 87 } 88 89 public Integer getContentTypeDefinitionId() 90 { 91 return contentTypeDefinitionId; 92 } 93 94 public void setContentTypeDefinitionId(Integer contentTypeDefinitionId) 95 { 96 this.contentTypeDefinitionId = contentTypeDefinitionId; 97 } 98 99 public String getUserName() 100 { 101 return this.userPropertiesVO.getUserName(); 102 } 103 104 public void setUserName(String userName) 105 { 106 this.userPropertiesVO.setUserName(userName); 107 } 108 109 public String getOwnerEntityId() 110 { 111 return this.userPropertiesVO.getUserName(); 112 } 113 114 public void setOwnerEntityId(String ownerEntityId) 115 { 116 this.userPropertiesVO.setUserName(ownerEntityId); 117 } 118 119 public void setLanguageId(Integer languageId) 120 { 121 this.languageId = languageId; 122 } 123 124 public java.lang.Integer getLanguageId() 125 { 126 return this.languageId; 127 } 128 129 public java.lang.String getValue() 130 { 131 return this.userPropertiesVO.getValue(); 132 } 133 134 public void setValue(java.lang.String value) 135 { 136 this.userPropertiesVO.setValue(value); 137 } 138 139 public Integer getCurrentEditorId() 140 { 141 return currentEditorId; 142 } 143 144 public void setCurrentEditorId(Integer integer) 145 { 146 currentEditorId = integer; 147 } 148 149 public String getAttributeName() 150 { 151 return this.attributeName; 152 } 153 154 public void setAttributeName(String attributeName) 155 { 156 this.attributeName = attributeName; 157 } 158 159 public String getReturnAddress() 160 { 161 return returnAddress; 162 } 163 164 public void setReturnAddress(String returnAddress) 165 { 166 this.returnAddress = returnAddress; 167 } 168 169 } 170 | Popular Tags |