profilemgrmodel.java

来自「<Java网络程序设计 J2EE>随书源码」· Java 代码 · 共 73 行

JAVA
73
字号
/**/package org.impact.stars.organizationmd.profilemgr.model;import org.impact.stars.organizationmd.profilemgr.model.ExplicitInformation;import org.impact.stars.organizationmd.profilemgr.exceptions.ProfileMgrAppException;/** * ProfileMgrModel is a class which models personal preferences data for a * particular user. */public class ProfileMgrModel implements java.io.Serializable {    public String userId;    public ExplicitInformation eInfo;    /**     * Class constructor specifying the user and preference information.     * @param userId    a string which represents the id of this user     * @param eInfo     an <code>ExplicitInformation</code> structure     *                  containing the personal preferences of this user     */    public ProfileMgrModel(String userId, ExplicitInformation eInfo) {        this.userId = userId;        this.eInfo = eInfo;    }    /**     * Class constructor with no arguments, used by the web tier.     */    public ProfileMgrModel() {}    /**     * Gets the string which represents the id of this user.     * @return  the string representing this user id     */    public String getUserId() {        return userId;    }    /**     * Gets the <code>ExplicitInformation</code> structure which contains the     * personal preferences for this user.     * @return  the <code>ExplicitInformation</code> object for this user     */    public ExplicitInformation getExplicitInformation() {        return eInfo;    }   /**     */    /*   public String getBanner(String favCategory) throws ProfileMgrAppException {       try {            ProfileMgrDAO dao = ProfileMgrDAOFactory.getDAO();            return dao.getBanner(favCategory);        } catch (ProfileMgrDAOSysException se) {            throw new ProfileMgrAppException(se.getMessage());        }    }*/   /**    * Performs a shallow copy of a <code>ProfileMgrModel</code> to another.    * Used only by the web tier.    * @param    other   the <code>ProfileMgrModel</code> to copy to another    */    public void copy(ProfileMgrModel other) {        this.userId = other.userId;        this.eInfo = other.eInfo;    }}

⌨️ 快捷键说明

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