|
Expresso 5-5-0 | ||||||||||
| 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.UserGroup
UserGroup.java
Copyright 1999-2002 Jcorporate Ltd.
UserGroup is a grouping of a number of users for security purposes. Modern
terms would call this a Role table. Groups are the equivalant
under a different name
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
ADMIN_GROUP
|
static String |
ALL_USERS_GROUP
used as default group for all users who register and their reg domain has no other group set |
static String |
DEMO_GROUP
|
static int |
GROUP_DESCRIP_MAX_LEN
|
static String |
GROUP_DESCRIPTION
|
static String |
GROUP_NAME_FIELD
|
static int |
GROUP_NAME_MAX_LEN
|
static String |
NOT_REG_USERS_GROUP
|
static String |
UNKNOWN_USERS_GROUP
groups created as part of DBTool.setupSecurity bootstrap |
| 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, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
UserGroup()
|
|
UserGroup(ControllerRequest request)
For using DBObjects within Controllers. |
|
UserGroup(int uid)
Initializes the usergroup with the permissions of the given user. |
|
| Method Summary | |
protected void |
checkAllReferredToBy()
Check referential integrity of objects referring to this object |
void |
delete()
Extend the super.delete() method to first delete the GroupMembers elements that refer to the group being deleted |
static UserGroup |
getGroup(String groupname)
|
String |
getGroupDescription()
convenience method |
String |
getGroupName()
convenience method |
Vector |
getValues()
Gets the valid values, specifically it returns a map of GroupNames to GroupDescriptions |
void |
populateDefaultValues()
Populates the default user groups. |
void |
setGroupName(String groupName)
convenience method |
protected void |
setupFields()
Method to set up the fields for this database object. |
| Methods inherited from class com.jcorporate.expresso.services.dbobj.SecurityDBObject |
overrideDataContext, setDataContext, setDBName |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, deleteAll, find, getCharset, getDescription, getDescription, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, getUser, getUserName, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, setUser, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
buildWhereClause, buildWhereClauseBuffer, checkZeroUpdate, constructNewMetaData, createAndExecuteSearch, getConnectionPool, getCustomStringFieldValue, getDef, getDistinctFieldArrayList, getExecutor, getFieldsToRetrieveIterator, getJDBCMetaData, getJDBCUtil, getMappedDataContext, getMetaData, getQueryInterface, getSerialForm, loadFromConnection, makeLimitationStub, quoteIfNeeded, selectFieldString, setCaseSensitiveQuery, setDBConnectionPool, setMappedDataContext, setOriginalDBName |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getStatus, 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_FIELD
public static final String GROUP_DESCRIPTION
public static final int GROUP_NAME_MAX_LEN
public static final int GROUP_DESCRIP_MAX_LEN
public static final String ALL_USERS_GROUP
SimpleRegistration,
Constant Field Valuespublic static final String DEMO_GROUP
public static final String UNKNOWN_USERS_GROUP
public static final String NOT_REG_USERS_GROUP
public static final String ADMIN_GROUP
| Constructor Detail |
public UserGroup()
throws DBException
DBExceptionSecuredDBObject
public UserGroup(int uid)
throws DBException
uid - the User's uid
DBException - upon instantion error
public UserGroup(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.
DBException| Method Detail |
protected void checkAllReferredToBy()
throws DBException
checkAllReferredToBy in class DBObjectDBException - If the integrity cannot be verified
public void delete()
throws DBException
delete in interface DataObjectdelete in class SecuredDBObjectDBException
protected void setupFields()
throws DBException
DBObject
setupFields in class DBObjectDBExceptionSecuredDBObject
public Vector getValues()
throws DBException
getValues in interface LookupInterfacegetValues in class DBObjectDBExceptionDBObject.getValidValues(java.lang.String)
public void populateDefaultValues()
throws DBException
populateDefaultValues in class DBObjectDBException
public String getGroupName()
throws DBException
DBException - upon error
public void setGroupName(String groupName)
throws DBException
groupName - the new gropu name
DBException - upon error
public static UserGroup getGroup(String groupname)
throws DBException
groupname - the new group name
DBException - upon error
public String getGroupDescription()
throws DBException
DBException - upon error
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||