| |
|
| java.lang.Object hero.session.AdminSessionBean
AdminSessionBean | public class AdminSessionBean implements SessionBean,EventConstants(Code) | | The Admin Session Bean, is an stateful session bean that provides the admin API to get information about
projects and activities in which the user is admin.
The following lines shows a sample code to use this API in your application:
First of all you have to import the Admin Session files:
import hero.interfaces.AdminSessionLocalHome;
import hero.interfaces.AdminSessionLocal;
import hero.interfaces.AdminSessionHome;
import hero.interfaces.AdminSession;
import hero.interfaces.AdminSessionUtil;
Now, it is time to create the Admin Session instance:
Like this if you want to use local interfaces:
AdminSessionLocalHome adminh = (AdminSessionLocalHome)hero.interfaces.AdminSessionUtil.getLocalHome();
AdminSessionLocal adminsession = adminh.create();
or like this if you use remote interfaces:
AdminSessionHome adminh = (AdminSessionHome)hero.interfaces.AdminSessionUtil.getHome();
AdminSession adminsession = adminh.create();
Now you can call all Admin Sessions methods...
|
cvStateToNum | public int cvStateToNum(String state) throws HeroException(Code) | | Convert alpha state string to numeric state string as used in DB
|
ejbActivate | public void ejbActivate()(Code) | | |
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Create the AdminSession Bean
throws: CreateException - |
ejbPassivate | public void ejbPassivate()(Code) | | |
ejbRemove | public void ejbRemove()(Code) | | |
getActivities | public Collection getActivities() throws HeroException(Code) | | Get activities for instances/cooperatives projects in which this user is admin (admin is the role of the model administrator)
|
getActivities | public Collection getActivities(HashMap filter) throws HeroException(Code) | | Get filtered activities for instances/cooperatives projects in which this user is admin (admin is the role of the model administrator)
|
getCallbackPerformers | public Collection getCallbackPerformers() throws HeroException(Code) | | This method retrieve the list of performer assignments deployed on the server
|
getCustomInitiators | public Collection getCustomInitiators() throws HeroException(Code) | | This method retrieve the list of Initiator Mappers deployed on the server
|
getFinderByFilter | public Collection getFinderByFilter(String type, HashMap filter) throws HeroException(Code) | | Get filtered instances list for models in which this user is admin (admin is the role of the model administrator)
|
getInstancePropertyKeys | public Collection getInstancePropertyKeys() throws HeroException(Code) | | Get filtered instances list of models for property Keys
|
getInstances | public Collection getInstances() throws HeroException(Code) | | Get instances list for models in which this user is admin (admin is the role of the model administrator)
|
getInstances | public Collection getInstances(HashMap filter) throws HeroException(Code) | | Get filtered instances list for models in which this user is admin (admin is the role of the model administrator)
|
getJavaHooks | public Collection getJavaHooks(String eventType)(Code) | | This method retrieve the list of hooks deployed on the server
|
getListByPK | public Collection getListByPK(String type, Collection list, int offset, int numrows) throws HeroException(Code) | | Get subset instances list (by PK)for models in which this user is admin (admin is the role of the model administrator)
|
setSessionContext | public void setSessionContext(javax.ejb.SessionContext context)(Code) | | |
|
|
|