Package com.xpn.xwiki.job
Class JobRequestContext
- java.lang.Object
-
- com.xpn.xwiki.job.JobRequestContext
-
- All Implemented Interfaces:
Serializable
@Deprecated public class JobRequestContext extends Object implements Serializable
Deprecated.since 10.9RC1, useContextStore
insteadContains various information about the context which asked for a job execution.- Since:
- 8.3RC1
- Version:
- $Id: 0994e650a84c3e5cee3bbabb457a19e940db005e $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobRequestContext()
Deprecated.Default constructor.JobRequestContext(XWikiContext xcontext)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 theXWikiContext
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.
-
-
-
Field Detail
-
KEY
public static final String KEY
Deprecated.The key to user in theRequest
properties map.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobRequestContext
public JobRequestContext()
Deprecated.Default constructor.
-
JobRequestContext
public JobRequestContext(XWikiContext xcontext)
Deprecated.- Parameters:
xcontext
- the XWiki context to extract informations from
-
-
Method Detail
-
set
public static void set(org.xwiki.job.AbstractRequest request, XWikiContext xcontext)
Deprecated.Register part of theXWikiContext
in the job request.- Parameters:
request
- the job requestxcontext
- the XWiki context- Since:
- 8.4RC1
-
isWikiIdSet
public boolean isWikiIdSet()
Deprecated.- Returns:
- true if the identifier of the wiki has been set
-
getWikiId
public String getWikiId()
Deprecated.- Returns:
- the identifier of the wiki
-
setWikiId
public void setWikiId(String wikiId)
Deprecated.- Parameters:
wikiId
- the identifier of the wiki
-
isUserReferenceSet
public boolean isUserReferenceSet()
Deprecated.- Returns:
- true if the reference of the user has been set
-
getUserReference
public DocumentReference getUserReference()
Deprecated.- Returns:
- the reference of the user
-
setUserReference
public void setUserReference(DocumentReference userReference)
Deprecated.- Parameters:
userReference
- the reference of the user
-
isDocumentSet
public boolean isDocumentSet()
Deprecated.- Returns:
- true of the current document has been set
-
setDocumentReference
public void setDocumentReference(DocumentReference documentReference)
Deprecated.- Parameters:
documentReference
- the reference of the current document- Since:
- 9.7
-
getDocumentReference
public DocumentReference getDocumentReference()
Deprecated.- Returns:
- the reference of the current document
- Since:
- 9.7
-
setDocument
public void setDocument(XWikiDocument document)
Deprecated.- Parameters:
document
- the current document
-
isSDocumentSet
public boolean isSDocumentSet()
Deprecated.- Returns:
- true if the document holding the current author has been set
-
getDocument
public XWikiDocument getDocument()
Deprecated.- Returns:
- the current document
-
setSDocumentReference
public void setSDocumentReference(DocumentReference sdocumentReference)
Deprecated.- Parameters:
sdocumentReference
- the reference of the document holding the current author- Since:
- 9.7
-
getSDocumentReference
public DocumentReference getSDocumentReference()
Deprecated.- Returns:
- the reference of the document holding the current author
- Since:
- 9.7
-
setSDocument
public void setSDocument(XWikiDocument sdocument)
Deprecated.- Parameters:
sdocument
- the document holding the current author
-
getSDocument
public XWikiDocument getSDocument()
Deprecated.- Returns:
- the document holding the current author
-
isRequestSet
public boolean isRequestSet()
Deprecated.- Returns:
- true if the request informations have been set
- Since:
- 8.4RC1
-
setRequestUrl
public void setRequestUrl(URL requestURL)
Deprecated.- Parameters:
requestURL
- the requestURL
- Since:
- 8.4RC1
-
getRequestURL
public URL getRequestURL()
Deprecated.- Returns:
- the request URL
- Since:
- 8.4RC1
-
getRequestContextPath
public String getRequestContextPath()
Deprecated.- Returns:
- the requestContextPath
- Since:
- 10.11.1, 11.0
-
setRequestContextPath
public void setRequestContextPath(String requestContextPath)
Deprecated.- Parameters:
requestContextPath
- the requestContextPath to set- Since:
- 10.11.1, 11.0
-
setRequestParameters
public void setRequestParameters(Map<String,String[]> requestParameters)
Deprecated.- Parameters:
requestParameters
- the parameters of the request- Since:
- 8.4RC1
-
-