ContextStore
instead@Deprecated public class JobRequestContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
KEY
Deprecated.
The key to user in the
Request properties map. |
Constructor and Description |
---|
JobRequestContext()
Deprecated.
Default constructor.
|
JobRequestContext(XWikiContext xcontext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
XWikiDocument |
getDocument()
Deprecated.
|
DocumentReference |
getDocumentReference()
Deprecated.
|
String |
getRequestContextPath()
Deprecated.
|
Map<String,String[]> |
getRequestParameters()
Deprecated.
|
URL |
getRequestURL()
Deprecated.
|
XWikiDocument |
getSDocument()
Deprecated.
|
DocumentReference |
getSDocumentReference()
Deprecated.
|
DocumentReference |
getUserReference()
Deprecated.
|
String |
getWikiId()
Deprecated.
|
boolean |
isDocumentSet()
Deprecated.
|
boolean |
isRequestSet()
Deprecated.
|
boolean |
isSDocumentSet()
Deprecated.
|
boolean |
isUserReferenceSet()
Deprecated.
|
boolean |
isWikiIdSet()
Deprecated.
|
static void |
set(org.xwiki.job.AbstractRequest request,
XWikiContext xcontext)
Deprecated.
Register part of the
XWikiContext in the job request. |
void |
setDocument(XWikiDocument document)
Deprecated.
|
void |
setDocumentReference(DocumentReference documentReference)
Deprecated.
|
void |
setRequestContextPath(String requestContextPath)
Deprecated.
|
void |
setRequestParameters(Map<String,String[]> requestParameters)
Deprecated.
|
void |
setRequestUrl(URL requestURL)
Deprecated.
|
void |
setSDocument(XWikiDocument sdocument)
Deprecated.
|
void |
setSDocumentReference(DocumentReference sdocumentReference)
Deprecated.
|
void |
setUserReference(DocumentReference userReference)
Deprecated.
|
void |
setWikiId(String wikiId)
Deprecated.
|
public static final String KEY
Request
properties map.public JobRequestContext()
public JobRequestContext(XWikiContext xcontext)
xcontext
- the XWiki context to extract informations frompublic static void set(org.xwiki.job.AbstractRequest request, XWikiContext xcontext)
XWikiContext
in the job request.request
- the job requestxcontext
- the XWiki contextpublic boolean isWikiIdSet()
public String getWikiId()
public void setWikiId(String wikiId)
wikiId
- the identifier of the wikipublic boolean isUserReferenceSet()
public DocumentReference getUserReference()
public void setUserReference(DocumentReference userReference)
userReference
- the reference of the userpublic boolean isDocumentSet()
public void setDocumentReference(DocumentReference documentReference)
documentReference
- the reference of the current documentpublic DocumentReference getDocumentReference()
public void setDocument(XWikiDocument document)
document
- the current documentpublic boolean isSDocumentSet()
public XWikiDocument getDocument()
public void setSDocumentReference(DocumentReference sdocumentReference)
sdocumentReference
- the reference of the document holding the current authorpublic DocumentReference getSDocumentReference()
public void setSDocument(XWikiDocument sdocument)
sdocument
- the document holding the current authorpublic XWikiDocument getSDocument()
public boolean isRequestSet()
public void setRequestUrl(URL requestURL)
requestURL
- the request URL
public URL getRequestURL()
public String getRequestContextPath()
public void setRequestContextPath(String requestContextPath)
requestContextPath
- the requestContextPath to setpublic void setRequestParameters(Map<String,String[]> requestParameters)
requestParameters
- the parameters of the requestCopyright © 2004–2021 XWiki. All rights reserved.