@Unstable
public abstract class AbstractCheckRightsRequest
extends org.xwiki.job.AbstractRequest
| Constructor and Description |
|---|
AbstractCheckRightsRequest() |
| Modifier and Type | Method and Description |
|---|---|
DocumentReference |
getAuthorReference() |
DocumentReference |
getUserReference() |
boolean |
isCheckAuthorRights() |
boolean |
isCheckRights() |
void |
setAuthorReference(DocumentReference authorReference)
Sets the author of the script which is performing the request.
|
void |
setCheckAuthorRights(boolean checkAuthorRights)
Sets whether the job should check or not if the user specified by
getAuthorReference() is authorized to
perform the actions implied by this request. |
void |
setCheckRights(boolean checkRights)
Sets whether the job should check or not if the user specified by
getUserReference() is authorized to
perform the actions implied by this request. |
void |
setUserReference(DocumentReference userReference)
Sets the user that should be used to perform this request.
|
containsProperty, getContext, getId, getProperties, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, removeProperty, setContext, setId, setId, setId, setInteractive, setProperty, setRemote, setStatusLogIsolated, setStatusSerialized, setVerbosepublic boolean isCheckAuthorRights()
true in case the job should check if the author specified by getAuthorReference() is
authorized to perform the actions implied by this request, false otherwisepublic void setCheckAuthorRights(boolean checkAuthorRights)
getAuthorReference() is authorized to
perform the actions implied by this request.checkAuthorRights - true to check if getAuthorReference() is authorized to perform this
request, false to perform this request without checking rightspublic boolean isCheckRights()
true in case the job should check if the user specified by getUserReference() is
authorized to perform the actions implied by this request, false otherwisepublic void setCheckRights(boolean checkRights)
getUserReference() is authorized to
perform the actions implied by this request.checkRights - true to check if getUserReference() is authorized to perform this request,
false to perform this request without checking rightspublic DocumentReference getUserReference()
isCheckRights() is true.public void setUserReference(DocumentReference userReference)
isCheckRights() is true.userReference - the user referencepublic DocumentReference getAuthorReference()
isCheckRights() is true.public void setAuthorReference(DocumentReference authorReference)
isCheckRights() is true.authorReference - the author referenceCopyright © 2004–2019 XWiki. All rights reserved.