Package com.redwood.scheduler.api.model
Interface SubjectGlobalPrivilegeGrant
-
- All Superinterfaces:
BusinessKeyObject
,Readable
,Root
,SchedulerEntity
,SchedulerEntityComp
,SubjectGrant
public interface SubjectGlobalPrivilegeGrant extends SubjectGrant, BusinessKeyObject, Readable
A mapping of which global privileges a subject has been granted. By default, a grant will be at the system level.
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SubjectGlobalPrivilegeGrant" objects.static QueryObjectType<SubjectGlobalPrivilegeGrant>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_SUBJECTGLOBALPRIVILEGEGRANT
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GlobalPrivilege
getGrantedGlobalPrivilege()
Get the GrantedGlobalPrivilege.boolean
isGrantable()
Get the value for Grantable.void
setGrantable(boolean newGrantable)
Set the value for Grantable.void
setGrantedGlobalPrivilege(GlobalPrivilege newGrantedGlobalPrivilege)
Set the value for GrantedGlobalPrivilege.-
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
-
-
-
-
Field Detail
-
VERSION_SUBJECTGLOBALPRIVILEGEGRANT
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_SUBJECTGLOBALPRIVILEGEGRANT
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SubjectGlobalPrivilegeGrant" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<SubjectGlobalPrivilegeGrant> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
-
Method Detail
-
isGrantable
boolean isGrantable()
Get the value for Grantable. (Whether this privilege is grantable to other subjects.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGrantable
void setGrantable(boolean newGrantable)
Set the value for Grantable. (Whether this privilege is grantable to other subjects.)- Parameters:
newGrantable
- the new value for Grantable.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGrantedGlobalPrivilege
GlobalPrivilege getGrantedGlobalPrivilege()
Get the GrantedGlobalPrivilege.- Returns:
- GrantedGlobalPrivilege
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
setGrantedGlobalPrivilege
void setGrantedGlobalPrivilege(GlobalPrivilege newGrantedGlobalPrivilege)
Set the value for GrantedGlobalPrivilege. This value is mandatory.- Parameters:
newGrantedGlobalPrivilege
- is the object to set GrantedGlobalPrivilege to. Grant a global privilege to a subject. If this isnull
, then the object cannot be persisted.
-
-