public class AccessControlClause extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
A clause identifies a condition that should be applied to give the user
access to an object.
|
static java.lang.String |
DBCLASS_NAME
A clause identifies a condition that should be applied to give the user
access to an object.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
AccessControlClause(DBClass def,
DataSource dataSource)
Creates a new AccessControlClause object.
|
Modifier and Type | Method and Description |
---|---|
static AccessControlClause |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extDelete()
Update the in-memory universe BEFORE validating
|
protected boolean |
extIsMandatory(DBField field)
Conditional mandatory field.
|
protected void |
extPreValidate()
Update the in-memory universe BEFORE validating
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Validates the fields of the restriction itself
|
AccessControl |
findAccessControl(java.lang.String... args)
Identifies the Access Control item that this clause is part of.
|
static AccessControlClause |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBModuleOption |
findModuleOption(java.lang.String... args)
If the clause is associated with an Module Option then this clause will
only be active if that option is enabled.
|
AccessControl |
getAccessControl(java.lang.String... args) |
DBClass |
getBaseClass() |
java.lang.String |
getFieldPath()
The field path for the restriction
|
java.lang.String |
getFieldPathDesc(java.lang.String... args) |
java.lang.String |
getFieldValue(java.lang.String... args) |
int |
getID(java.lang.String... args) |
DBModuleOption |
getModuleOption(java.lang.String... args) |
java.lang.String |
getSymbol()
The symbol to be used in the restriction.
|
java.lang.Object |
getValue(Login login)
Gets the expanded version of the value to be used in the restriction.
|
static DBQuery<AccessControlClause> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
boolean |
matches(DBObject obj)
Checks that the passed object is allowed by this restriction.
|
AccessControlClause |
setAccessControl(com.aspc.dal.dbobj.acl.AccessControl value,
java.lang.String... args) |
AccessControlClause |
setFieldPath(java.lang.String value,
java.lang.String... args) |
AccessControlClause |
setFieldPathDesc(java.lang.String value,
java.lang.String... args) |
AccessControlClause |
setFieldValue(java.lang.String value,
java.lang.String... args) |
AccessControlClause |
setID(int value,
java.lang.String... args) |
AccessControlClause |
setModuleOption(com.aspc.dal.dbobj.module.DBModuleOption value,
java.lang.String... args) |
AccessControlClause |
setSymbol(java.lang.String value,
java.lang.String... args) |
java.lang.String |
toString()
A simple description of the restriction
|
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, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, 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, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public AccessControlClause(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The dbClass of the DBObjectdataSource
- The objects datasourcejava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public AccessControlClause setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public AccessControl getAccessControl(java.lang.String... args)
@CheckReturnValue @Nonnull public final AccessControl findAccessControl(java.lang.String... args) throws NotFoundException
AccessControl
(Integer, Searchable)args
- the optional argumentsNotFoundException
- AccessControl was not found@Nonnull public AccessControlClause setAccessControl(com.aspc.dal.dbobj.acl.AccessControl value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public AccessControlClause setFieldPath(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFieldPathDesc(java.lang.String... args)
@Nonnull public AccessControlClause setFieldPathDesc(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFieldValue(java.lang.String... args)
@Nonnull public AccessControlClause setFieldValue(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBModuleOption getModuleOption(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBModuleOption findModuleOption(java.lang.String... args) throws NotFoundException
DBModuleOption
(String, Searchable)args
- the optional argumentsNotFoundException
- DBModuleOption was not found@Nonnull public AccessControlClause setModuleOption(com.aspc.dal.dbobj.module.DBModuleOption value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public AccessControlClause setSymbol(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static AccessControlClause create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<AccessControlClause> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static AccessControlClause 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 problempublic DBClass getBaseClass()
public java.lang.String getFieldPath()
public java.lang.String getSymbol()
public java.lang.Object getValue(Login login) throws java.lang.Exception
login
- The loginjava.lang.Exception
- A serious problempublic boolean matches(DBObject obj) throws java.lang.Exception
obj
- The object to checkjava.lang.Exception
- A serious problem@CheckReturnValue @Nonnull public java.lang.String toString()
@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to validatedjava.lang.Exception
- A serious problem@CheckReturnValue protected boolean extIsMandatory(@Nonnull DBField field)
extIsMandatory
in class DBObject
field
- The field to getDBObject.extIsMandatory( DBField)
@OverridingMethodsMustInvokeSuper protected void extDelete() throws java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.