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

java.lang.Objectcom.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.role.RoleData
- All Implemented Interfaces:
- java.io.Serializable
- public class RoleData
- extends com.flexstor.common.data.ejb.Data
This class supports state data for Role. A Data class holds
all of the state information for a corresponding class and reference
pointers to other classes
- Since:
- FLEXSTOR.db 3.0
- Version:
- 1.0, 10/19/98
| Field Summary | |
protected java.sql.Timestamp |
currentTimestamp
|
protected java.util.Vector |
disguises
|
protected java.util.Vector |
emailAddresses
|
protected java.util.Vector |
ftpAddresses
|
protected int |
identifier
|
static java.lang.String |
IDENTIFIER
|
protected java.util.Vector |
importSettings
|
protected java.lang.String |
language
|
protected java.util.Hashtable |
preferences
|
protected java.util.Vector |
privileges
|
protected java.util.Vector |
reportTemplates
|
protected com.flexstor.common.keys.ejb.RoleKey |
roleKey
|
protected java.util.Vector |
saveSearches
|
protected int[] |
securityRights
|
protected java.util.Vector |
sendSettings
|
protected java.util.Vector |
servers
|
protected java.util.Hashtable |
trackingData
|
protected boolean |
unionSet
|
protected java.util.Vector |
whereClauses
|
| 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 | |
RoleData()
Default constructor for RoleData class |
|
RoleData(int anIdentifier)
Constructor for RoleData class |
|
| Method Summary | |
void |
deletePreference(java.lang.String aKey)
Remove a Preference value from the role |
void |
deleteTrackingData(java.lang.String aKey)
Remove a Tracking Data from the role |
boolean |
equals(RoleData aDataObject)
Determine if these two objects are equal, i.e. |
java.util.Vector |
getDisguises()
Return the object reference to a collection of Disguises |
java.util.Vector |
getEMailAddresses()
Return the object reference to a collection of EMailAddresses |
java.util.Vector |
getFtpAddresses()
Return the object reference to a collection of FtpAddresses |
int |
getId()
Return the role's identifier |
int |
getIdentifier()
Deprecated. see getId() |
java.util.Vector |
getImportSettings()
Return the collection of Import Setting keys for this role |
com.flexstor.common.keys.ejb.RoleKey |
getKey()
Return the reference to this object |
java.lang.String |
getLanguage()
Return the role's language preference |
java.util.Hashtable |
getPreferences()
Return the collection of Preferences for this role Hashtable key - String value - String |
java.util.Vector |
getPrivileges()
Retrieve a collection of Privileges for the role. |
com.flexstor.common.keys.ejb.RoleKey |
getReference()
Deprecated. see getKey() |
java.util.Vector |
getReportTemplates()
Return the object reference to a collection of ReportTemplates |
java.util.Vector |
getSaveSearches()
Return the object reference to a collection of SaveSearches |
int[] |
getSecurityRights()
Return the collection of Security Rights for this role |
java.util.Vector |
getSendSettings()
Return the collection of Send Settings for this role |
java.util.Vector |
getServers()
Return the object reference to a collection of Servers |
java.sql.Timestamp |
getTimestamp()
Return the timestamp of this object in database when the object was retrieved |
java.util.Hashtable |
getTrackingData()
Return the collection of Tracking Data for this role Hashtable key - String value - String |
java.util.Vector |
getWheres()
Retrieve a collection of Restrictive Where Clauses for a role. |
private void |
initialize()
Set various instance variables to their initial state |
private boolean |
isPreferencesEqual(java.util.Hashtable aPreferenceCollection)
Checks whether two collections of prefernces have equal values. |
private boolean |
isSecurityRightsEqual(java.util.Hashtable aPreferenceCollection)
Checks whether two collections of prefernces have equal values. |
private boolean |
isSecurityRightsEqual(int[] aSecurityRightsArray)
Checks whether two collections of prefernces have equal values. |
private boolean |
isTrackingDataEqual(java.util.Hashtable aTrackingDataCollection)
Checks whether two collections of tracking data have equal values. |
boolean |
isUnionSet()
Indicates whether this role is actually a union of roles from a collection of groups |
void |
setDisguises(java.util.Vector dis)
Set a list of Disguises |
void |
setEMailAddresses(java.util.Vector vec)
Set the object reference to a collection of EMailAddresses |
void |
setFtpAddresses(java.util.Vector vec)
Set the object reference to a collection of FtpAddresses |
void |
setId(int id)
set the role's identifier |
void |
setIdentifier(int id)
Deprecated. see setId() |
void |
setImportSettings(java.util.Vector vec)
Set the collection of Import Setting keys for this role |
void |
setKey(com.flexstor.common.keys.ejb.RoleKey aKey)
Set the reference for this object |
void |
setLanguage(java.lang.String lang)
Set the role's language preference |
void |
setPreference(java.util.Hashtable aPreferenceCollection)
Allow the preference collection to be replaced completely by an external preference collection rather that through the updatePreference method |
void |
setPrivileges(java.util.Vector vec)
Set the object reference to a collection of Privileges for the role. |
void |
setReference(com.flexstor.common.keys.ejb.RoleKey aKey)
Deprecated. see setKey() |
void |
setReportTemplates(java.util.Vector rt)
Set a list of ReportTemplates |
void |
setSaveSearches(java.util.Vector vec)
Return the object reference to a collection of SaveSearches |
void |
setSecurityRights(int[] ray)
Return the collection of Security Rights for this role |
void |
setSendSettings(java.util.Vector vec)
Return the collection of Send Settings for this role |
void |
setServers(java.util.Vector vec)
Set the object reference to a collection of Servers |
void |
setTimestamp(java.sql.Timestamp aTimeStamp)
Assign the current timestamp of the object |
void |
setTrackingData(java.util.Hashtable hash)
Return the collection of Tracking Data for this role Hashtable key - String value - String |
void |
setUnionSet(boolean b)
Indicates whether this role is actually a union of roles from a collection of groups |
void |
setWheres(java.util.Vector vec)
Set the object reference to a collection of Wheres for the role. |
java.lang.String |
toString()
Return the contents of the instance as a String. |
void |
updatePreference(java.lang.String aKey,
java.lang.String aValue)
Add a new Preference value or update an existing Preference for the role |
void |
updateTrackingData(java.lang.String aKey,
java.lang.String aValue)
Add a new Tracking Data value or update an existing Tracking Data for the role |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
unionSet
protected boolean unionSet
identifier
protected int identifier
language
protected java.lang.String language
preferences
protected java.util.Hashtable preferences
securityRights
protected int[] securityRights
trackingData
protected java.util.Hashtable trackingData
sendSettings
protected java.util.Vector sendSettings
reportTemplates
protected java.util.Vector reportTemplates
importSettings
protected java.util.Vector importSettings
disguises
protected java.util.Vector disguises
servers
protected java.util.Vector servers
saveSearches
protected java.util.Vector saveSearches
emailAddresses
protected java.util.Vector emailAddresses
ftpAddresses
protected java.util.Vector ftpAddresses
whereClauses
protected java.util.Vector whereClauses
privileges
protected java.util.Vector privileges
currentTimestamp
protected java.sql.Timestamp currentTimestamp
roleKey
protected com.flexstor.common.keys.ejb.RoleKey roleKey
| Constructor Detail |
RoleData
public RoleData()
- Default constructor for RoleData class
Warning Any objects created with this constructor are not updatable or insertable to the database
RoleData
public RoleData(int anIdentifier)
- Constructor for RoleData class
Warning Any objects created with this constructor are not updatable (insertable, but not updatable) to the database
| Method Detail |
deletePreference
public void deletePreference(java.lang.String aKey)
- Remove a Preference value from the role
deleteTrackingData
public void deleteTrackingData(java.lang.String aKey)
- Remove a Tracking Data from the role
equals
public boolean equals(RoleData aDataObject)
- 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
getDisguises
public java.util.Vector getDisguises()
- Return the object reference to a collection of Disguises
getReportTemplates
public java.util.Vector getReportTemplates()
- Return the object reference to a collection of ReportTemplates
setReportTemplates
public void setReportTemplates(java.util.Vector rt)
- Set a list of ReportTemplates
setDisguises
public void setDisguises(java.util.Vector dis)
- Set a list of Disguises
getEMailAddresses
public java.util.Vector getEMailAddresses()
- Return the object reference to a collection of EMailAddresses
setEMailAddresses
public void setEMailAddresses(java.util.Vector vec)
- Set the object reference to a collection of EMailAddresses
getFtpAddresses
public java.util.Vector getFtpAddresses()
- Return the object reference to a collection of FtpAddresses
setFtpAddresses
public void setFtpAddresses(java.util.Vector vec)
- Set the object reference to a collection of FtpAddresses
getIdentifier
public int getIdentifier()
- Deprecated. see getId()
- Return the role's identifier
- Return the role's identifier
getId
public int getId()
- Return the role's identifier
setIdentifier
public void setIdentifier(int id)
- Deprecated. see setId()
- set the role's identifier
- set the role's identifier
setId
public void setId(int id)
- set the role's identifier
getImportSettings
public java.util.Vector getImportSettings()
- Return the collection of Import Setting keys for this role
setImportSettings
public void setImportSettings(java.util.Vector vec)
- Set the collection of Import Setting keys for this role
getLanguage
public java.lang.String getLanguage()
- Return the role's language preference
setLanguage
public void setLanguage(java.lang.String lang)
- Set the role's language preference
getPreferences
public java.util.Hashtable getPreferences()
- Return the collection of Preferences for this role
Hashtable key - String
value - String
getReference
public com.flexstor.common.keys.ejb.RoleKey getReference()
- Deprecated. see getKey()
- Return the reference to this object
- Return the reference to this object
getKey
public com.flexstor.common.keys.ejb.RoleKey getKey()
- Return the reference to this object
getSaveSearches
public java.util.Vector getSaveSearches()
- Return the object reference to a collection of SaveSearches
setSaveSearches
public void setSaveSearches(java.util.Vector vec)
- Return the object reference to a collection of SaveSearches
getSecurityRights
public int[] getSecurityRights()
- Return the collection of Security Rights for this role
setSecurityRights
public void setSecurityRights(int[] ray)
- Return the collection of Security Rights for this role
getSendSettings
public java.util.Vector getSendSettings()
- Return the collection of Send Settings for this role
setSendSettings
public void setSendSettings(java.util.Vector vec)
- Return the collection of Send Settings for this role
getServers
public java.util.Vector getServers()
- Return the object reference to a collection of Servers
setServers
public void setServers(java.util.Vector vec)
- Set the object reference to a collection of Servers
setPrivileges
public void setPrivileges(java.util.Vector vec)
- Set the object reference to a collection of Privileges for the role.
Please note that these are different from security rights
getPrivileges
public java.util.Vector getPrivileges()
- Retrieve a collection of Privileges for the role.
Please note that these are different from security rights
setWheres
public void setWheres(java.util.Vector vec)
- Set the object reference to a collection of Wheres for the role.
getWheres
public java.util.Vector getWheres()
- Retrieve a collection of Restrictive Where Clauses for a role.
getTimestamp
public java.sql.Timestamp getTimestamp()
- Return the timestamp of this object in database when the object was retrieved
getTrackingData
public java.util.Hashtable getTrackingData()
- Return the collection of Tracking Data for this role
Hashtable key - String
value - String
setTrackingData
public void setTrackingData(java.util.Hashtable hash)
- Return the collection of Tracking Data for this role
Hashtable key - String
value - String
initialize
private void initialize()
- Set various instance variables to their initial state
isPreferencesEqual
private boolean isPreferencesEqual(java.util.Hashtable aPreferenceCollection)
- Checks whether two collections of prefernces have equal values.
isSecurityRightsEqual
private boolean isSecurityRightsEqual(int[] aSecurityRightsArray)
- Checks whether two collections of prefernces have equal values.
isSecurityRightsEqual
private boolean isSecurityRightsEqual(java.util.Hashtable aPreferenceCollection)
- Checks whether two collections of prefernces have equal values.
isTrackingDataEqual
private boolean isTrackingDataEqual(java.util.Hashtable aTrackingDataCollection)
- Checks whether two collections of tracking data have equal values.
isUnionSet
public boolean isUnionSet()
- Indicates whether this role is actually a union of roles from a collection of groups
setUnionSet
public void setUnionSet(boolean b)
- Indicates whether this role is actually a union of roles from a collection of groups
setPreference
public void setPreference(java.util.Hashtable aPreferenceCollection)
- Allow the preference collection to be replaced completely by an external preference
collection rather that through the
updatePreferencemethod
setReference
public void setReference(com.flexstor.common.keys.ejb.RoleKey aKey)
- Deprecated. see setKey()
- Set the reference for this object
- Set the reference for this object
setKey
public void setKey(com.flexstor.common.keys.ejb.RoleKey aKey)
- Set the reference for this object
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
updatePreference
public void updatePreference(java.lang.String aKey, java.lang.String aValue)
- Add a new Preference value or update an existing Preference for the role
updateTrackingData
public void updateTrackingData(java.lang.String aKey, java.lang.String aValue)
- Add a new Tracking Data value or update an existing Tracking Data for the role
|
|||||||||
| Home >> All >> com >> flexstor >> common >> data >> ejb >> [ role overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC