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...)
.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_SUBJECTOBJECTPRIVILEGEGRANT
-
Fields inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
COPYRIGHT_MESSAGE_BKO, ID_BKO
-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
Fields inherited from interface com.redwood.scheduler.api.model.Root
VERSION_ROOT
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM, VERSION_SCHEDULERENTITY
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SchedulerEntityComp
VERSION_SCHEDULERENTITYCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.SubjectGrant
VERSION_SUBJECTGRANT
-
Fields inherited from interface com.redwood.scheduler.api.model.SubjectPrivilegeGrant
VERSION_SUBJECTPRIVILEGEGRANT
-
-
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
-
VERSION_SUBJECTOBJECTPRIVILEGEGRANT
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_SUBJECTOBJECTPRIVILEGEGRANT
-
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:
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:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
-