|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.AbstractSessionBean
gov.nih.nci.caarray.services.useradmin.ejb.AdminManagerEJB
public class AdminManagerEJB
This class contains the implemention of the AdminManagerEJB.
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean |
---|
logger_, sessionCtx_ |
Constructor Summary | |
---|---|
AdminManagerEJB()
|
Method Summary | |
---|---|
long |
addGroup(GroupData groupData)
Adds a new caArray Group to the persistence store with the specified data. |
long |
addUser(UserData userData)
Adds a new caArray user to the persistence store with the specified data. |
void |
ejbCreate()
|
void |
ejbRemove()
called when remove method is called. |
GroupData |
getGroup(long id)
Gets a GroupData object that matches the given Id. |
UserData |
getUser(long id)
Gets a UserData object that matches the given Id. |
java.util.Vector |
getUserGroupInfo(long userId)
Gets a Vector that has a list of all the Groups with appropriate information. |
void |
manageUserGroups(long userId,
java.lang.String[] groupAssignments)
Updates the User's Group assignments. |
GroupData[] |
searchGroups(GroupSearchCriteria criteria)
Gets a list of groups matching the criteria and returns a GroupData object for each. |
UserData[] |
searchUsers(UserSearchCriteria criteria)
Gets a list of users matching the criteria and returns a UserData object for each. |
void |
updateGroup(GroupData groupData)
Updates an existing caArray Group in the persistence store with the specified data. |
void |
updateUser(UserData userData)
Updates an existing caArray user in the persistence store with the specified data. |
Methods inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean |
---|
disableAndRememberPreviousValueForCollectionDescriptorCascadeRetrieve, disableAndRememberPreviousValueForObjectDescriptorCascadeRetrieve, ejbActivate, ejbPassivate, getUserTransaction, resetCollectionDescriptorCascadeToPreviousValue, resetObjectDescriptorCascadeToPreviousValue, setSessionContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
---|
ejbActivate, ejbPassivate, setSessionContext |
Constructor Detail |
---|
public AdminManagerEJB()
Method Detail |
---|
public void ejbCreate() throws java.rmi.RemoteException, javax.ejb.CreateException
ejbCreate
in class AbstractSessionBean
javax.ejb.CreateException
java.rmi.RemoteException
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.SessionBean
ejbRemove
in class AbstractSessionBean
javax.ejb.EJBException
java.rmi.RemoteException
public UserData[] searchUsers(UserSearchCriteria criteria) throws java.lang.Exception
java.lang.Exception
public UserData getUser(long id) throws java.lang.Exception
java.lang.Exception
public long addUser(UserData userData) throws java.lang.Exception
userData
- -
The data for the new caArray User.
java.lang.Exception
public void updateUser(UserData userData) throws java.lang.Exception
userData
- -
The data for the existing caArray User.
java.lang.Exception
public GroupData[] searchGroups(GroupSearchCriteria criteria) throws java.lang.Exception
java.lang.Exception
public GroupData getGroup(long id) throws java.lang.Exception
java.lang.Exception
public long addGroup(GroupData groupData) throws java.lang.Exception
groupData
- - The data for the new caArray Group.
java.lang.Exception
public void updateGroup(GroupData groupData) throws java.lang.Exception
groupData
- - The data for the existing caArray Group.
java.lang.Exception
public java.util.Vector getUserGroupInfo(long userId) throws java.lang.Exception
java.lang.Exception
public void manageUserGroups(long userId, java.lang.String[] groupAssignments) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |