Package com.redwood.scheduler.api.model
Interface SubjectObjectPrivilegeGrant
-
- All Superinterfaces:
BusinessKeyObject
,Readable
,Root
,SchedulerEntity
,SchedulerEntityComp
,SubjectGrant
,SubjectPrivilegeGrant
public interface SubjectObjectPrivilegeGrant extends SubjectPrivilegeGrant, BusinessKeyObject, Readable
A mapping of which privileges on an object have been granted to which subject.
-
-
Field Summary
Fields Modifier and Type Field Description static Long
BEHAVIOR_AUTOMATIC
Grant corresponds to an automatic grant.static Long
BEHAVIOR_CREATOR
Grant corresponds to the creator of the object.static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SubjectObjectPrivilegeGrant" objects.static QueryObjectType<SubjectObjectPrivilegeGrant>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchedulerEntity
getSchedulerEntity()
Get the value for SchedulerEntity.void
setSchedulerEntity(SchedulerEntity newSchedulerEntity)
Set the value for SchedulerEntity.-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.Root
getCreationTime, getLastModificationTime, getLastModifierSubject
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
Methods inherited from interface com.redwood.scheduler.api.model.SubjectGrant
getGranteeSubject, getGrantorSubject, isExportable, setExportable, setGranteeSubject
-
Methods inherited from interface com.redwood.scheduler.api.model.SubjectPrivilegeGrant
getAllGrantLevels, getAllowedPrivileges, getAllPrivileges, getAllRanks, getGrantableRank, getGrantedRank, getObjectDefinition, isPrivilegeGrantable, isPrivilegeGranted, setGrantableRank, setGrantableRank, setGrantedRank, setGrantedRank, setObjectDefinition, setPrivilegeGrantable, setPrivilegeGrantable, setPrivilegeGranted, setPrivilegeGranted
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SubjectObjectPrivilegeGrant" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<SubjectObjectPrivilegeGrant> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
BEHAVIOR_CREATOR
static final Long BEHAVIOR_CREATOR
Grant corresponds to the creator of the object.
-
BEHAVIOR_AUTOMATIC
static final Long BEHAVIOR_AUTOMATIC
Grant corresponds to an automatic grant.
-
-
Method Detail
-
getSchedulerEntity
SchedulerEntity getSchedulerEntity()
Get the value for SchedulerEntity. (The object to which this grant applies.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSchedulerEntity
void setSchedulerEntity(SchedulerEntity newSchedulerEntity)
Set the value for SchedulerEntity. (The object to which this grant applies.) This value is mandatory.- Parameters:
newSchedulerEntity
- the new value for SchedulerEntity. If this isnull
, then the object cannot be persisted.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
-