| |
|
| com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.services.dbobj.SecurityDBObject com.jcorporate.expresso.services.dbobj.UserGroup
UserGroup | public class UserGroup extends SecurityDBObject (Code) | | UserGroup is a grouping of a number of users for security purposes.
UserGroups are equivalent to 'roles' in other terminology.
author: Michael Nash since: Expresso 1.0 |
GROUP_DESCRIPTION | final public static String GROUP_DESCRIPTION(Code) | | |
GROUP_DESCRIP_MAX_LEN | final public static int GROUP_DESCRIP_MAX_LEN(Code) | | |
GROUP_NAME_FIELD | final public static String GROUP_NAME_FIELD(Code) | | |
GROUP_NAME_MAX_LEN | final public static int GROUP_NAME_MAX_LEN(Code) | | |
NOT_REG_USERS_GROUP | final public static String NOT_REG_USERS_GROUP(Code) | | |
UNKNOWN_USERS_GROUP | final public static String UNKNOWN_USERS_GROUP(Code) | | groups created as part of DBTool.setupSecurity bootstrap
|
UserGroup | public UserGroup(int uid) throws DBException(Code) | | Initializes the usergroup with the permissions of the given user.
Parameters: uid - the User's uid throws: DBException - upon instantion error |
UserGroup | public UserGroup(ControllerRequest request) throws DBException(Code) | | For using DBObjects within Controllers. Initializes based upon the current
user and the requested db. [Of course this can be modified later]
Parameters: request - - The controller request handed to you by the framework. |
UserGroup | public UserGroup(DBConnection localConnection) throws DBException(Code) | | constructor for db transactions; object will have superuser privileges unless you separately call setRequestingUid()
Parameters: localConnection - the connection which should be used, typically because of an ongoing transaction |
checkAllReferredToBy | protected void checkAllReferredToBy() throws DBException(Code) | | Check referential integrity of objects referring to this object
throws: DBException - If the integrity cannot be verified |
delete | public void delete() throws DBException(Code) | | Extend the super.delete() method to first delete the GroupMembers
elements that refer to the group being deleted
|
getGroup | public static UserGroup getGroup(String groupname) throws DBException(Code) | | Parameters: groupname - the new group name group for this name, or null if not found; uses "default" dbcontext throws: DBException - upon error |
getValues | public Vector getValues() throws DBException(Code) | | Gets the valid values, specifically it returns a map of GroupNames
to GroupDescriptions
a vector of valid values. |
populateDefaultValues | public synchronized void populateDefaultValues() throws DBException(Code) | | Populates the default user groups.
|
setGroupName | public void setGroupName(String groupName) throws DBException(Code) | | convenience method
Parameters: groupName - the new gropu name throws: DBException - upon error |
Methods inherited from com.jcorporate.expresso.core.dbobj.SecuredDBObject | public void add() throws DBException(Code)(Java Doc) public boolean canRequesterAdd() throws DBException(Code)(Java Doc) public boolean canRequesterDelete() throws DBException(Code)(Java Doc) public boolean canRequesterRead() throws DBException(Code)(Java Doc) public boolean canRequesterUpdate() throws DBException(Code)(Java Doc) public boolean checkAllowed(String requestedFunction) throws DBException(Code)(Java Doc) public void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) protected synchronized void createSecurityCache() throws CacheException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public int getRequestingUid()(Code)(Java Doc) protected String getString(String stringCode, Object[] args) throws DBException(Code)(Java Doc) protected String getString(String stringCode) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3, String arg4) throws DBException(Code)(Java Doc) public int getSystemUid()(Code)(Java Doc) public static SecuredDBObject instantiate(String className) throws DBException(Code)(Java Doc) public void isAllowed(String requestedFunction) throws SecurityException, DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeys) throws DBException(Code)(Java Doc) public void setRequestingUid(int newUid)(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc)
|
|
|
|