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.InterceptionPointController; 28 import org.infoglue.cms.entities.management.InterceptionPointVO; 29 import org.infoglue.cms.util.ConstraintExceptionBuffer; 30 31 34 35 public class CreateInterceptionPointAction extends InfoGlueAbstractAction 36 { 37 private ConstraintExceptionBuffer ceb; 38 private InterceptionPointVO interceptionPointVO; 39 40 41 public CreateInterceptionPointAction() 42 { 43 this(new InterceptionPointVO()); 44 } 45 46 public CreateInterceptionPointAction(InterceptionPointVO interceptionPointVO) 47 { 48 this.interceptionPointVO = interceptionPointVO; 49 this.ceb = new ConstraintExceptionBuffer(); 50 51 } 52 53 public String doExecute() throws Exception 54 { 55 ceb.add(this.interceptionPointVO.validate()); 56 ceb.throwIfNotEmpty(); 57 58 this.interceptionPointVO = InterceptionPointController.getController().create(interceptionPointVO); 59 60 return "success"; 61 } 62 63 public String doInput() throws Exception 64 { 65 return "input"; 66 } 67 68 71 72 public Integer getInterceptionPointId() 73 { 74 return this.interceptionPointVO.getInterceptionPointId(); 75 } 76 77 80 81 public String getCategory() 82 { 83 return interceptionPointVO.getCategory(); 84 } 85 86 89 public void setCategory(String category) 90 { 91 this.interceptionPointVO.setCategory(category); 92 } 93 94 97 98 public String getDescription() 99 { 100 return this.interceptionPointVO.getDescription(); 101 } 102 103 106 107 public void setDescription(String description) 108 { 109 this.interceptionPointVO.setDescription(description); 110 } 111 112 115 116 public String getName() 117 { 118 return this.interceptionPointVO.getName(); 119 } 120 121 124 125 public void setName(String name) 126 { 127 this.interceptionPointVO.setName(name); 128 } 129 130 133 134 public Boolean getUsesExtraDataForAccessControl() 135 { 136 return this.interceptionPointVO.getUsesExtraDataForAccessControl(); 137 } 138 139 142 143 public void setUsesExtraDataForAccessControl(Boolean usesExtraDataForAccessControl) 144 { 145 this.interceptionPointVO.setUsesExtraDataForAccessControl(usesExtraDataForAccessControl); 146 } 147 } 148 | Popular Tags |