public class DBPermission extends DBObject
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
Permissions for files or folders.
|
static java.lang.String |
DBCLASS_NAME
Permissions for files or folders.
|
static java.lang.String |
TYPE_CREATE
create
|
static java.lang.String |
TYPE_DELETE
delete
|
static java.lang.String |
TYPE_FULL
full access
|
static java.lang.String |
TYPE_MODIFY
modify
|
static java.lang.String |
TYPE_READ
read
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
DBPermission(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eventDataLoaded()
When the underlying DBData is changed/ loaded.
|
void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
DBPermissionType |
findCreateAccess(java.lang.String... args)
Allow/Deny creatation of elements.
|
DBPermissionType |
findDeleteAccess(java.lang.String... args)
Allow/Deny deletion of elements.
|
DBPermissionType |
findFullControlAccess(java.lang.String... args)
Can assign permissions etc.
|
static DBPermission |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBPermissionType |
findModifyAccess(java.lang.String... args)
Allow/Deny modication of elements.
|
PermissionedContact |
findPermissionedContact(java.lang.String... args)
The person/group for this permission.
|
DBPermissionType |
findReadAccess(java.lang.String... args)
Allow/Deny read of elements.
|
DBPermissionType |
getCreateAccess(java.lang.String... args) |
DBPermissionType |
getDeleteAccess(java.lang.String... args) |
java.util.Date |
getExpiryTS(java.lang.String... args) |
DBPermissionType |
getFullControlAccess(java.lang.String... args) |
int |
getID(java.lang.String... args) |
DBPermissionType |
getModifyAccess(java.lang.String... args) |
PermissionedContact |
getPermissionedContact(java.lang.String... args) |
DBPermissionType |
getReadAccess(java.lang.String... args) |
java.lang.String |
getType(java.lang.String fieldName) |
static java.lang.Boolean |
iHasAccess(DBObject[] list,
java.lang.String type,
FldParams params)
Do we have access ?
|
static DBQuery<DBPermission> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBPermission |
setCreateAccess(com.aspc.dal.dbobj.acl.DBPermissionType value,
java.lang.String... args) |
DBPermission |
setDeleteAccess(com.aspc.dal.dbobj.acl.DBPermissionType value,
java.lang.String... args) |
DBPermission |
setExpiryTS(java.util.Date value,
java.lang.String... args) |
DBPermission |
setFullControlAccess(com.aspc.dal.dbobj.acl.DBPermissionType value,
java.lang.String... args) |
DBPermission |
setID(int value,
java.lang.String... args) |
DBPermission |
setModifyAccess(com.aspc.dal.dbobj.acl.DBPermissionType value,
java.lang.String... args) |
DBPermission |
setPermissionedContact(com.aspc.dal.dbobj.contact.PermissionedContact value,
java.lang.String... args) |
DBPermission |
setReadAccess(com.aspc.dal.dbobj.acl.DBPermissionType value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubTypepublic static final java.lang.String TYPE_READ
public static final java.lang.String TYPE_CREATE
public static final java.lang.String TYPE_MODIFY
public static final java.lang.String TYPE_DELETE
public static final java.lang.String TYPE_FULL
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBPermission(DBClass def, DataSource dataSource) throws java.lang.Exception
def - The class of this objectdataSource - The datasource for this objectjava.lang.Exception - A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBPermission setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBPermissionType getCreateAccess(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBPermissionType findCreateAccess(java.lang.String... args) throws NotFoundException
DBPermissionType
(String, Searchable)args - the optional argumentsNotFoundException - DBPermissionType was not found@Nonnull public DBPermission setCreateAccess(com.aspc.dal.dbobj.acl.DBPermissionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBPermissionType getDeleteAccess(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBPermissionType findDeleteAccess(java.lang.String... args) throws NotFoundException
DBPermissionType
(String, Searchable)args - the optional argumentsNotFoundException - DBPermissionType was not found@Nonnull public DBPermission setDeleteAccess(com.aspc.dal.dbobj.acl.DBPermissionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public java.util.Date getExpiryTS(java.lang.String... args)
@Nonnull public DBPermission setExpiryTS(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBPermissionType getFullControlAccess(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBPermissionType findFullControlAccess(java.lang.String... args) throws NotFoundException
DBPermissionType
(String, Searchable)args - the optional argumentsNotFoundException - DBPermissionType was not found@Nonnull public DBPermission setFullControlAccess(com.aspc.dal.dbobj.acl.DBPermissionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBPermissionType getModifyAccess(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBPermissionType findModifyAccess(java.lang.String... args) throws NotFoundException
DBPermissionType
(String, Searchable)args - the optional argumentsNotFoundException - DBPermissionType was not found@Nonnull public DBPermission setModifyAccess(com.aspc.dal.dbobj.acl.DBPermissionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public PermissionedContact getPermissionedContact(java.lang.String... args)
@CheckReturnValue @Nonnull public final PermissionedContact findPermissionedContact(java.lang.String... args) throws NotFoundException
PermissionedContact (Integer, Mandatory, Searchable)args - the optional argumentsNotFoundException - PermissionedContact was not found@Nonnull public DBPermission setPermissionedContact(com.aspc.dal.dbobj.contact.PermissionedContact value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBPermissionType getReadAccess(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBPermissionType findReadAccess(java.lang.String... args) throws NotFoundException
DBPermissionType
(String, Searchable)args - the optional argumentsNotFoundException - DBPermissionType was not found@Nonnull public DBPermission setReadAccess(com.aspc.dal.dbobj.acl.DBPermissionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@Nonnull @CheckReturnValue public static DBQuery<DBPermission> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds - the datasourceNotFoundException - if class could not be found@Nonnull @CheckReturnValue public static DBPermission findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds - the datasourcekey - the valueNotFoundException - if target could not be foundjava.lang.Exception - a serious problem@OverridingMethodsMustInvokeSuper
protected void extFixUp()
throws java.lang.Exception
@OverridingMethodsMustInvokeSuper
public void eventFieldUpdated(@Nonnull
DBField field,
@Nullable
java.lang.Object previous,
@Nullable
GlobalKey previousKey,
@Nullable
FldParams params)
throws java.lang.Exception
eventFieldUpdated in class DBObjectfield - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problempublic void eventDataLoaded()
eventDataLoaded in class DBObjectpublic java.lang.String getType(java.lang.String fieldName)
fieldName - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.