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 Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "RestrictedSchedulerSessionSpecification" objects.static String
SEC_PRIV_CREATE
This privilege can be granted at a group level.static String
SEC_PRIV_DELETE
This privilege can be granted at a group level.static String
SEC_PRIV_EDIT
This privilege can be granted at a group level.static String
SEC_PRIV_USE
This privilege can be granted at an instance level.static String
SEC_PRIV_VIEW
This privilege can be granted at a group level.static String
SEC_RANK_ALL
This rank is made of the following privileges: create , view , use , edit , deletestatic String
SEC_RANK_CREATE
This rank is made of the following privileges: createstatic String
SEC_RANK_DELETE
This rank is made of the following privileges: view , deletestatic String
SEC_RANK_EDIT
This rank is made of the following privileges: create , view , use , editstatic String
SEC_RANK_NONE
This rank has no privileges assigned to it.static String
SEC_RANK_USE
This rank is made of the following privileges: view , use , deletestatic String
SEC_RANK_VIEW
This rank is made of the following privileges: viewstatic QueryObjectType<RestrictedSchedulerSessionSpecification>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.-
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 void
allowWrite(SchedulerEntity entity)
Grant write access the SchedulerEntity within the restricted sessionRequiredPermission
checkCreatePrivilege()
Check whether or not the create action can be performed on this object.RequiredPermission
checkDeletePrivilege()
Check whether or not the delete action can be performed on this object.RequiredPermission
checkEditPrivilege()
Check whether or not the edit action can be performed on this object.RequiredPermission
checkUsePrivilege()
Check whether or not the use action can be performed on this object.RequiredPermission
checkViewPrivilege()
Check whether or not the view action can be performed on this object.String
getBaseUser()
Get the value for BaseUser.DateTimeZone
getExpiry()
Get the value for Expiry.String
getInfo()
Get the value for Info.String
getRemoteUserInfo()
Get the value for RemoteUserInfo.String
getSSOToken()
Generate an SSO Token based upon the restricted scheduler session specification.String
getURLEncodedSSOToken()
Generate an SSO Token based upon the restricted scheduler session specification that is URL Encoded and can be used within a URLvoid
setExpiry(DateTimeZone newExpiry)
Set the value for Expiry.void
setInfo(String newInfo)
Set the value for Info.void
setRemoteUserInfo(String newRemoteUserInfo)
Set the value for RemoteUserInfo.-
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableRootObject
getPartition, setPartition
-
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
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "RestrictedSchedulerSessionSpecification" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<RestrictedSchedulerSessionSpecification> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
SEC_PRIV_CREATE
static final String SEC_PRIV_CREATE
This privilege can be granted at a group level.- See Also:
- Constant Field Values
-
SEC_PRIV_VIEW
static 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_USE
static final String SEC_PRIV_USE
This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_PRIV_EDIT
static 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_DELETE
static 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_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_CREATE
static final String SEC_RANK_CREATE
This rank is made of the following privileges: create- See Also:
- Constant Field Values
-
SEC_RANK_VIEW
static final String SEC_RANK_VIEW
This rank is made of the following privileges: view- See Also:
- Constant Field Values
-
SEC_RANK_USE
static final String SEC_RANK_USE
This rank is made of the following privileges: view , use , delete- See Also:
- Constant Field Values
-
SEC_RANK_EDIT
static final String SEC_RANK_EDIT
This rank is made of the following privileges: create , view , use , edit- See Also:
- Constant Field Values
-
SEC_RANK_DELETE
static final String SEC_RANK_DELETE
This rank is made of the following privileges: view , delete- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static 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
-
getBaseUser
String 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 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.
-
getRemoteUserInfo
String getRemoteUserInfo()
Get the value for RemoteUserInfo. (The information to identify the remote user (recorded for auditing)) 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.
-
getInfo
String getInfo()
Get the value for Info. (The purpose of the Restricted Scheduler Session (recorded for auditing)) 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.
-
getExpiry
DateTimeZone getExpiry()
Get the value for Expiry. (When the Restricted Scheduler Session Specification expires) 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.
-
setRemoteUserInfo
void 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 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.
-
setInfo
void 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 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.
-
setExpiry
void 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 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.
-
allowWrite
void allowWrite(SchedulerEntity entity)
Grant write access the SchedulerEntity within the restricted session- Parameters:
entity
- The entity to grant access to
-
getSSOToken
String 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
-
getURLEncodedSSOToken
String 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
-
checkCreatePrivilege
RequiredPermission checkCreatePrivilege()
Check whether or not the create action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkViewPrivilege
RequiredPermission checkViewPrivilege()
Check whether or not the view action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkUsePrivilege
RequiredPermission checkUsePrivilege()
Check whether or not the use action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkEditPrivilege
RequiredPermission checkEditPrivilege()
Check whether or not the edit action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkDeletePrivilege
RequiredPermission checkDeletePrivilege()
Check whether or not the delete action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
-