Package com.redwood.scheduler.api.model
Interface SubjectGrant
-
- All Superinterfaces:
Root
,SchedulerEntity
,SchedulerEntityComp
- All Known Subinterfaces:
SubjectGlobalPrivilegeGrant
,SubjectObjectPrivilegeGrant
,SubjectObjectTypePrivilegeGrant
,SubjectPrivilegeGrant
,SubjectRoleGrant
public interface SubjectGrant extends Root
Common base-class for the privileges and roles that are assigned to a subject.
-
-
Field Summary
-
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 Subject
getGranteeSubject()
Get the GranteeSubject.Subject
getGrantorSubject()
Get the GrantorSubject.boolean
isExportable()
Get the value for Exportable.void
setExportable(boolean newExportable)
Set the value for Exportable.void
setGranteeSubject(Subject newGranteeSubject)
Set the value for GranteeSubject.-
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
-
-
-
-
Method Detail
-
isExportable
boolean isExportable()
Get the value for Exportable. (Whether this grant is exportable or not.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setExportable
void setExportable(boolean newExportable)
Set the value for Exportable. (Whether this grant is exportable or not.)- Parameters:
newExportable
- the new value for Exportable.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGrantorSubject
Subject getGrantorSubject()
Get the GrantorSubject.- Returns:
- GrantorSubject
- 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.
-
getGranteeSubject
Subject getGranteeSubject()
Get the GranteeSubject.- Returns:
- GranteeSubject
- 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.
-
setGranteeSubject
void setGranteeSubject(Subject newGranteeSubject)
Set the value for GranteeSubject. This value is mandatory.- Parameters:
newGranteeSubject
- is the object to set GranteeSubject to. Which Subject was granted the Granted Subject. This Subject must have GrantToable==true. If this isnull
, then the object cannot be persisted.
-
-