gov.nih.nci.caarray.services.array.ejb
Class ArrayManagerEJB

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.AbstractSessionBean
      extended by gov.nih.nci.caarray.services.array.ejb.ArrayManagerEJB
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class ArrayManagerEJB
extends AbstractSessionBean
implements javax.ejb.SessionBean

ArrayManagerEJB

Author:
MujuS
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean
logger_, sessionCtx_
 
Constructor Summary
ArrayManagerEJB()
           
 
Method Summary
 long addArrayGroup(ArrayGroupData arrayGroupData)
          Adds the specified ArrayGroup to the persistence store
static long addArrayGroup(ArrayGroupData arrayGroupData, ArrayManagerDB mgrDB, javax.ejb.SessionContext sessionCtx)
          This method is shared by ExperimentManagerEJB.
 void deleteArrayGroup(long arrayGroupId)
          Retrieve a particular Array based on the id.
 void deleteProtocolApplicationFromArrayGroup(long arrayGroupId, long protAppId)
           
 long duplicateArrayGroup(long arrayGroupId, java.lang.String duplicateArrayGroupName)
          Makes a duplicate of the specified ArrayGroup.
 void ejbCreate()
           
 void ejbRemove()
          called when remove method is called.
 ArrayGroupData getArrayGroup(long arrayGroupId)
          Retrieves a particular Array given its ID.
static ArrayGroupData getArrayGroup(long arrayGroupId, java.lang.String[] requiredRoles, ArrayManagerDB mgrDB)
           
 ArrayGroupDesc[] getAvailableArrays(long arrayDesignId)
           
 ArrayGroupDesc[] search(ArraySearchCriteria searchCriteria)
           
 ArrayGroupDesc[] search(ArraySearchCriteria searchCriteria, int pageSize, int pageNum)
           
 void updateArrayGroup(ArrayGroupData arrayData)
           
 
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

ArrayManagerEJB

public ArrayManagerEJB()
Method Detail

ejbCreate

public void ejbCreate()
               throws java.rmi.RemoteException,
                      javax.ejb.CreateException
Overrides:
ejbCreate in class AbstractSessionBean
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException,
                      java.rmi.RemoteException
called when remove method is called.

Specified by:
ejbRemove in interface javax.ejb.SessionBean
Overrides:
ejbRemove in class AbstractSessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

getArrayGroup

public ArrayGroupData getArrayGroup(long arrayGroupId)
                             throws java.lang.Exception
Retrieves a particular Array given its ID.

Throws:
java.lang.Exception

getArrayGroup

public static ArrayGroupData getArrayGroup(long arrayGroupId,
                                           java.lang.String[] requiredRoles,
                                           ArrayManagerDB mgrDB)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

addArrayGroup

public long addArrayGroup(ArrayGroupData arrayGroupData)
                   throws java.lang.Exception
Adds the specified ArrayGroup to the persistence store

Returns:
- An object representing the ID of the Array being inserted or null otherwise.
Throws:
java.lang.Exception

duplicateArrayGroup

public long duplicateArrayGroup(long arrayGroupId,
                                java.lang.String duplicateArrayGroupName)
                         throws java.lang.Exception
Makes a duplicate of the specified ArrayGroup.

Returns:
- An object representing the ID of the Array being inserted or null otherwise.
Throws:
GeneralException
ObjectNotExistException
AccessDeniedException
InsertObjectException
java.lang.Exception

addArrayGroup

public static final long addArrayGroup(ArrayGroupData arrayGroupData,
                                       ArrayManagerDB mgrDB,
                                       javax.ejb.SessionContext sessionCtx)
                                throws java.lang.Exception
This method is shared by ExperimentManagerEJB.

Parameters:
arrayGroupData -
mgrDB -
sessionCtx -
Returns:
Throws:
InsertObjectException
DBException
ObjectNotExistException
GeneralException
CreateSecuredElementException
java.lang.Exception

updateArrayGroup

public void updateArrayGroup(ArrayGroupData arrayData)
                      throws java.lang.Exception
Throws:
java.lang.Exception

search

public ArrayGroupDesc[] search(ArraySearchCriteria searchCriteria)
                        throws java.lang.Exception
Throws:
java.lang.Exception

search

public ArrayGroupDesc[] search(ArraySearchCriteria searchCriteria,
                               int pageSize,
                               int pageNum)
                        throws java.lang.Exception
Throws:
java.lang.Exception

deleteArrayGroup

public void deleteArrayGroup(long arrayGroupId)
                      throws java.lang.Exception
Retrieve a particular Array based on the id.

Throws:
java.lang.Exception

getAvailableArrays

public ArrayGroupDesc[] getAvailableArrays(long arrayDesignId)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

deleteProtocolApplicationFromArrayGroup

public void deleteProtocolApplicationFromArrayGroup(long arrayGroupId,
                                                    long protAppId)
                                             throws java.lang.Exception
Throws:
java.lang.Exception