|
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.services.dbobj.RowPermissions
storage for read/write permissions concerning a given row in the database this table stores user & "other" permissions this object and its table should be manipulated only through RowSecuredDBObject
RowSecuredDBObject,
RowGroupPerms,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
DEFAULT_PERMISSION_GROUP
if no group has been named, here's a default name (10 char max) which is created by UserGroup.populateDefaultValues() |
static int |
DEFAULT_PERMISSIONS
|
static int |
GROUP_ONLY_READWRITE_PERMISSIONS
group can write, but others cannot even read |
static int |
GROUP_PERMISSION_MASK
|
static int |
GROUP_READ_MASK
|
static int |
GROUP_READ_ONLY_PERMISSIONS
|
static int |
GROUP_WRITE_MASK
|
static int |
MAX_KEY_LENGTH
max length of a primary key of this table, which is made up of the target table name + target row PK Most databases have a system limit. |
static int |
MAX_TABLE_NAME_LENGTH
Maximum length of name of table; all tables must have names that fit. |
static int |
OTHERS_PERMISSION_MASK
|
static int |
OTHERS_READ_AND_GROUP_WRITES_PERMISSIONS
|
static int |
OTHERS_READ_MASK
|
static int |
OTHERS_WRITE_MASK
|
static int |
OWNER_AND_GROUP_WRITE_PERMISSIONS
|
static String |
OWNER_ID
field name for owner |
static int |
OWNER_ONLY_PERMISSIONS
|
static int |
OWNER_PERMISSION_MASK
|
static int |
OWNER_READ_MASK
|
static int |
OWNER_WRITE_MASK
bitmasks for permissions, stored as Java int |
static String |
PERMISSIONS
field name for bits that make up permissions |
static String |
PERMISSIONS_TABLE_DESCRIP
|
static String |
PERMISSIONS_TABLE_NAME
|
static String |
ROW_KEY
field name for primary key of row |
protected static String |
sKeyType
|
protected static int |
sMaxKeyLen
|
static String |
TABLE_NAME
field name for name of table |
static int |
WIDE_OPEN_PERMISSIONS
|
| 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 | |
RowPermissions()
|
|
RowPermissions(String table,
String rowKey)
|
|
| Method Summary | |
boolean |
canOthersAdministrate()
|
boolean |
canOthersRead()
|
boolean |
canOthersWrite()
|
boolean |
canOwnerAdministrate()
always returns true |
boolean |
canOwnerRead()
|
boolean |
canOwnerWrite()
|
static int |
getMaxKeyLen()
|
boolean |
isFresh()
indicates that this object is new--no permissions have been set |
int |
owner()
|
void |
owner(int theOwner)
|
int |
permissions()
set permissions |
void |
permissions(int perm)
set permissions |
protected void |
setupFields()
override in subclesses, and be sure to call this as first line of override |
| 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, setDBName, 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 PERMISSIONS_TABLE_NAME
public static final String PERMISSIONS_TABLE_DESCRIP
public static final String TABLE_NAME
public static final String ROW_KEY
public static final String OWNER_ID
public static final String PERMISSIONS
public static final int MAX_KEY_LENGTH
public static final int MAX_TABLE_NAME_LENGTH
protected static int sMaxKeyLen
protected static String sKeyType
public static final int OWNER_WRITE_MASK
public static final int OWNER_READ_MASK
public static final int OWNER_PERMISSION_MASK
public static final int GROUP_READ_MASK
public static final int GROUP_WRITE_MASK
public static final int GROUP_PERMISSION_MASK
public static final int OTHERS_READ_MASK
public static final int OTHERS_WRITE_MASK
public static final int OTHERS_PERMISSION_MASK
public static final int OTHERS_READ_AND_GROUP_WRITES_PERMISSIONS
public static final int DEFAULT_PERMISSIONS
public static final int WIDE_OPEN_PERMISSIONS
public static final int OWNER_ONLY_PERMISSIONS
public static final int OWNER_AND_GROUP_WRITE_PERMISSIONS
public static final int GROUP_READ_ONLY_PERMISSIONS
public static final int GROUP_ONLY_READWRITE_PERMISSIONS
public static final String DEFAULT_PERMISSION_GROUP
| Constructor Detail |
public RowPermissions()
throws DBException
public RowPermissions(String table,
String rowKey)
throws DBException
| Method Detail |
public boolean canOwnerAdministrate()
throws DBException
DBException - upon error
public boolean canOwnerRead()
throws DBException
DBException
public boolean canOwnerWrite()
throws DBException
DBException
public boolean canOthersAdministrate()
throws DBException
DBException
public boolean canOthersRead()
throws DBException
DBException
public boolean canOthersWrite()
throws DBException
DBException
protected void setupFields()
throws DBException
setupFields in class DBObjectDBException - upon error
public int owner()
throws DBException
DBException
public void owner(int theOwner)
throws DBException
DBException
public void permissions(int perm)
throws DBException
perm - the permissions to set
DBException - upon DataObject error
public int permissions()
throws DBException
DBException - upon DataObject error
public boolean isFresh()
throws DBException
DBException - upon DataObject errorpublic static int getMaxKeyLen()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||