📄 perspectiveevent.java
字号:
/* */package org.impact.stars.control.event;import java.util.Collection;import java.util.HashMap;import java.io.Serializable;import java.sql.Date;import org.impact.stars.perspectivemd.perspective.model.PerspectiveModel;/** * This event is sent from the web tier to the EJB Controller to notify * the EJB Controller that the user wants to change the Perspective model * data. */public class PerspectiveEvent extends StarsEventSupport { public static final int CREATE_PERSPECTIVE = 0; public static final int CREATE_PERSPECTIVE_DATA = 1; public static final int DELETE_PERSPECTIVE = 2; public static final int UPDATE_PERSPECTIVE = 3; public static final int UPDATE_PERSPECTIVE_DATA = 4; private int actionType; private String perspectiveID; protected String name; private String conceptID; private String stakeholderID; private Date declaretime; private String projectID; private HashMap purpose ; private HashMap context; private HashMap content; private int requestId; public PerspectiveEvent() {} public void setInfo(int aactiontype, int requestId, String aperspectiveID, String aname, String aconceptID, String astakeholderID, Date adeclaretime, String aprojectID, HashMap apurpose, HashMap acontext, HashMap acontent) { this.actionType = aactiontype; this.requestId = requestId; this.perspectiveID = aperspectiveID; this.name = aname; this.conceptID = aconceptID; this.stakeholderID = astakeholderID; this.declaretime = adeclaretime; this.projectID = aprojectID; this.purpose = apurpose; this.context = acontext; this.content = acontent; } public void setInfo(int aactiontype, String projectID, String aperspectiveID) { this.actionType = aactiontype; this.perspectiveID =perspectiveID; } public void setInfo(int aactiontype, int requestId, String projectID, PerspectiveModel psptml) { this.actionType = aactiontype; this.requestId = requestId; this.perspectiveID = psptml.getPerspectiveID(); this.name = psptml.getName(); this.conceptID = psptml.getConceptID(); this.stakeholderID = psptml.getStakeholderID(); this.declaretime = psptml.getDeclaretime(); this.projectID = psptml.getProjectID(); this.purpose = psptml.getPurpose(); this.context = psptml.getContext(); this.content = psptml.getContent(); } public int getActionType() { return actionType; } public int getRequestId() { return requestId; } public String getEventName() { return "java:comp/env/event/PerspectiveEvent"; } public String getPerspectiveID(){ return perspectiveID; } public String getName(){ return name; } public String getConceptID(){ return conceptID; } public String getStakeholderID(){ return stakeholderID; } public String getProjectID(){ return projectID; } public Date getDeclaretime(){ return declaretime; } public HashMap getPurpose(){ return purpose; } public HashMap getContext(){ return context; } public HashMap getContent(){ return content; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -