Package com.redwood.scheduler.api.model
Interface RestrictedSchedulerSessionSpecification
- 
- All Superinterfaces:
- PartitionableRootObject,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface RestrictedSchedulerSessionSpecification extends PartitionableRootObject The specifications for a restricted scheduler session
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "RestrictedSchedulerSessionSpecification" objects.static StringSEC_PRIV_CREATEThis privilege can be granted at a group level.static StringSEC_PRIV_DELETEThis privilege can be granted at a group level.static StringSEC_PRIV_EDITThis privilege can be granted at a group level.static StringSEC_PRIV_USEThis privilege can be granted at an instance level.static StringSEC_PRIV_VIEWThis privilege can be granted at a group level.static StringSEC_RANK_ALLThis rank is made of the following privileges: create , view , use , edit , deletestatic StringSEC_RANK_CREATEThis rank is made of the following privileges: createstatic StringSEC_RANK_DELETEThis rank is made of the following privileges: view , deletestatic StringSEC_RANK_EDITThis rank is made of the following privileges: create , view , use , editstatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_USEThis rank is made of the following privileges: view , use , deletestatic StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<RestrictedSchedulerSessionSpecification>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallowWrite(SchedulerEntity entity)Grant write access the SchedulerEntity within the restricted sessionRequiredPermissioncheckCreatePrivilege()Check whether or not the create action can be performed on this object.RequiredPermissioncheckDeletePrivilege()Check whether or not the delete action can be performed on this object.RequiredPermissioncheckEditPrivilege()Check whether or not the edit action can be performed on this object.RequiredPermissioncheckUsePrivilege()Check whether or not the use action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.StringgetBaseUser()Get the value for BaseUser.DateTimeZonegetExpiry()Get the value for Expiry.StringgetInfo()Get the value for Info.StringgetRemoteUserInfo()Get the value for RemoteUserInfo.StringgetSSOToken()Generate an SSO Token based upon the restricted scheduler session specification.StringgetURLEncodedSSOToken()Generate an SSO Token based upon the restricted scheduler session specification that is URL Encoded and can be used within a URLvoidsetExpiry(DateTimeZone newExpiry)Set the value for Expiry.voidsetInfo(String newInfo)Set the value for Info.voidsetRemoteUserInfo(String newRemoteUserInfo)Set the value for RemoteUserInfo.- 
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableRootObjectgetPartition, setPartition
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, 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
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "RestrictedSchedulerSessionSpecification" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<RestrictedSchedulerSessionSpecification> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_PRIV_CREATEstatic final String SEC_PRIV_CREATE This privilege can be granted at a group level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_VIEWstatic final String SEC_PRIV_VIEW This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_USEstatic final String SEC_PRIV_USE This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_EDITstatic final String SEC_PRIV_EDIT This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_DELETEstatic final String SEC_PRIV_DELETE This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_CREATEstatic final String SEC_RANK_CREATE This rank is made of the following privileges: create- See Also:
- Constant Field Values
 
 - 
SEC_RANK_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- See Also:
- Constant Field Values
 
 - 
SEC_RANK_USEstatic final String SEC_RANK_USE This rank is made of the following privileges: view , use , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_EDITstatic final String SEC_RANK_EDIT This rank is made of the following privileges: create , view , use , edit- See Also:
- Constant Field Values
 
 - 
SEC_RANK_DELETEstatic final String SEC_RANK_DELETE This rank is made of the following privileges: view , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: create , view , use , edit , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getBaseUserString getBaseUser() Get the value for BaseUser. (The base user that provides the read only access part of the session) This value is mandatory, and therefore will not benullif 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.
 
 - 
getRemoteUserInfoString getRemoteUserInfo() Get the value for RemoteUserInfo. (The information to identify the remote user (recorded for auditing)) This value is mandatory, and therefore will not benullif 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.
 
 - 
getInfoString getInfo() Get the value for Info. (The purpose of the Restricted Scheduler Session (recorded for auditing)) This value is mandatory, and therefore will not benullif 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.
 
 - 
getExpiryDateTimeZone getExpiry() Get the value for Expiry. (When the Restricted Scheduler Session Specification expires) This value is mandatory, and therefore will not benullif 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.
 
 - 
setRemoteUserInfovoid setRemoteUserInfo(String newRemoteUserInfo) Set the value for RemoteUserInfo. (The information to identify the remote user (recorded for auditing)) This value is mandatory.- Parameters:
- newRemoteUserInfo- the new value for RemoteUserInfo. If this is- null, 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.
 
 - 
setInfovoid setInfo(String newInfo) Set the value for Info. (The purpose of the Restricted Scheduler Session (recorded for auditing)) This value is mandatory.- Parameters:
- newInfo- the new value for Info. If this is- null, 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.
 
 - 
setExpiryvoid setExpiry(DateTimeZone newExpiry) Set the value for Expiry. (When the Restricted Scheduler Session Specification expires) This value is mandatory.- Parameters:
- newExpiry- the new value for Expiry. If this is- null, 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.
 
 - 
allowWritevoid allowWrite(SchedulerEntity entity) Grant write access the SchedulerEntity within the restricted session- Parameters:
- entity- The entity to grant access to
 
 - 
getSSOTokenString getSSOToken() Generate an SSO Token based upon the restricted scheduler session specification. NOTE: this is not safe for URLs and needs to be encoded for use in URLs.- Returns:
- the SSO token as a base64 encoded string
 
 - 
getURLEncodedSSOTokenString getURLEncodedSSOToken() Generate an SSO Token based upon the restricted scheduler session specification that is URL Encoded and can be used within a URL- Returns:
- the SSO token as URL encoded token
 
 - 
checkCreatePrivilegeRequiredPermission checkCreatePrivilege() Check whether or not the create action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkViewPrivilegeRequiredPermission checkViewPrivilege() Check whether or not the view action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkUsePrivilegeRequiredPermission checkUsePrivilege() Check whether or not the use action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkEditPrivilegeRequiredPermission checkEditPrivilege() Check whether or not the edit action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkDeletePrivilegeRequiredPermission checkDeletePrivilege() Check whether or not the delete action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 
- 
 
-