1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import java.util.List ; 27 28 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 29 import org.infoglue.cms.controllers.kernel.impl.simple.InterceptionPointController; 30 import org.infoglue.cms.controllers.kernel.impl.simple.InterceptorController; 31 import org.infoglue.cms.entities.management.InterceptorVO; 32 33 public class ViewInterceptorAction extends InfoGlueAbstractAction 34 { 35 private static final long serialVersionUID = 1L; 36 37 private InterceptorVO interceptorVO; 38 private List allInterceptionPoints; 39 private List assignedInterceptionPoints; 40 41 public ViewInterceptorAction() 42 { 43 this(new InterceptorVO()); 44 } 45 46 public ViewInterceptorAction(InterceptorVO interceptorVO) 47 { 48 this.interceptorVO = interceptorVO; 49 } 50 51 protected void initialize(Integer interceptorId) throws Exception 52 { 53 interceptorVO = InterceptorController.getController().getInterceptorVOWithId(getInterceptorId()); 54 allInterceptionPoints = InterceptionPointController.getController().getInterceptionPointVOList(); 55 assignedInterceptionPoints = InterceptorController.getController().getInterceptionPointVOList(getInterceptorId()); 56 } 57 58 public String doExecute() throws Exception 59 { 60 initialize(getInterceptorId()); 61 62 return "success"; 63 } 64 65 public java.lang.Integer getInterceptorId() 66 { 67 return this.interceptorVO.getInterceptorId(); 68 } 69 70 public void setInterceptorId(java.lang.Integer interceptorId) 71 { 72 this.interceptorVO.setInterceptorId(interceptorId); 73 } 74 75 public java.lang.String getName() 76 { 77 return this.interceptorVO.getName(); 78 } 79 80 public java.lang.String getDescription() 81 { 82 return this.interceptorVO.getDescription(); 83 } 84 85 public java.lang.String getClassName() 86 { 87 return this.interceptorVO.getClassName(); 88 } 89 90 91 public List getAllInterceptionPoints() 92 { 93 return this.allInterceptionPoints; 94 } 95 96 public List getAssignedInterceptionPoints() 97 { 98 return this.assignedInterceptionPoints; 99 } 100 101 public InterceptorVO getInterceptorVO() 102 { 103 return this.interceptorVO; 104 } 105 106 } 107 | Popular Tags |