|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.services.dbobj.SecurityDBObject
com.jcorporate.expresso.services.dbobj.GroupMembers
Group Member definitions table. IMPORTANT: Use getGroups() from the User object to determine which groups a certain user belongs to, as the implementation may or may not use this table - LDAP may be used instead, for example, or an external application
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
EXPIRES
|
static String |
EXPUID
|
static String |
GROUP_NAME
|
static String |
TABLE
|
| Fields inherited from class com.jcorporate.expresso.services.dbobj.SecurityDBObject |
SECURITY_CONTEXT, SECURITY_OBJECTS |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
GroupMembers()
|
|
GroupMembers(ControllerRequest request)
For using DBObjects within Controllers. |
|
GroupMembers(DBConnection localConnection)
constructor for db transactions |
|
GroupMembers(int uid)
Initializes object with permissions given by user id. |
|
| Method Summary | |
void |
add()
Extend add to handle nested groups |
void |
addedUser(User user)
This method is called just after a new user is added Creation date: (5/12/2001 2:26:17 PM) |
protected void |
checkAllRefs()
Extends the checkAllRefs method to check for valid UserGroup |
void |
deletedUser(User user)
Called when a User is deleted from the system. |
String |
getField(String fieldName)
Extend the normal getField method |
boolean |
hasExpired()
Checks to see if the current date is past the expiration date. |
void |
loggedOffUser(User user)
This method is called just before a user is logged off Creation date: (5/12/2001 2:26:17 PM) |
void |
loggedOnUser(User user)
This method is called just after a user is logged on Creation date: (5/12/2001 2:26:17 PM) |
void |
modifiedUser(User user)
This method is called just after a user is modified Creation date: (5/12/2001 2:26:17 PM) |
void |
setGroupName(String grpname)
set group name; convenience method |
void |
setUID(int uid)
set uid; convenience method |
protected void |
setupFields()
Set up the fields/tables for this object |
| Methods inherited from class com.jcorporate.expresso.services.dbobj.SecurityDBObject |
overrideDataContext, setDataContext, setDBName |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String GROUP_NAME
public static final String EXPIRES
public static final String EXPUID
public static final String TABLE
| Constructor Detail |
public GroupMembers()
throws DBException
SecuredDBObject
public GroupMembers(int uid)
throws DBException
uid - The Owner's uid
public GroupMembers(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.
public GroupMembers(DBConnection localConnection)
throws DBException
localConnection - the DB connection which should be used, typically because of an ongoing transaction| Method Detail |
public void add()
throws DBException
add in interface DataObjectadd in class SecuredDBObjectDBException - If the user is not permitted to add
or if the add fails
public void addedUser(User user)
throws DBException
UserListener
addedUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
protected void checkAllRefs()
throws DBException
checkAllRefs in class DBObjectDBException - If a referential integrity violation is found
public void deletedUser(User user)
throws DBException
deletedUser in interface UserListeneruser - The user that is deleted
DBException - upon data access error
public void loggedOffUser(User user)
throws DBException
UserListener
loggedOffUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void loggedOnUser(User user)
throws DBException
UserListener
loggedOnUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void modifiedUser(User user)
throws DBException
UserListener
modifiedUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBExceptionpublic boolean hasExpired()
protected void setupFields()
throws DBException
setupFields in class DBObjectDBException - If there is an error setting up the fields
as requested. For example, if a field allowing null is requested
as part of the key
public String getField(String fieldName)
throws DBException
getField in interface DataObjectgetField in class DBObjectfieldName - the name of the field to retrieve
DBException - If there is no such field or it's value cannot be accessed
public void setGroupName(String grpname)
throws DBException
grpname - name to set
DBException
public void setUID(int uid)
throws DBException
uid - uid to set
DBException
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||