| |
|
| java.lang.Object hero.session.HistorySessionBean
HistorySessionBean | public class HistorySessionBean implements SessionBean,EventConstants(Code) | | The History Session Bean, is an stateless session bean that provides the user API to get information on
historic instance and activity properties.
The following lines shows a sample code to use this API in your application:
First of all you have to import the History Session files:
import hero.interfaces.HistorySessionLocalHome;
import hero.interfaces.HistorySessionLocal;
import hero.interfaces.HistorySessionHome;
import hero.interfaces.HistorySession;
import hero.interfaces.HistorySessionUtil;
Now, it is time to create the History Session instance:
Like this if you want to use local interfaces:
HistorySessionLocalHome historyh = (HistorySessionLocalHome)hero.interfaces.HistorySessionUtil.getLocalHome();
HistorySessionLocal historysession = historyh.create();
or like this if you use remote interfaces:
HistorySessionHome historyh = (HistorySessionHome)hero.interfaces.HistorySessionUtil.getHome();
HistorySession historysession = historyh.create();
Now you can call all History Sessions methods...
author: D. Parisek |
ejbActivate | public void ejbActivate()(Code) | | Internal Enterprise Java Beans method.
|
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Creates the History Session Bean. This method is the first one to invoke in order to
use HistorySession API. If the user is not authorized this method throws an exception.
throws: CreateException - |
ejbPassivate | public void ejbPassivate()(Code) | | Internal Enterprise Java Beans method.
|
ejbRemove | public void ejbRemove()(Code) | | Internal Enterprise Java Beans method.
|
getHistoryInstance | public Object getHistoryInstance(String instanceName) throws HeroException(Code) | | Get instance history attributes.
a ProjectHistoric object - get project attrs Parameters: instanceName - throws: HeroException - |
getHistoryInstanceActivityList | public Collection getHistoryInstanceActivityList(String instanceName) throws HeroException(Code) | | Get instance activity history list.
a Collection of activity names Parameters: projectName - Parameters: instanceName - throws: HeroException - |
getHistoryInstancesList | public Collection getHistoryInstancesList(String projectName) throws HeroException(Code) | | Get instance activity history list w/o pagination.
a Collection of activity names Parameters: projectName - throws: HeroException - |
getHistoryInstancesList | public Collection getHistoryInstancesList(String projectName, int startindex, int nrows) throws HeroException(Code) | | Get instance activity history list w/ pagination.
a Collection of activity names Parameters: projectName - Parameters: startindex - Parameters: nrows - throws: HeroException - |
getHistoryProjectList | public Collection getHistoryProjectList() throws HeroException(Code) | | Get list of project histories by project name w/o pagination.
a Collection of projects that have history throws: HeroException - |
getHistoryProjectList | public Collection getHistoryProjectList(int startindex, int nrows) throws HeroException(Code) | | Get list of project histories by project name w/ pagination.
a Collection of projects that have history Parameters: startindex - Parameters: nrows - throws: HeroException - |
setSessionContext | public void setSessionContext(javax.ejb.SessionContext context)(Code) | | Internal Enterprise Java Beans method.
|
|
|
|