|
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.ControllerSecurity
Controller Security indicates which of the controllers contained in a schema can be accessed by which groups of users. This table is populated by the initialize process (DBCreate servlet) with all of the appropriate data for a given schema
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
ANY_STATE_WILDCARD
wildcard used to indicate any state |
static String |
CONTROLLER_CLASS
field names |
static String |
GROUP_NAME
|
static String |
STATES
|
| 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 | |
ControllerSecurity()
|
|
ControllerSecurity(int uid)
Constructor initializes the user context for this object too |
|
ControllerSecurity(RequestContext request)
For using DBObjects within Controllers. |
|
| Method Summary | |
void |
add()
Extend add to provide default values for the States field if it is left empty |
String |
getField(String fieldName)
Extend the getField object to return the virtual fields |
void |
setField(String fieldName,
String fieldValue)
Extend setField to trim all field values |
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 |
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 CONTROLLER_CLASS
public static final String GROUP_NAME
public static final String STATES
public static final String ANY_STATE_WILDCARD
| Constructor Detail |
public ControllerSecurity()
throws DBException
SecuredDBObject
public ControllerSecurity(int uid)
throws DBException
uid - the user id of the owner object
public ControllerSecurity(RequestContext request)
throws DBException
request - - The controller request handed to you by the framework.| 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 String getField(String fieldName)
throws DBException
getField in interface DataObjectgetField in class DBObjectfieldName - the field name to retrieve
DBException - If there is no such field or it's value cannot be accessed
public void setupFields()
throws DBException
DBObject
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 keyDBObject.setupFields()
public void setField(String fieldName,
String fieldValue)
throws DBException
setField in class DBObjectfieldName - The name of the field to setfieldValue - The new value for the field
DBException - If the given field does not exist in this object or
the value supplied is not allowed for this field
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||