Package com.redwood.scheduler.api.model
Interface EventDefinition
- 
- All Superinterfaces:
- ApplicationObject,- BusinessKeyObject,- EventDefinitionComp,- NamedRootObject,- NamedRootObjectComp,- PartitionableObject,- PartitionableObjectComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp,- UniqueNamedApplicationObject
 
 public interface EventDefinition extends EventDefinitionComp, UniqueNamedApplicationObject, Readable Events are signals for jobs to start execution. Events can be raised manually (in the user interface), job status events (which are raised when a job gets a specific job status), return code events (raised when a job gets a specific return code), file events (raised when files on the operating system level or URLs on the internet are created or modified) or programmatic events (raised by a user program).
- 
- 
Field SummaryFields Modifier and Type Field Description static LongBEHAVIOR_MAINTENANCEDeprecated.This is no longer usedstatic StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "EventDefinition" objects.static StringSEC_PRIV_CLEARThis privilege can be granted at a group level.static StringSEC_PRIV_CLEARPENDINGEVENTSThis privilege can be granted at a group level.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_DELETEARCHIVEDEVENTSThis privilege can be granted at a group level.static StringSEC_PRIV_EDITThis privilege can be granted at a group level.static StringSEC_PRIV_RAISEThis privilege can be granted at a group 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 , raise , clear , clearPendingEvents , deleteArchivedEvents , edit , deletestatic StringSEC_RANK_CREATEThis rank is made of the following privileges: createstatic StringSEC_RANK_DELETEThis rank is made of the following privileges: create , view , raise , clear , deleteArchivedEvents , clearPendingEvents , deletestatic StringSEC_RANK_EDITThis rank is made of the following privileges: create , view , raise , clear , deleteArchivedEvents , clearPendingEvents , editstatic StringSEC_RANK_MANAGEEVENTSThis rank is made of the following privileges: view , raise , clear , deleteArchivedEvents , clearPendingEventsstatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<EventDefinition>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 RequiredPermissioncheckClearPendingEventsPrivilege()Check whether or not the clearPendingEvents action can be performed on this object.RequiredPermissioncheckClearPrivilege()Check whether or not the clear action can be performed on this object.RequiredPermissioncheckCreatePrivilege()Check whether or not the create action can be performed on this object.RequiredPermissioncheckDeleteArchivedEventsPrivilege()Check whether or not the deleteArchivedEvents 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.RequiredPermissioncheckRaisePrivilege()Check whether or not the raise action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.voidclear()Clear the currently raised Event for this EventDefinition.voidclear(Job job, String clearerComment)Clear the currently raised Event instance for this EventDefinition.voidclearAllPending()Clear all the pending events for this EventDefinition.voidclearAllPending(Job job, String clearerComment)Clear all the pending events for this EventDefinition.EventcreateEvent()Create a newEventlinked to this object.FileEventDefinitioncreateFileEventDefinition()Create a newFileEventDefinitionlinked to this object.MonitorEventcreateMonitorEvent(LinkableMonitor newLinkableMonitor)Create a newMonitorEventlinked to this object.EventgetCurrentRaisedEvent()Get the value for CurrentRaisedEvent.StringgetDefaultClearComment()Get the value for DefaultClearComment.StringgetDefaultRaiseComment()Get the value for DefaultRaiseComment.EventgetEventByRaisedSequence(Long raisedSequence)Get the Event by RaisedSequence.RWIterable<Event>getEvents()Get anRWIterableover a collection ofEvents, the collection will be ordered by UniqueId.FileEventDefinitiongetFileEventDefinitionByName(String name)Get the FileEventDefinition by NameEventDefinition.RWIterable<FileEventDefinition>getFileEventDefinitions()Get anRWIterableover an ordered collection ofFileEventDefinitions.RWIterable<JobDefinitionRaiseEvent>getJobDefinitionRaiseEvents()Get anRWIterableover an ordered collection ofJobDefinitionRaiseEvents.RWIterable<JobDefinitionRuntimeLimit>getJobDefinitionRuntimeLimits()Get anRWIterableover an ordered collection ofJobDefinitionRuntimeLimits.RWIterable<JobDefinitionWaitEvent>getJobDefinitionWaitEvents()Get anRWIterableover an ordered collection ofJobDefinitionWaitEvents.EventgetLastRaisedEvent()Get the value for LastRaisedEvent.MonitorEventgetMonitorEventByLinkableMonitor(LinkableMonitor linkableMonitor)Get the MonitorEvent by MonitorEvent.RWIterable<MonitorEvent>getMonitorEvents()Get anRWIterableover an ordered collection ofMonitorEvents.booleanisRaised()Get the value for Raised.booleanisRequiresCommentOnClear()Get the value for RequiresCommentOnClear.booleanisRequiresCommentOnRaise()Get the value for RequiresCommentOnRaise.Eventraise()Raise an instance of this EventDefinition.Eventraise(Job job, String raiserComment)Raise an Event instance for this EventDefinition.voidsetDefaultClearComment(String newDefaultClearComment)Set the value for DefaultClearComment.voidsetDefaultRaiseComment(String newDefaultRaiseComment)Set the value for DefaultRaiseComment.voidsetRequiresCommentOnClear(boolean newRequiresCommentOnClear)Set the value for RequiresCommentOnClear.voidsetRequiresCommentOnRaise(boolean newRequiresCommentOnRaise)Set the value for RequiresCommentOnRaise.- 
Methods inherited from interface com.redwood.scheduler.api.model.ApplicationObjectgetParentApplication, setParentApplication
 - 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObjectcreateObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObjectcreateObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, 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 "EventDefinition" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<EventDefinition> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
BEHAVIOR_MAINTENANCE@Deprecated static final Long BEHAVIOR_MAINTENANCE Deprecated.This is no longer usedBehavior for System events that can't be modified, however file events can be added or removed. System Events with this behavior can change the file events that will raise this event. 
 - 
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_RAISEstatic final String SEC_PRIV_RAISE 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_CLEARstatic final String SEC_PRIV_CLEAR 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_CLEARPENDINGEVENTSstatic final String SEC_PRIV_CLEARPENDINGEVENTS 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_DELETEARCHIVEDEVENTSstatic final String SEC_PRIV_DELETEARCHIVEDEVENTS 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_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_MANAGEEVENTSstatic final String SEC_RANK_MANAGEEVENTS This rank is made of the following privileges: view , raise , clear , deleteArchivedEvents , clearPendingEvents- See Also:
- Constant Field Values
 
 - 
SEC_RANK_EDITstatic final String SEC_RANK_EDIT This rank is made of the following privileges: create , view , raise , clear , deleteArchivedEvents , clearPendingEvents , edit- See Also:
- Constant Field Values
 
 - 
SEC_RANK_DELETEstatic final String SEC_RANK_DELETE This rank is made of the following privileges: create , view , raise , clear , deleteArchivedEvents , clearPendingEvents , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: create , view , raise , clear , clearPendingEvents , deleteArchivedEvents , edit , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCurrentRaisedEventEvent getCurrentRaisedEvent() Get the value for CurrentRaisedEvent. (The currently raised Event. If isRaised()==false, then this will return null.)- 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.
 
 - 
getLastRaisedEventEvent getLastRaisedEvent() Get the value for LastRaisedEvent. (The last raised Event. If getCurrentRaisedEvent != null, then this method will return the same Event.)- 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.
 
 - 
isRaisedboolean isRaised() Get the value for Raised. (Is this event currently raised?)- 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.
 
 - 
isRequiresCommentOnRaiseboolean isRequiresCommentOnRaise() Get the value for RequiresCommentOnRaise. (If set, prompt the user for a comment on the raise of the event)- 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.
 
 - 
getDefaultRaiseCommentString getDefaultRaiseComment() Get the value for DefaultRaiseComment. (Default comment that will be set as RaiserComment on a newly raised event.)- 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.
 
 - 
isRequiresCommentOnClearboolean isRequiresCommentOnClear() Get the value for RequiresCommentOnClear. (If set, prompt the user for a comment on the clear of the event)- 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.
 
 - 
getDefaultClearCommentString getDefaultClearComment() Get the value for DefaultClearComment. (Default comment that will be set as ClearerComment on the cleared event.)- 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.
 
 - 
setRequiresCommentOnRaisevoid setRequiresCommentOnRaise(boolean newRequiresCommentOnRaise) Set the value for RequiresCommentOnRaise. (If set, prompt the user for a comment on the raise of the event)- Parameters:
- newRequiresCommentOnRaise- the new value for RequiresCommentOnRaise.
- 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.
 
 - 
setDefaultRaiseCommentvoid setDefaultRaiseComment(String newDefaultRaiseComment) Set the value for DefaultRaiseComment. (Default comment that will be set as RaiserComment on a newly raised event.) This value is optional.- Parameters:
- newDefaultRaiseComment- the new value for DefaultRaiseComment.
- 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.
 
 - 
setRequiresCommentOnClearvoid setRequiresCommentOnClear(boolean newRequiresCommentOnClear) Set the value for RequiresCommentOnClear. (If set, prompt the user for a comment on the clear of the event)- Parameters:
- newRequiresCommentOnClear- the new value for RequiresCommentOnClear.
- 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.
 
 - 
setDefaultClearCommentvoid setDefaultClearComment(String newDefaultClearComment) Set the value for DefaultClearComment. (Default comment that will be set as ClearerComment on the cleared event.) This value is optional.- Parameters:
- newDefaultClearComment- the new value for DefaultClearComment.
- 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.
 
 - 
raiseEvent raise() throws com.redwood.scheduler.api.exception.PendingEventsNotAllowedException Raise an instance of this EventDefinition. The session needs to be persisted before the Event will be raised in the database. If the event is raised in the context of a job, the RaiserObject will be set to this job. Otherwise it will default to the current user. The comment will be "raised automatically" resp. "raised manually", unless a raise comment was specified for the event definition.- Returns:
- The newly raised Event.
- Throws:
- com.redwood.scheduler.api.exception.PendingEventsNotAllowedException- Cannot raise event; isPendingEventsAllowed is false and the event is already raised.
 
 - 
clearvoid clear() Clear the currently raised Event for this EventDefinition. This method will not do anything if there is no currently-raised event. The session needs to be persisted before the Event will be cleared in the database.
 - 
clearAllPendingvoid clearAllPending() Clear all the pending events for this EventDefinition. This method will not do anything if there are no pending events. The session needs to be persisted before events will be cleared in the database.
 - 
clearAllPendingvoid clearAllPending(Job job, String clearerComment) Clear all the pending events for this EventDefinition. This method will not do anything if there are no pending events. The session needs to be persisted before events will be cleared in the database. Convenience function to clear and set Job and Comment in one go.- Parameters:
- job- The Job that caused this Event to be cleared, can be null if it is not being cleared by a Job.
- clearerComment- The comment that should be associated with the clearing of this event.
 
 - 
raiseEvent raise(Job job, String raiserComment) throws com.redwood.scheduler.api.exception.PendingEventsNotAllowedException Raise an Event instance for this EventDefinition. The session needs to be persisted before the Event will be raised in the database. Convenience function to raise and set Job and Comment in one go.- Parameters:
- job- The Job that caused this Event to be raised, can be null if it is not being raised by a Job. If set to null, the default rules for- raise()will apply.
- raiserComment- The comment that should be associated with this raised event.
- Returns:
- The newly raised Event.
- Throws:
- com.redwood.scheduler.api.exception.PendingEventsNotAllowedException- Cannot raise event; isPendingEventsAllowed is false and the event is already raised.
 
 - 
clearvoid clear(Job job, String clearerComment) Clear the currently raised Event instance for this EventDefinition. This method will not do anything if there is no currently-raised event. The session needs to be persisted before the Event will be cleared in the database. Convenience function to clear and set Job and Comment in one go.- Parameters:
- job- The Job that caused this Event to be cleared, can be null if it is not being cleared by a Job.
- clearerComment- The comment that should be associated with the clearing of this event.
 
 - 
getEventsRWIterable<Event> getEvents() Get anRWIterableover a collection ofEvents, the collection will be ordered by UniqueId. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. A list of events that have been created by calling raise().- Specified by:
- getEventsin interface- EventDefinitionComp
- Returns:
- An RWIterableover a collection ofEventobjects , the collection will be ordered by UniqueId.
 
 - 
getEventByRaisedSequenceEvent getEventByRaisedSequence(Long raisedSequence) Get the Event by RaisedSequence.- Parameters:
- raisedSequence-
- Returns:
- the Event, or nullif it could not be found
 
 - 
getFileEventDefinitionsRWIterable<FileEventDefinition> getFileEventDefinitions() Get anRWIterableover an ordered collection ofFileEventDefinitions. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. EventSourceDefinitions that can raise this event definition.- Specified by:
- getFileEventDefinitionsin interface- EventDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofFileEventDefinitionobjects .
 
 - 
createFileEventDefinitionFileEventDefinition createFileEventDefinition() Create a newFileEventDefinitionlinked to this object.- Returns:
- a new FileEventDefinition.
 
 - 
getFileEventDefinitionByNameFileEventDefinition getFileEventDefinitionByName(String name) Get the FileEventDefinition by NameEventDefinition.- Parameters:
- name-
- Returns:
- the FileEventDefinition, or nullif it could not be found
 
 - 
getJobDefinitionRaiseEventsRWIterable<JobDefinitionRaiseEvent> getJobDefinitionRaiseEvents() Get anRWIterableover an ordered collection ofJobDefinitionRaiseEvents. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Which EventDefinition will be raised when the job reaches a particular status?- Specified by:
- getJobDefinitionRaiseEventsin interface- EventDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofJobDefinitionRaiseEventobjects .
 
 - 
getJobDefinitionRuntimeLimitsRWIterable<JobDefinitionRuntimeLimit> getJobDefinitionRuntimeLimits() Get anRWIterableover an ordered collection ofJobDefinitionRuntimeLimits. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Which EventDefinition to be raised if the runtime limit is reached?- Specified by:
- getJobDefinitionRuntimeLimitsin interface- EventDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofJobDefinitionRuntimeLimitobjects .
 
 - 
getJobDefinitionWaitEventsRWIterable<JobDefinitionWaitEvent> getJobDefinitionWaitEvents() Get anRWIterableover an ordered collection ofJobDefinitionWaitEvents. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Which EventDefinition must be raised before this WaitEvent is satisfied?- Specified by:
- getJobDefinitionWaitEventsin interface- EventDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofJobDefinitionWaitEventobjects .
 
 - 
getMonitorEventsRWIterable<MonitorEvent> getMonitorEvents() Get anRWIterableover an ordered collection ofMonitorEvents. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Which Event should the Monitor raise on an error condition?- Specified by:
- getMonitorEventsin interface- EventDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofMonitorEventobjects .
 
 - 
createMonitorEventMonitorEvent createMonitorEvent(LinkableMonitor newLinkableMonitor) Create a newMonitorEventlinked to this object.- Parameters:
- newLinkableMonitor- The other parent of the- MonitorEventMonitorCheckassociation.
- Returns:
- a new MonitorEvent.
 
 - 
getMonitorEventByLinkableMonitorMonitorEvent getMonitorEventByLinkableMonitor(LinkableMonitor linkableMonitor) Get the MonitorEvent by MonitorEvent.- Parameters:
- linkableMonitor-
- Returns:
- the MonitorEvent, or nullif it could not be found
 
 - 
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.
 
 - 
checkRaisePrivilegeRequiredPermission checkRaisePrivilege() Check whether or not the raise 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.
 
 - 
checkClearPrivilegeRequiredPermission checkClearPrivilege() Check whether or not the clear 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.
 
 - 
checkClearPendingEventsPrivilegeRequiredPermission checkClearPendingEventsPrivilege() Check whether or not the clearPendingEvents 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.
 
 - 
checkDeleteArchivedEventsPrivilegeRequiredPermission checkDeleteArchivedEventsPrivilege() Check whether or not the deleteArchivedEvents 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.
 
 
- 
 
-