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 SubjectgetGranteeSubject()Get the GranteeSubject.SubjectgetGrantorSubject()Get the GrantorSubject.booleanisExportable()Get the value for Exportable.voidsetExportable(boolean newExportable)Set the value for Exportable.voidsetGranteeSubject(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:
com.redwood.scheduler.api.exception.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:
com.redwood.scheduler.api.exception.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:
com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.com.redwood.scheduler.api.exception.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:
com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.com.redwood.scheduler.api.exception.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.
-
-