⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stakeholderevent.java

📁 《Java网络程序设计.rar》包括三个网络程序的源代码。
💻 JAVA
字号:
/* */package org.impact.stars.control.event;import java.io.Serializable;//import com.sun.j2ee.blueprints.customer.util.ContactInformation;//import com.sun.j2ee.blueprints.personalization.profilemgr.model.ExplicitInformation;/** * This event is sent from the web tier to the EJB Controller to notify * the EJB Controller that a change needs to be made in the STAKEHOLDER * and ProfileMgr model data. */public class StakeholderEvent extends StarsEventSupport {    public static final int CREATE_STAKEHOLDER = 0;    public static final int DELETE_STAKEHOLDER = 1;    public static final int UPDATE_STAKEHOLDER = 2;    public static final int REFRESH_STAKEHOLDER = 3;    private int actionType;    private String userId;  //  private ContactInformation info;  //  private ExplicitInformation eInfo;    private String status;    private String password;    public StakeholderEvent() {}    public StakeholderEvent(int actionType) {        this.actionType = actionType;    }    public void setInfo(String userId, String password,                        String status) {        this.actionType = CREATE_STAKEHOLDER;        this.userId = userId;        this.password = password;        this.status = status;    }    public void setInfo(String userId, String status) {        this.actionType = UPDATE_STAKEHOLDER;        this.userId = userId;        this.status = status;    }    public int getActionType() {        return actionType;    }    public String getUserId() {        return userId;    }    public String getPassword() {        return password;    }    public String getStatus() {        return status;    }    public String getEventName() {        return "java:comp/env/event/StakeholderEvent";    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -