1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import org.infoglue.cms.controllers.kernel.impl.simple.InterceptionPointController; 27 import org.infoglue.cms.entities.management.InterceptionPointVO; 28 import org.infoglue.cms.util.ConstraintExceptionBuffer; 29 30 31 36 37 public class UpdateInterceptionPointAction extends ViewInterceptionPointAction 38 { 39 private InterceptionPointVO interceptionPointVO = new InterceptionPointVO(); 40 private ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer(); 41 42 43 public String doExecute() throws Exception 44 { 45 super.initialize(getInterceptionPointId()); 46 47 ceb.add(this.interceptionPointVO.validate()); 48 ceb.throwIfNotEmpty(); 49 50 String [] values = getRequest().getParameterValues("interceptorId"); 51 52 InterceptionPointController.getController().update(this.interceptionPointVO, values); 53 54 return "success"; 55 } 56 57 public String doSaveAndExit() throws Exception 58 { 59 doExecute(); 60 61 return "saveAndExit"; 62 } 63 64 65 66 public Integer getInterceptionPointId() 67 { 68 return this.interceptionPointVO.getInterceptionPointId(); 69 } 70 71 public void setInterceptionPointId(Integer interceptionPointId) 72 { 73 this.interceptionPointVO.setInterceptionPointId(interceptionPointId); 74 } 75 76 public InterceptionPointVO getInterceptionPointVO() 77 { 78 return this.interceptionPointVO; 79 } 80 81 public void setName(String name) 82 { 83 this.interceptionPointVO.setName(name); 84 } 85 86 public void setCategory(String category) 87 { 88 this.interceptionPointVO.setCategory(category); 89 } 90 91 public void setDescription(String description) 92 { 93 this.interceptionPointVO.setDescription(description); 94 } 95 96 public void setUsesExtraDataForAccessControl(Boolean usesExtraDataForAccessControl) 97 { 98 this.interceptionPointVO.setUsesExtraDataForAccessControl(usesExtraDataForAccessControl); 99 } 100 101 } 102 | Popular Tags |