|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthero.session.HistorySessionBean
public class HistorySessionBean
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...
Field Summary |
---|
Fields inherited from interface hero.util.EventConstants |
---|
ADDEDGE, ADDITERATION, ADDNODE, ADDROLE, ADDUSERPROJECT, ANTICIPATING, CANCELED, CHANGEROLE, DEFAULTPROJECTVERSION, DELETEEDGE, DELETENODE, DELETEPROJECT, EDGE, EDGENAME, EVENT, FROM, ITERATION, LOG, NODE, NODEDEADLINE, NODEDEADLINES, NODEIN, NODENAME, NODEOUT, NODESTATE, NODETYPE, PROJECT, PROJECTNAME, READYINITIAL, ROLE, ROLENAME, SETEDGESTATE, SETNODEDEADLINE, SETNODEDEADLINES, SETNODEEXECUTOR, SETNODESTATE, SETUSERROLE, START, TERMINATED, TO, UNSETUSERROLE, USER, USERNAME, USERROLE |
Constructor Summary | |
---|---|
HistorySessionBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
Internal Enterprise Java Beans method. |
void |
ejbCreate()
Creates the History Session Bean. |
void |
ejbPassivate()
Internal Enterprise Java Beans method. |
void |
ejbRemove()
Internal Enterprise Java Beans method. |
hero.historic.ProjectHistoric |
getHistoryInstance(java.lang.String instanceName)
Get instance history attributes. |
java.util.Collection |
getHistoryInstanceActivityList(java.lang.String instanceName)
Get instance activity history list. |
java.util.Collection |
getHistoryInstancesList(java.lang.String projectName)
Get instance activity history list w/o pagination. |
java.util.Collection |
getHistoryInstancesList(java.lang.String projectName,
int startindex,
int nrows)
Get instance activity history list w/ pagination. |
java.util.Collection |
getHistoryProjectList()
Get list of project histories by project name w/o pagination. |
java.util.Collection |
getHistoryProjectList(int startindex,
int nrows)
Get list of project histories by project name w/ pagination. |
void |
setSessionContext(javax.ejb.SessionContext context)
Internal Enterprise Java Beans method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistorySessionBean()
Method Detail |
---|
public java.util.Collection getHistoryProjectList() throws hero.util.HeroException
hero.util.HeroException
public java.util.Collection getHistoryProjectList(int startindex, int nrows) throws hero.util.HeroException
startindex
- nrows
-
hero.util.HeroException
public hero.historic.ProjectHistoric getHistoryInstance(java.lang.String instanceName) throws hero.util.HeroException
instanceName
-
hero.util.HeroException
public java.util.Collection getHistoryInstanceActivityList(java.lang.String instanceName) throws hero.util.HeroException
projectName
- instanceName
-
hero.util.HeroException
public java.util.Collection getHistoryInstancesList(java.lang.String projectName) throws hero.util.HeroException
projectName
-
hero.util.HeroException
public java.util.Collection getHistoryInstancesList(java.lang.String projectName, int startindex, int nrows) throws hero.util.HeroException
projectName
- startindex
- nrows
-
hero.util.HeroException
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void setSessionContext(javax.ejb.SessionContext context)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |