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

java.lang.Objectcom.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.user.GroupData
- All Implemented Interfaces:
- java.io.Serializable
- public class GroupData
- extends com.flexstor.common.data.ejb.Data
This class supports state data for Group. A Data class holds
all of the state information for a corresponding class and reference
pointers to other classes
- Since:
- FLEXSTOR.db 3.0 Revision History Description of Change ---------------- --------------------------------------------------- PJH 12/19/98 Creation
- Version:
- 1.0, 12/19/98
| Field Summary | |
protected java.sql.Timestamp |
currentTimestamp
|
protected com.flexstor.common.keys.ejb.GroupKey |
groupKey
|
static java.lang.String |
IDENTIFIER
|
protected java.lang.String |
name
|
protected com.flexstor.common.data.ejb.role.RoleData |
roleData
|
protected java.util.Vector |
vAssignedUsers
|
| Fields inherited from class com.flexstor.common.data.ejb.Data |
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE |
| Constructor Summary | |
GroupData()
Default constructor for the GroupData class |
|
GroupData(java.lang.String aGroupName)
Create an GroupData class and initialize the instance with the group name |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Determine if these two objects are equal, i.e. |
java.util.Vector |
getAssignedUsers()
Gets the list of UserData objects for the users this group has been updated through the Admin Tool. |
com.flexstor.common.keys.ejb.GroupKey |
getKey()
Return the reference to this object |
java.lang.String |
getLanguage()
Retrieve the language associated with the Group's Role |
java.lang.String |
getName()
Return the group's name |
com.flexstor.common.keys.ejb.GroupKey |
getReference()
Deprecated. see getKey() |
com.flexstor.common.data.ejb.role.RoleData |
getRoleData()
Return the group role data |
com.flexstor.common.keys.ejb.RoleKey |
getRoleKey()
Return the primary key to group's role |
java.sql.Timestamp |
getTimestamp()
Return the timestamp of this object in database when the object was retrieved |
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
void |
setAssignedUsers(java.util.Vector vAssignedUsers)
Sets the list of UserData objects for the users this group has been updated through the Admin Tool. |
void |
setKey(com.flexstor.common.keys.ejb.GroupKey aKey)
Store the reference to this object |
void |
setLanguage(java.lang.String lang)
Set the language associated with the Group's Role |
void |
setName(java.lang.String aGroupName)
Store the name of this group |
void |
setReference(com.flexstor.common.keys.ejb.GroupKey aKey)
Deprecated. see setKey() |
void |
setRoleData(com.flexstor.common.data.ejb.role.RoleData aRoleData)
Assign a role to a group |
void |
setRoleKey(com.flexstor.common.keys.ejb.RoleKey aKey)
Set the primary key to group's role |
void |
setTimestamp(java.sql.Timestamp aTimeStamp)
Assign the current timestamp of the object |
java.lang.String |
toString()
Return the contents of the instance as a String. |
| Methods inherited from class com.flexstor.common.data.ejb.Data |
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
name
protected java.lang.String name
currentTimestamp
protected java.sql.Timestamp currentTimestamp
roleData
protected com.flexstor.common.data.ejb.role.RoleData roleData
groupKey
protected com.flexstor.common.keys.ejb.GroupKey groupKey
vAssignedUsers
protected java.util.Vector vAssignedUsers
| Constructor Detail |
GroupData
public GroupData()
- Default constructor for the GroupData class
Warning Any objects created with this constructor are not updatable or insertable to the database
GroupData
public GroupData(java.lang.String aGroupName)
- Create an GroupData class and initialize the instance with the group name
Warning Any objects created with this constructor are not updatable (insertable, but not updatable) to the database
| Method Detail |
equals
public boolean equals(java.lang.Object o)
- Determine if these two objects are equal, i.e. their attributes are equal.
This method will not test the equality of references to other objects
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
getName
public java.lang.String getName()
- Return the group's name
getReference
public com.flexstor.common.keys.ejb.GroupKey getReference()
- Deprecated. see getKey()
- Return the reference to this object
- Return the reference to this object
getKey
public com.flexstor.common.keys.ejb.GroupKey getKey()
- Return the reference to this object
getRoleKey
public com.flexstor.common.keys.ejb.RoleKey getRoleKey()
- Return the primary key to group's role
getTimestamp
public java.sql.Timestamp getTimestamp()
- Return the timestamp of this object in database when the object was retrieved
setName
public void setName(java.lang.String aGroupName)
- Store the name of this group
setReference
public void setReference(com.flexstor.common.keys.ejb.GroupKey aKey)
- Deprecated. see setKey()
- Store the reference to this object
- Store the reference to this object
setKey
public void setKey(com.flexstor.common.keys.ejb.GroupKey aKey)
- Store the reference to this object
setRoleKey
public void setRoleKey(com.flexstor.common.keys.ejb.RoleKey aKey)
- Set the primary key to group's role
setTimestamp
public void setTimestamp(java.sql.Timestamp aTimeStamp)
- Assign the current timestamp of the object
toString
public java.lang.String toString()
- Return the contents of the instance as a String. This method is strictly for use by testing classes
and should not be called by business objects
setLanguage
public void setLanguage(java.lang.String lang)
- Set the language associated with the Group's Role
getLanguage
public java.lang.String getLanguage()
- Retrieve the language associated with the Group's Role
setRoleData
public void setRoleData(com.flexstor.common.data.ejb.role.RoleData aRoleData)
- Assign a role to a group
getRoleData
public com.flexstor.common.data.ejb.role.RoleData getRoleData()
- Return the group role data
setAssignedUsers
public void setAssignedUsers(java.util.Vector vAssignedUsers)
- Sets the list of UserData objects for the users this group has been updated
through the Admin Tool.
This method will be invoked by the Admin Tool prior to calling the GroupPersistBean
to update the database.
getAssignedUsers
public java.util.Vector getAssignedUsers()
- Gets the list of UserData objects for the users this group has been updated
through the Admin Tool.
This method will be invoked by the GroupPersistBean to update the database.
|
|||||||||
| Home >> All >> com >> flexstor >> common >> data >> ejb >> [ user overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC