?? profilemgrwebimpl.java
字號:
/* */package org.impact.stars.control.web;import org.impact.stars.organizationmd.profilemgr.model.ProfileMgrModel;import org.impact.stars.organizationmd.profilemgr.ejb.ProfileMgrLocal;import org.impact.stars.control.web.ModelManager;import org.impact.stars.control.web.ModelUpdateListener;import org.impact.stars.util.JNDINames;import org.impact.stars.util.EJBUtil;import java.rmi.RemoteException;import org.impact.stars.organizationmd.profilemgr.exceptions.ProfileMgrAppException;import org.impact.stars.control.exceptions.GeneralFailureException;import org.impact.stars.control.exceptions.StarsAppException;/** * This class is the web-tier representation of the ProfileMgr. */public class ProfileMgrWebImpl extends ProfileMgrModel implements ModelUpdateListener, java.io.Serializable { private ModelManager mm; private ProfileMgrLocal proEjb; public ProfileMgrWebImpl(ModelManager mm) { super(null, null); this.mm = mm; mm.addListener(JNDINames.PROFILEMGR_EJBHOME, this); } public ProfileMgrWebImpl() { super(); // do nothing. used for JSP useBean directive. } public void performUpdate() throws StarsAppException { // Get data from the EJB if (proEjb == null) { proEjb = mm.getProfileMgrEJB(); } try { if (proEjb != null) copy(proEjb.getDetails()); } catch (RemoteException re) { throw new GeneralFailureException(re.getMessage()); } }/* public String getBanner(String favCategory) throws ProfileMgrAppException{ ProfileMgrModel proMod = new ProfileMgrModel(); return proMod.getBanner(favCategory); }*/}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -