|
|||||||||
| Home >> All >> com >> flexstor >> ejb >> [ user overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.ejb.user
Class FlexGroupBean

java.lang.Objectcom.flexstor.ejb.EjbBean
com.flexstor.ejb.BusinessObjectSessionBean
com.flexstor.ejb.user.FlexGroupBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class FlexGroupBean
- extends com.flexstor.ejb.BusinessObjectSessionBean
FlexGroup
FlexGroup is a role defined for several users. Several users can be placed in a FlexGroup, and then
the preferences can be defined once. A FlexGroup must have a Role in order to define itself.
A user can belong to one or more groups.
Uses cache: no State Management Type: Stateful
Configurable properties in flexdm.properties:NONE
| Field Summary | |
private java.util.Vector |
disguises
|
private java.util.Vector |
emailAddresses
|
private java.util.Vector |
ftpAddresses
|
private com.flexstor.common.data.ejb.user.GroupData |
groupData
|
private com.flexstor.ejb.user.persist.GroupPersist |
groupPersist
|
static java.lang.String |
IDENTIFIER
|
private java.util.Vector |
importSettings
|
private java.util.Hashtable |
preferences
|
private java.util.Vector |
privileges
|
private java.util.Vector |
reportTemplates
|
private com.flexstor.ejb.role.persist.RolePersist |
rolePersist
|
private java.util.Vector |
saveSearches
|
private java.util.Vector |
securityRights
|
private java.util.Vector |
sendSettings
|
private java.util.Vector |
servers
|
private int |
userRoleId
|
private com.flexstor.common.keys.ejb.RoleKey |
userRoleKey
|
private java.util.Vector |
wheres
|
| Fields inherited from class com.flexstor.ejb.EjbBean |
beanName, sCacheDirectory, sEJBVendor |
| Constructor Summary | |
FlexGroupBean()
Default constructor for the FlexGroupBean class |
|
| Method Summary | |
private void |
addPreferences(java.util.Hashtable aPrefs)
Add a Vector of prefernces to the combined collection of security rights |
private void |
addSecurityRights(int[] aSecurityRightsCollection)
Add a Vector of security rights to the combined collection of security rights |
private void |
buildRoleUnion(java.util.Vector aRoleCollection,
int roleId)
Combine all the role's collections of data to a single collection |
private java.util.Vector |
convertHashtableToVector(java.util.Hashtable hash)
Convert a hashtable to vector. |
private int[] |
convertToArray(java.util.Vector vec)
Convert a hashtable of Integer keys to an int array |
void |
ejbCreate()
EJB container calls ejbCreate in order to create an instance of the object. |
void |
ejbCreate(com.flexstor.common.keys.ejb.GroupKey key)
EJB container calls ejbCreate in order to create an instance of the object. |
void |
ejbCreate(java.lang.String aGroupName)
EJB container calls ejbCreate in order to create an instance of the object. |
void |
ejbPassivate()
A notification that signals the intent of the EJB container to remove (destroy) the entity representation in the EJB server database. |
void |
ejbRemove()
A notification that signals the intent of the EJB container to remove (destroy) the entity representation in the EJB server database. |
com.flexstor.common.data.ejb.user.GroupData |
getGroup(com.flexstor.common.keys.ejb.GroupKey aGroupKey)
Retrieve a FlexGroup data object Transaction Attribute: Not Supported |
com.flexstor.common.data.ejb.user.GroupData |
getGroup(java.lang.String aGroupName)
Retrieve an FlexGroup data object Transaction Attribute: Not Supported |
private com.flexstor.ejb.user.persist.GroupPersist |
getGroupPersist()
Retrieve the GroupPersist bean associated with this object |
com.flexstor.common.data.ejb.role.RoleData |
getGroupRoleUnion(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey,
com.flexstor.common.keys.ejb.RoleKey aRoleKey)
A user can be assigned to multiple groups, each with a role. |
java.util.Vector |
getGroups(com.flexstor.common.keys.ejb.GroupCollectionKey aKey)
Retrieve a collection of GroupData Transaction Attribute: Not Supported |
com.flexstor.common.data.ejb.role.RoleData |
getRole()
Retrieve the role associated with the cached group Transaction Attribute: Not Supported |
private com.flexstor.ejb.role.persist.RolePersist |
getRolePersistBean()
Obtain a reference to a RolePersist bean |
java.util.Hashtable |
getRoles(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey)
Retrieve all roles associated with the groups identified by this object reference Transaction Attribute: Not Supported |
java.util.Hashtable |
getRoles(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey,
com.flexstor.common.keys.ejb.RoleKey aRoleKey)
Retrieve all roles associated with the groups identified by the object references Transaction Attribute: Not Supported |
com.flexstor.common.data.ejb.role.RoleData |
getRoleUnion(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey,
com.flexstor.common.keys.ejb.RoleKey aRoleKey)
A user can be assigned to multiple groups, each with a role. |
private java.util.Vector |
removeDuplicates(java.util.Vector collectionKeys)
|
| Methods inherited from class com.flexstor.ejb.EjbBean |
assertBoolean, assertEmptyString, assertNull, buildInitialContext, cacheEnabled, cacheExists, ejbActivate, fromCache, getBeanHome, getBooleanProperty, getCacheDirectory, getEJBObject, getInitialContext, getIntegerProperty, getIntegerProperty, getProperty, getProperty, getSessionContext, keepAlive, setSessionContext, toCache, xCache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
groupPersist
private transient com.flexstor.ejb.user.persist.GroupPersist groupPersist
rolePersist
private transient com.flexstor.ejb.role.persist.RolePersist rolePersist
groupData
private com.flexstor.common.data.ejb.user.GroupData groupData
importSettings
private transient java.util.Vector importSettings
sendSettings
private transient java.util.Vector sendSettings
securityRights
private transient java.util.Vector securityRights
emailAddresses
private transient java.util.Vector emailAddresses
ftpAddresses
private transient java.util.Vector ftpAddresses
servers
private transient java.util.Vector servers
disguises
private transient java.util.Vector disguises
saveSearches
private transient java.util.Vector saveSearches
privileges
private transient java.util.Vector privileges
preferences
private transient java.util.Hashtable preferences
reportTemplates
private transient java.util.Vector reportTemplates
wheres
private transient java.util.Vector wheres
userRoleKey
private transient com.flexstor.common.keys.ejb.RoleKey userRoleKey
userRoleId
private int userRoleId
| Constructor Detail |
FlexGroupBean
public FlexGroupBean()
- Default constructor for the FlexGroupBean class
| Method Detail |
addSecurityRights
private void addSecurityRights(int[] aSecurityRightsCollection)
- Add a Vector of security rights to the combined collection of security rights
addPreferences
private void addPreferences(java.util.Hashtable aPrefs)
- Add a Vector of prefernces to the combined collection of security rights
buildRoleUnion
private void buildRoleUnion(java.util.Vector aRoleCollection, int roleId)
- Combine all the role's collections of data to a single collection
convertToArray
private int[] convertToArray(java.util.Vector vec)
- Convert a hashtable of Integer keys to an int array
convertHashtableToVector
private java.util.Vector convertHashtableToVector(java.util.Hashtable hash)
- Convert a hashtable to vector.
ejbCreate
public void ejbCreate()
throws com.flexstor.common.exceptions.ejb.EjbException,
javax.ejb.CreateException,
java.rmi.RemoteException
- EJB container calls ejbCreate in order to create an instance of the object. ejbCreate initalizes the state of
the EJB object.
This method corresponds to the create method in the home interfaceFlexGroupHome.
ejbCreate
public void ejbCreate(java.lang.String aGroupName) throws javax.ejb.CreateException, com.flexstor.common.exceptions.ejb.EjbException, com.flexstor.common.exceptions.ejb.NotFoundException, java.rmi.RemoteException
- EJB container calls ejbCreate in order to create an instance of the object. ejbCreate initalizes the state of
the EJB object.
This method corresponds to the create method in the home interfaceFlexGroupHome.
ejbCreate
public void ejbCreate(com.flexstor.common.keys.ejb.GroupKey key) throws javax.ejb.CreateException, com.flexstor.common.exceptions.ejb.EjbException, com.flexstor.common.exceptions.ejb.NotFoundException, java.rmi.RemoteException
- EJB container calls ejbCreate in order to create an instance of the object. ejbCreate initalizes the state of
the EJB object.
This method corresponds to the create method in the home interfaceFlexGroupHome.
ejbRemove
public void ejbRemove()
- A notification that signals the intent of the EJB container to remove (destroy) the
entity representation in the EJB server database. This call may be in response to the client
removing the associated session object or the container will also call ejbRemove when the session
object expires. Calls a remove on all of the EJB objects it is holding references to.
ejbPassivate
public void ejbPassivate()
- A notification that signals the intent of the EJB container to remove (destroy) the
entity representation in the EJB server database. This call may be in response to the client
removing the associated session object or the container will also call ejbRemove when the session
object expires. Calls a remove on all of the EJB objects it is holding references to.
getGroup
public com.flexstor.common.data.ejb.user.GroupData getGroup(com.flexstor.common.keys.ejb.GroupKey aGroupKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve a FlexGroup data object
Transaction Attribute: Not Supported
getGroup
public com.flexstor.common.data.ejb.user.GroupData getGroup(java.lang.String aGroupName) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve an FlexGroup data object
Transaction Attribute: Not Supported
getGroupPersist
private com.flexstor.ejb.user.persist.GroupPersist getGroupPersist() throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException
- Retrieve the GroupPersist bean associated with this object
getGroups
public java.util.Vector getGroups(com.flexstor.common.keys.ejb.GroupCollectionKey aKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve a collection of GroupData
Transaction Attribute: Not Supported
getRoleUnion
public com.flexstor.common.data.ejb.role.RoleData getRoleUnion(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey, com.flexstor.common.keys.ejb.RoleKey aRoleKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- A user can be assigned to multiple groups, each with a role. This method iterates through
the roles (including the user's default role) and creates a role which is a union of all
the group roles assigned to a user.
Transaction Attribute: Not Supported
getGroupRoleUnion
public com.flexstor.common.data.ejb.role.RoleData getGroupRoleUnion(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey, com.flexstor.common.keys.ejb.RoleKey aRoleKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- A user can be assigned to multiple groups, each with a role. This method iterates through the roles
of the groups ( whole collection keys are sent as parameter ) and creates a role which is a union of all
those groups. NOTE : the roleKey parameter represents the rolekey of the user, but this function DOES NOT
user's role into the union. If you want the user's role as wel, use getRoleUnion function.
Transaction Attribute: Not Supported
getRolePersistBean
private com.flexstor.ejb.role.persist.RolePersist getRolePersistBean() throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException
- Obtain a reference to a RolePersist bean
getRoles
public java.util.Hashtable getRoles(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve all roles associated with the groups identified by this object reference
Transaction Attribute: Not Supported
getRoles
public java.util.Hashtable getRoles(com.flexstor.common.keys.ejb.GroupCollectionKey aGroupCollectionKey, com.flexstor.common.keys.ejb.RoleKey aRoleKey) throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve all roles associated with the groups identified by the object references
Transaction Attribute: Not Supported
getRole
public com.flexstor.common.data.ejb.role.RoleData getRole() throws com.flexstor.common.exceptions.ejb.EjbException, java.rmi.RemoteException, com.flexstor.common.exceptions.ejb.NotFoundException
- Retrieve the role associated with the cached group
Transaction Attribute: Not Supported
removeDuplicates
private java.util.Vector removeDuplicates(java.util.Vector collectionKeys)
|
|||||||||
| Home >> All >> com >> flexstor >> ejb >> [ user overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC