|
||||||||||
| 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.core.dbobj.RowSecuredDBObject
com.sri.common.util.PermGroup
public class PermGroup
Version of UserGroup which has RowSecuredDBObject as superclass. Group is a grouping of a number of users for security purposes. UserGroups are equivalent to 'roles' in other terminology.
UserGroup,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces 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.core.dbobj.RowSecuredDBObject |
|---|
DEFAULT_PERMISSION_CODE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
|---|
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, 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, CACHE_LIMIT_PERCENT, CACHE_LIMIT_TTL, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, IS_MUTABLE, sCacheStats, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
|---|
anyFieldsDistinct, anyFieldsToInput, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, inputFields, 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.Securable |
|---|
SYSTEM_ACCOUNT |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
|---|
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
|---|---|
PermGroup()
Construct object with superuser privileges. |
|
PermGroup(ControllerRequest request)
For using DBObjects within Controllers. |
|
PermGroup(DBConnection localConnection)
Constructor for db transactions; object will have superuser privileges unless you separately call setRequestingUid(). |
|
| 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 PermGroup |
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 |
Transition |
getViewTrans()
Provide a transition for viewing this object, suitable for creating an HTTP link. |
void |
populateDefaultValues()
Add rowsecured privileges for built-in groups. |
void |
setGroupName(String groupName)
convenience method |
protected void |
setupFields()
|
| Methods inherited from class com.jcorporate.expresso.core.dbobj.RowSecuredDBObject |
|---|
add, add, addGroupPerm, canRequesterAdministrate, canRequesterRead, canRequesterWrite, checkDeleteDetailPerm, checkKeyLength, defaultGroup, defaultPermissions, delete, deleteAll, find, getAdministrateGroups, getGroups, getPermissions, getReadGroups, getWriteGroups, isAdminGroup, isReadGroup, isRowAllowed, isRowAllowed, isWriteGroup, ownerID, removeGroup, retrieve, searchAndRetrieveList, searchAndRetrieveList, setPermissions, setPermissions, update |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
|---|
canRequesterAdd, canRequesterDelete, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, getRequestingUid, getRequestingUser, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, search, setRequestingUid, setRequestingUser |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
|---|
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
|---|
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 PermGroup()
throws DBException
DBException - upon construction errorSecuredDBObject
public PermGroup(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.
DBException - upon construction error
public PermGroup(DBConnection localConnection)
throws DBException
localConnection - the connection which should be used, typically because of an ongoing transaction
DBException - upon construction error| 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 - upon delete error.
protected void setupFields()
throws DBException
setupFields in class DBObjectDBException - upon setup error.SecuredDBObject
public Vector getValues()
throws DBException
getValues in interface LookupInterfacegetValues in class DBObjectDBException - upon database access error.
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 PermGroup getGroup(String groupname)
throws DBException
groupname - the new group name
DBException - upon error
public String getGroupDescription()
throws DBException
DBException - upon error
public Transition getViewTrans()
throws DBException
getViewTrans in interface IViewableDBException - upon database access error.
public void populateDefaultValues()
throws DBException
populateDefaultValues in class DBObjectDBException - upon population error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||