📄 reviewevent.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.review.model.ReviewModel;/** * 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 ReviewEvent extends StarsEventSupport { public static final int CREATE_REVIEW = 0; public static final int CREATE_REVIEW_DATA = 1; public static final int DELETE_REVIEW = 2; public static final int UPDATE_REVIEW = 3; public static final int UPDATE_REVIEW_DATA = 4; private int actionType; private String projectID; private String reviewID; private String perspectiveID; private String conceptID; private String reviewerID; private Date rtime; private String conflictratio; private HashMap rpurpose; private HashMap rcontext; private HashMap rcontent; private String overall; private int requestId; public ReviewEvent() {} public void setInfo(int aactiontype, int requestId, String areviewID, String aperspectiveID, String aconceptID, String areviewerID, Date artime, String aconflictratio, HashMap arpurpose, HashMap arcontext, HashMap arcontent, String aoverall) { this.actionType = aactiontype; this.requestId = requestId; this.reviewID = areviewID; this.perspectiveID = aperspectiveID; this.conceptID = aconceptID; this.reviewerID = areviewerID; this.rtime = artime; this.conflictratio = aconflictratio; this.rpurpose = arpurpose; this.rcontext = arcontext; this.rcontent = arcontent; this.overall = aoverall; } public void setInfo(int aactiontype, String conceptID, String areviewID) { this.actionType = aactiontype; this.reviewID =areviewID; } // this method is used in the client public void setInfo(int aactiontype, int arequestId, String aprojectID, ReviewModel rvml) { this.actionType = aactiontype; this.requestId = arequestId; this.projectID = aprojectID; this.reviewID = rvml.getReviewID(); this.perspectiveID = rvml.getPerspectiveID(); this.conceptID = rvml.getConceptID(); this.reviewerID = rvml.getReviewerID(); this.rtime = rvml.getReviewtime(); this.conflictratio = rvml.getConflictRatio(); this.rpurpose = rvml.getRpurpose(); this.rcontext = rvml.getRcontext(); this.rcontent = rvml.getRcontent(); this.overall = rvml.getOverall(); } public int getActionType() { return actionType; } public int getRequestId() { return requestId; } public String getEventName() { return "java:comp/env/event/ReviewEvent"; } public String getReviewID() { return reviewID; } //public void setReviewID(String reviewID); public String getPerspectiveID() { return perspectiveID; } //public void setPerspectiveID(String perspectiveID); public String getConceptID() { return conceptID; } //public void setConceptID(String conceptID); public String getReviewerID() { return reviewerID; } //public void setReviewerID(String reviewerID); public String getConflictRatio() { return conflictratio; } //public void setConflictRatio(String cr); public Date getReviewtime() { return rtime; } //public void setReviewtime(Date rtime); public HashMap getRpurpose() { return rpurpose; } //public void setRpurpose(HashMap rpurpose); public HashMap getRcontext() { return rcontext; } //public void setRcontext(HashMap pcontext); public HashMap getRcontent() { return rcontent; } //public void setRcontent(HashMap rcontent); public String getOverall() { return overall; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -