Uses of Class
com.xpn.xwiki.XWikiContext
-
-
Uses of XWikiContext in com.xpn.xwiki
Methods in com.xpn.xwiki that return XWikiContext Modifier and Type Method Description XWikiContext
XWikiContext. clone()
XWikiContext
XWikiContextInitializer. initialize(org.xwiki.context.ExecutionContext econtext)
Methods in com.xpn.xwiki with parameters of type XWikiContext Modifier and Type Method Description String
XWiki. addMandatory(XWikiContext context)
String
XWiki. addTooltip(String html, String message, XWikiContext context)
String
XWiki. addTooltip(String html, String message, String params, XWikiContext context)
String
XWiki. addTooltipJS(XWikiContext context)
protected void
XWiki. addUserToGroup(String userName, String groupName, XWikiContext context)
boolean
XWiki. checkAccess(String action, XWikiDocument doc, XWikiContext context)
int
XWiki. checkActive(XWikiContext context)
Deprecated.since 11.8RC1 prefer usingXWikiUser.isDisabled(XWikiContext)
.int
XWiki. checkActive(String user, XWikiContext context)
Deprecated.since 11.8RC1 prefer usingXWikiUser.isDisabled(XWikiContext)
.XWikiUser
XWiki. checkAuth(XWikiContext context)
Authenticate the user from the context and check if the user is disabled or not.void
XWiki. checkDeletingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context)
Check if the user is allowed to delete the document.void
XWiki. checkSavingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context)
Check if the user is allowed to save the document.void
XWiki. checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment, boolean isMinorEdit, XWikiContext context)
Check if the user is allowed to save the document.void
XWiki. checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment, XWikiContext context)
Check if the user is allowed to save the document.String
XWiki. clearName(String name, boolean stripDots, boolean ascii, XWikiContext context)
String
XWiki. clearName(String name, XWikiContext context)
String
XWiki. convertUsername(String username, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, boolean reset, boolean force, boolean resetCreationData, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, boolean reset, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, String wikilocale, boolean reset, boolean force, boolean resetCreationData, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, String wikilocale, boolean reset, boolean force, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, String wikilocale, boolean reset, XWikiContext context)
boolean
XWiki. copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, String wikilocale, XWikiContext context)
int
XWiki. copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale, boolean clean, XWikiContext context)
int
XWiki. copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale, XWikiContext context)
int
XWiki. copyWiki(String sourceWiki, String targetWiki, String locale, boolean clean, XWikiContext context)
Deprecated.since 5.3, useWikiManager.copy(String, String, String, boolean, boolean, boolean)
insteadint
XWiki. copyWiki(String sourceWiki, String targetWiki, String locale, XWikiContext context)
Deprecated.since 5.3, useWikiManager.copy(String, String, String, boolean, boolean, boolean)
insteadint
XWiki. countAttachments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
Count attachments returned by a given parameterized queryprotected Object
XWiki. createClassFromConfig(String param, String defClass, XWikiContext context)
boolean
XWiki. createEmptyUser(String xwikiname, String userRights, XWikiContext context)
Method allows to create an empty user with no password (he won't be able to login) This method is usefull for authentication like LDAP or App Server trustedint
XWiki. createUser(boolean withValidation, String userRights, XWikiContext context)
int
XWiki. createUser(XWikiContext context)
int
XWiki. createUser(String userName, Map<String,?> map, XWikiContext context)
Create a new user.int
XWiki. createUser(String userName, Map<String,?> map, String userRights, XWikiContext context)
Create a new user.int
XWiki. createUser(String xwikiname, Map<String,?> map, String parent, String content, String userRights, XWikiContext context)
Deprecated.starting with XE 1.8.1 useXWiki.createUser(String, Map, String, String, String, String, XWikiContext)
insteadint
XWiki. createUser(String userName, Map<String,?> map, String parent, String content, String syntaxId, String userRights, XWikiContext context)
Deprecated.since 2.4RC1 useXWiki.createUser(String, Map, EntityReference, String, Syntax, String, XWikiContext)
insteadint
XWiki. createUser(String userName, Map<String,?> map, EntityReference parentReference, String content, org.xwiki.rendering.syntax.Syntax syntax, String userRights, XWikiContext context)
Create a new user.void
XWiki. deleteAllDocuments(XWikiDocument doc, boolean toTrash, XWikiContext context)
void
XWiki. deleteAllDocuments(XWikiDocument doc, XWikiContext context)
void
XWiki. deleteDocument(XWikiDocument doc, boolean totrash, XWikiContext context)
void
XWiki. deleteDocument(XWikiDocument doc, XWikiContext context)
void
XWiki. deleteDocumentVersions(XWikiDocument document, String version1, String version2, XWikiContext context)
Delete a range of versions from a document history.String
XWiki. evaluateTemplate(String template, XWikiContext context)
Deprecated.since 7.0M1, useTemplateManager.render(String)
insteadboolean
XWiki. exists(String fullname, XWikiContext context)
Deprecated.since 2.2.1 useXWiki.exists(DocumentReference, XWikiContext)
boolean
XWiki. exists(DocumentReference documentReference, XWikiContext context)
Check if a document exist.boolean
XWiki. exists(PageReference reference, XWikiContext context)
Returns whether a page exists or not.void
XWiki. flushCache(XWikiContext context)
String
XWiki. formatDate(Date date, String format, XWikiContext context)
String
XWiki. getAdClientId(XWikiContext context)
String
XWiki. getAdType(XWikiContext context)
String
XWiki. getAttachmentRevisionURL(AttachmentReference attachmentReference, String revision, String queryString, XWikiContext context)
String
XWiki. getAttachmentURL(String fullname, String filename, XWikiContext context)
String
XWiki. getAttachmentURL(String fullname, String filename, String queryString, XWikiContext context)
String
XWiki. getAttachmentURL(AttachmentReference attachmentReference, String queryString, XWikiContext context)
String
XWiki. getAttachmentURL(AttachmentReference attachmentReference, String action, String queryString, XWikiContext context)
List<Locale>
XWiki. getAvailableLocales(XWikiContext xcontext)
Get the available locales according to the preferences.String
XWiki. getBaseSkin(XWikiContext context)
Deprecated.since 7.0M1String
XWiki. getBaseSkin(XWikiContext context, boolean fromRenderSkin)
Deprecated.since 7.0M1String
XWiki. getBaseSkin(String skin, XWikiContext context)
Deprecated.since 7.0M1, useSkinManager.getCurrentSkin(boolean)
andSkin.getParent()
insteadBaseClass
XWiki. getClass(String fullName, XWikiContext context)
Deprecated.since 2.2M2 useXWiki.getXClass(DocumentReference, XWikiContext)
List<String>
XWiki. getClassList(XWikiContext context)
BaseClass
XWiki. getCommentsClass(XWikiContext context)
String
XWiki. getConvertingUserNameType(XWikiContext context)
XWikiCriteriaService
XWiki. getCriteriaService(XWikiContext context)
String
XWiki. getCurrentContentSyntaxId(XWikiContext context)
Get the syntax of the content currently being executed.String
XWiki. getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context)
Get the syntax of the content currently being executed.String
XWiki. getDefaultBaseSkin(XWikiContext context)
Deprecated.since 7.0M1, useSkinManager.getDefaultParentSkin()
insteadString
XWiki. getDefaultLanguage(XWikiContext xcontext)
Deprecated.since 5.1M2 useXWiki.getDefaultLocale(XWikiContext)
insteadLocale
XWiki. getDefaultLocale(XWikiContext xcontext)
The default locale in the preferences.String
XWiki. getDefaultPage(XWikiContext context)
String
XWiki. getDefaultSpace(XWikiContext context)
DeletedAttachment
XWiki. getDeletedAttachment(String id, XWikiContext context)
Retrieve a specific attachment from the trash.List<DeletedAttachment>
XWiki. getDeletedAttachments(String docName, XWikiContext context)
Retrieve all the deleted attachments that belonged to a certain document.List<DeletedAttachment>
XWiki. getDeletedAttachments(String docName, String filename, XWikiContext context)
Retrieve all the deleted attachments that belonged to a certain document and had the specified name.XWikiDeletedDocument
XWiki. getDeletedDocument(long index, XWikiContext context)
XWikiDeletedDocument
XWiki. getDeletedDocument(String fullname, String locale, int index, XWikiContext context)
Deprecated.since 9.4RC1.XWikiDeletedDocument[]
XWiki. getDeletedDocuments(String batchId, XWikiContext context)
XWikiDeletedDocument[]
XWiki. getDeletedDocuments(String fullname, String locale, XWikiContext context)
String
XWiki. getDocLanguagePreferenceNew(XWikiContext context)
Deprecated.since 8.0M1, useXWiki.getDocLocalePreferenceNew(XWikiContext)
insteadLocale
XWiki. getDocLocalePreferenceNew(XWikiContext context)
XWikiDocument
XWiki. getDocument(XWikiDocument doc, XWikiContext context)
XWikiDocument
XWiki. getDocument(XWikiDocument document, String revision, XWikiContext context)
Deprecated.sine 9.10RC1, useDocumentRevisionProvider.getRevision(XWikiDocument, String)
insteadXWikiDocument
XWiki. getDocument(String fullname, XWikiContext context)
Deprecated.since 2.2M1 useXWiki.getDocument(DocumentReference, XWikiContext)
insteadXWikiDocument
XWiki. getDocument(String spaces, String fullname, XWikiContext context)
Deprecated.since 2.2M1 useXWiki.getDocument(DocumentReference, XWikiContext)
insteadXWikiDocument
XWiki. getDocument(String reference, EntityType type, XWikiContext xcontext)
Loads a XWikiDocument from the store.XWikiDocument
XWiki. getDocument(DocumentReference reference, XWikiContext context)
XWikiDocument
XWiki. getDocument(DocumentReference reference, String revision, XWikiContext context)
Deprecated.sine 9.10RC1, useDocumentRevisionProvider.getRevision(DocumentReference, String)
insteadXWikiDocument
XWiki. getDocument(EntityReference reference, XWikiContext context)
Loads a XWikiDocument from the store.XWikiDocument
XWiki. getDocument(PageReference reference, XWikiContext context)
DocumentReference
XWiki. getDocumentReference(XWikiRequest request, XWikiContext context)
DocumentReference
XWiki. getDocumentReference(EntityReference reference, XWikiContext context)
Find the document reference corresponding to the entity reference based on what exist in the database (page reference can means two different documents for example).BaseClass
XWiki. getEditModeClass(XWikiContext context)
Verify if theXWiki.EditModeClass
page exists and that it contains all the required configuration properties to make the edit mode feature work properly.String
XWiki. getEditorPreference(XWikiContext context)
String
XWiki. getExternalAttachmentURL(String fullName, String filename, XWikiContext context)
String
XWiki. getExternalURL(String fullname, String action, XWikiContext context)
String
XWiki. getExternalURL(String fullname, String action, String querystring, XWikiContext context)
String
XWiki. getExternalURL(DocumentReference documentReference, String action, String querystring, String anchor, XWikiContext context)
Get the full URL of the givenDocumentReference
.BaseClass
XWiki. getGlobalRightsClass(XWikiContext context)
BaseClass
XWiki. getGroupClass(XWikiContext context)
XWikiGroupService
XWiki. getGroupService(XWikiContext context)
int
XWiki. getHttpTimeout(XWikiContext context)
String
XWiki. getHttpUserAgent(XWikiContext context)
String
XWiki. getIconURL(String iconName, XWikiContext context)
List<String>
XWiki. getIncludedMacros(String defaultSpace, String content, XWikiContext context)
String
XWiki. getInterfaceLanguagePreference(XWikiContext context)
Deprecated.since 8.0M1, useXWiki.getInterfaceLocalePreference(XWikiContext)
insteadLocale
XWiki. getInterfaceLocalePreference(XWikiContext context)
String
XWiki. getLanguagePreference(XWikiContext context)
Deprecated.since 8.0M1, useXWiki.getLocalePreference(XWikiContext)
insteadLocale
XWiki. getLocalePreference(XWikiContext context)
The algorithm to find the locale to use is the following, in this order: Try to find the current locale in use from the XWiki contex If the wiki is not multilingual use the wiki default locale (default_language
xproperty inXWikiPreferences
xobject or English if not found) If the wiki is multilingual Try to get the locale passed in the request (looking for alanguage
query string parameter).String
XWiki. getLocalUserName(String user, XWikiContext context)
String
XWiki. getLocalUserName(String user, String format, boolean link, XWikiContext context)
String
XWiki. getLocalUserName(String user, String format, XWikiContext context)
String
XWiki. getMacroList(XWikiContext context)
static XWiki
XWiki. getMainXWiki(boolean wait, XWikiContext context)
static XWiki
XWiki. getMainXWiki(XWikiContext context)
int
XWiki. getMaxRecursiveSpaceChecks(XWikiContext context)
BaseObject
XWiki. getObjectFromRequest(String className, XWikiContext context)
String
XWiki. getPlainUserName(DocumentReference userReference, XWikiContext context)
Generate and return an unescaped user display name.XWikiPluginInterface
XWiki. getPlugin(String name, XWikiContext context)
Deprecated.Api
XWiki. getPluginApi(String name, XWikiContext context)
Deprecated.BaseClass
XWiki. getPrefsClass(XWikiContext context)
Verify if theXWiki.XWikiPreferences
page exists and that it contains all the required configuration properties to make XWiki work properly.PropertyClass
XWiki. getPropertyClassFromName(String propPath, XWikiContext context)
BaseClass
XWiki. getRedirectClass(XWikiContext context)
Verify if theXWiki.GlobalRedirect
page exists and that it contains all the required configuration properties to make the redirection feature work properly.String
XWiki. getRefererText(String referer, XWikiContext context)
BaseClass
XWiki. getRightsClass(XWikiContext context)
BaseClass
XWiki. getRightsClass(String pagename, XWikiContext context)
URL
XWiki. getServerURL(String wikiId, XWikiContext xcontext)
String
XWiki. getServletPath(String wikiName, XWikiContext context)
BaseClass
XWiki. getSheetClass(XWikiContext context)
Deprecated.since 3.1M2 edit mode class should be used for this purpose, not the sheet classString
XWiki. getSkin(XWikiContext context)
Deprecated.since 7.0M1, useSkinManager.getCurrentSkin(boolean)
insteadBaseClass
XWiki. getSkinClass(XWikiContext context)
String
XWiki. getSkinFile(String filename, boolean forceSkinAction, XWikiContext context)
Build and return a skin file url based on the given parameters.String
XWiki. getSkinFile(String filename, XWikiContext context)
String
XWiki. getSkinFile(String fileName, String skinId, boolean forceSkinAction, XWikiContext context)
String
XWiki. getSkinFile(String filename, String skin, XWikiContext context)
String
XWiki. getSkinPreference(String prefname, XWikiContext context)
String
XWiki. getSkinPreference(String prefname, String defaultValue, XWikiContext context)
String
XWiki. getSpaceCopyright(XWikiContext context)
List<String>
XWiki. getSpaceDocsName(String spaceReference, XWikiContext context)
Deprecated.use query service insteadString
XWiki. getSpacePreference(String preference, XWikiContext context)
String
XWiki. getSpacePreference(String preference, String defaultValue, XWikiContext context)
String
XWiki. getSpacePreference(String preferenceKey, SpaceReference spaceReference, XWikiContext context)
Get the reference of the space and fallback on parent space or wiki in case nothing is found.String
XWiki. getSpacePreference(String preferenceKey, SpaceReference spaceReference, String defaultValue, XWikiContext context)
Get the preference key for the space and fallback on parent space or wiki in case nothing is found.int
XWiki. getSpacePreferenceAsInt(String preference, int defaultValue, XWikiContext context)
int
XWiki. getSpacePreferenceAsInt(String preference, XWikiContext context)
long
XWiki. getSpacePreferenceAsLong(String preference, long defaultValue, XWikiContext context)
long
XWiki. getSpacePreferenceAsLong(String preference, XWikiContext context)
List<String>
XWiki. getSpaces(XWikiContext context)
Deprecated.use query service insteadXWikiStatsService
XWiki. getStatsService(XWikiContext context)
BaseClass
XWiki. getTagClass(XWikiContext context)
Verify if theXWiki.TagClass
page exists and that it contains all the required configuration properties to make the tag feature work properly.static String
XWiki. getTextArea(String content, XWikiContext context)
String
XWiki. getUniquePageName(String space, XWikiContext context)
Generates a unique page name based on initial page name and already existing pages.String
XWiki. getUniquePageName(String space, String name, XWikiContext context)
Generates a unique page name based on initial page name and already existing pages.String
XWiki. getURL(String fullname, String action, XWikiContext context)
Deprecated.since 2.3M2 useXWiki.getURL(DocumentReference, String, XWikiContext)
String
XWiki. getURL(String fullname, String action, String querystring, XWikiContext context)
String
XWiki. getURL(String fullname, String action, String queryString, String anchor, XWikiContext context)
Deprecated.String
XWiki. getURL(DocumentReference reference, String action, XWikiContext context)
String
XWiki. getURL(DocumentReference documentReference, String action, String queryString, String anchor, XWikiContext context)
String
XWiki. getURL(EntityReference reference, XWikiContext context)
String
XWiki. getURL(EntityReference reference, String action, XWikiContext context)
String
XWiki. getURL(EntityReference entityReference, String action, String queryString, String anchor, XWikiContext context)
String
XWiki. getURLContent(String surl, XWikiContext context)
String
XWiki. getURLContent(String surl, String username, String password, XWikiContext context)
byte[]
XWiki. getURLContentAsBytes(String surl, XWikiContext context)
byte[]
XWiki. getURLContentAsBytes(String surl, String username, String password, XWikiContext context)
User
XWiki. getUser(XWikiContext context)
User
XWiki. getUser(String username, XWikiContext context)
Deprecated.since 11.8RC1 prefer usingXWiki.getUser(DocumentReference, XWikiContext)
.User
XWiki. getUser(DocumentReference userReference, XWikiContext context)
Retrieve a user from its document reference.BaseClass
XWiki. getUserClass(XWikiContext context)
Verify if theXWiki.XWikiUsers
page exists and that it contains all the required configuration properties to make the user feature work properly.String
XWiki. getUserName(String user, XWikiContext context)
String
XWiki. getUserName(String user, String format, boolean link, XWikiContext context)
String
XWiki. getUserName(String user, String format, XWikiContext context)
String
XWiki. getUserName(DocumentReference userReference, String format, boolean link, boolean escapeXML, XWikiContext context)
Generate a display user name and return it.String
XWiki. getUserPreference(String prefname, boolean useCookie, XWikiContext context)
String
XWiki. getUserPreference(String prefname, XWikiContext context)
int
XWiki. getUserPreferenceAsInt(String prefname, XWikiContext context)
long
XWiki. getUserPreferenceAsLong(String preference, XWikiContext context)
String
XWiki. getUserPreferenceFromCookie(String prefname, XWikiContext context)
String
XWiki. getUserTimeZone(XWikiContext context)
List<String>
XWiki. getVirtualWikisDatabaseNames(XWikiContext context)
Deprecated.since 5.3, useWikiDescriptorManager.getAllIds()
insteadString
XWiki. getWebAppPath(XWikiContext context)
String
XWiki. getWikiOwner(String wikiName, XWikiContext context)
Get the reference of the owner for the provider wiki.String
XWiki. getWysiwygToolbars(XWikiContext context)
BaseClass
XWiki. getXClass(DocumentReference documentReference, XWikiContext context)
static XWiki
XWiki. getXWiki(boolean wait, XWikiContext xcontext)
Return the XWiki object (as in "the Wiki API") corresponding to the requested wiki.static XWiki
XWiki. getXWiki(XWikiContext context)
Return the XWiki object (as in "the Wiki API") corresponding to the requested wiki.String
XWiki. getXWikiPreference(String prefname, XWikiContext context)
String
XWiki. getXWikiPreference(String prefname, String defaultValue, XWikiContext context)
String
XWiki. getXWikiPreference(String prefname, String fallbackParam, String defaultValue, XWikiContext context)
Obtain a preference value for the wiki, looking up first in the XWiki.XWikiPreferences document, then fallbacking on a config parameter when the first lookup gives an empty string, then returning the default value if the config parameter returned itself an empty string.String
XWiki. getXWikiPreference(String prefname, String wiki, String fallbackParam, String defaultValue, XWikiContext xcontext)
Obtain a preference value for the wiki, looking up first in the XWiki.XWikiPreferences document, then fallbacking on a config parameter when the first lookup gives an empty string, then returning the default value if the config parameter returned itself an empty string.int
XWiki. getXWikiPreferenceAsInt(String preference, int defaultValue, XWikiContext context)
int
XWiki. getXWikiPreferenceAsInt(String preference, XWikiContext context)
int
XWiki. getXWikiPreferenceAsInt(String preference, String fallbackParameter, int defaultValue, XWikiContext context)
long
XWiki. getXWikiPreferenceAsLong(String preference, long defaultValue, XWikiContext context)
long
XWiki. getXWikiPreferenceAsLong(String preference, XWikiContext context)
long
XWiki. getXWikiPreferenceAsLong(String preference, String fallbackParameter, long defaultValue, XWikiContext context)
ZipOutputStream
XWiki. getZipOutputStream(XWikiContext context)
boolean
XWiki. hasAttachmentRecycleBin(XWikiContext context)
Indicates whether deleted attachments are stored in a recycle bin or not.boolean
XWiki. hasAttachmentVersioning(XWikiContext context)
boolean
XWiki. hasBacklinks(XWikiContext context)
boolean
XWiki. hasCentralizedAuthentication(XWikiContext context)
boolean
XWiki. hasEditComment(XWikiContext context)
boolean
XWiki. hasMinorEdit(XWikiContext context)
boolean
XWiki. hasRecycleBin(XWikiContext context)
boolean
XWiki. hasSectionEdit(XWikiContext context)
boolean
XWiki. hasTags(XWikiContext context)
boolean
XWiki. hasVersioning(XWikiContext context)
String
XWiki. include(String topic, boolean isForm, XWikiContext context)
void
XWiki. initializeMandatoryDocuments(XWikiContext context)
Ensure that mandatory classes (ie classes XWiki needs to work properly) exist and create them if they don't exist.boolean
XWiki. initializeWiki(String wikiId, boolean wait, XWikiContext xcontext)
Make sure the wiki is initializing or wait for it.void
XWiki. initXWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engineContext, boolean noupdate)
Deprecated.since 6.1M2, useXWiki.initXWiki(XWikiContext, XWikiEngineContext, boolean)
insteadvoid
XWiki. initXWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate)
Initialize all xwiki subsystems.boolean
XWiki. isEditCommentFieldHidden(XWikiContext context)
boolean
XWiki. isEditCommentMandatory(XWikiContext context)
boolean
XWiki. isEditCommentSuggested(XWikiContext context)
static boolean
XWiki. isInitializing(XWikiContext xcontext)
boolean
XWiki. isMultiLingual(XWikiContext context)
String
XWiki. ParamAsRealPath(String key, XWikiContext context)
String
XWiki. parseContent(String content, XWikiContext context)
Deprecated.Since 7.2M1.Object
XWiki. parseGroovyFromPage(String fullName, XWikiContext context)
Object
XWiki. parseGroovyFromPage(String fullName, String jarWikiPage, XWikiContext context)
Object
XWiki. parseGroovyFromString(String script, XWikiContext xcontext)
Privileged API to retrieve an object instantiated from groovy code in a String.Object
XWiki. parseGroovyFromString(String script, String jarWikiPage, XWikiContext xcontext)
Privileged API to retrieve an object instantiated from groovy code in a String, using a classloader including all JAR files located in the passed page as attachments.String
XWiki. parseTemplate(String template, XWikiContext context)
Deprecated.useXWiki.evaluateTemplate(String, XWikiContext)
insteadString
XWiki. parseTemplate(String template, String skinId, XWikiContext context)
Deprecated.since 7.0M1, useTemplateManager.renderFromSkin(java.lang.String, org.xwiki.skin.Skin)
insteadboolean
XWiki. prepareDocuments(XWikiRequest request, XWikiContext context, org.apache.velocity.VelocityContext vcontext)
void
XWiki. prepareResources(XWikiContext context)
Prepares the localized resources, according to the selected locale.void
XWiki. protectUserPage(String userName, String userRights, XWikiDocument doc, XWikiContext context)
void
XWiki. refreshLinks(XWikiContext context)
void
XWiki. renameByCopyAndDelete(XWikiDocument sourceDoc, DocumentReference newDocumentReference, List<DocumentReference> backlinkDocumentReferences, List<DocumentReference> childDocumentReferences, XWikiContext context)
Deprecated.Old implementation of the rename by copy and delete.boolean
XWiki. renameDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference, boolean overwrite, List<DocumentReference> backlinkDocumentReferences, List<DocumentReference> childDocumentReferences, XWikiContext context)
API to rename a document to another document.String
XWiki. renderTemplate(String template, XWikiContext context)
String
XWiki. renderTemplate(String template, String skin, XWikiContext context)
void
XWiki. restoreFromRecycleBin(long index, String comment, XWikiContext context)
Restore a document with passed index from recycle bin.void
XWiki. restoreFromRecycleBin(XWikiDocument doc, long index, String comment, XWikiContext context)
Deprecated.since 9.4RC1.void
XWiki. restoreFromRecycleBin(XWikiDocument doc, String comment, XWikiContext context)
Restore a document with passed index from recycle bin.XWikiDocument
XWiki. rollback(XWikiDocument tdoc, String rev, boolean addRevision, XWikiContext xcontext)
XWikiDocument
XWiki. rollback(XWikiDocument tdoc, String rev, XWikiContext context)
void
XWiki. saveDocument(XWikiDocument doc, XWikiContext context)
void
XWiki. saveDocument(XWikiDocument document, String comment, boolean isMinorEdit, XWikiContext context)
Save the passed document in the store.void
XWiki. saveDocument(XWikiDocument doc, String comment, XWikiContext context)
<T> List<T>
XWiki. search(String sql, int nb, int start, XWikiContext context)
<T> List<T>
XWiki. search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context)
<T> List<T>
XWiki. search(String sql, XWikiContext context)
<T> List<T>
XWiki. search(String sql, Object[][] whereParams, XWikiContext context)
List<XWikiAttachment>
XWiki. searchAttachments(String parametrizedSqlClause, boolean checkRight, int nb, int start, List<?> parameterValues, XWikiContext context)
Deprecated.since 9.7RC1, use the QueryManager instead along with the "attachment" query filtervoid
XWiki. sendConfirmationEmail(String xwikiname, String password, String email, String message, String contentfield, XWikiContext context)
void
XWiki. sendValidationEmail(String xwikiname, String password, String email, String validkey, String contentfield, XWikiContext context)
void
XWiki. sendValidationEmail(String xwikiname, String password, String email, String addfieldname, String addfieldvalue, String contentfield, XWikiContext context)
void
XWiki. setPhonyDocument(String docName, XWikiContext context, org.apache.velocity.VelocityContext vcontext)
Deprecated.void
XWiki. setPhonyDocument(DocumentReference reference, XWikiContext context)
void
XWiki. setPhonyDocument(DocumentReference reference, XWikiContext context, org.apache.velocity.VelocityContext vcontext)
Deprecated.since 8.3M1, useXWiki.setPhonyDocument(DocumentReference, XWikiContext)
insteadvoid
XWiki. setUserDefaultGroup(String fullwikiname, XWikiContext context)
boolean
XWiki. showViewAction(XWikiContext context)
void
XWiki. updateDatabase(String wikiId, boolean force, boolean initDocuments, XWikiContext context)
Deprecated.since 8.4RC1, useXWiki.initializeWiki(String, boolean, XWikiContext)
insteadvoid
XWiki. updateDatabase(String wikiId, boolean force, XWikiContext context)
Deprecated.since 8.4RC1, useXWiki.initializeWiki(String, boolean, XWikiContext)
insteadvoid
XWiki. updateDatabase(String wikiId, XWikiContext context)
Deprecated.since 8.4RC1, useXWiki.initializeWiki(String, boolean, XWikiContext)
insteadboolean
XWiki. useDefaultAction(XWikiContext context)
boolean
XWiki. validateDocument(XWikiDocument doc, XWikiContext context)
int
XWiki. validateUser(boolean withConfirmEmail, XWikiContext context)
Constructors in com.xpn.xwiki with parameters of type XWikiContext Constructor Description XWiki(XWikiConfig config, XWikiContext context)
Deprecated.since 6.1M3, useXWiki(XWikiContext)
insteadXWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate)
Deprecated.since 6.1M3, useXWiki(XWikiContext, XWikiEngineContext, boolean)
insteadXWiki(XWikiContext context)
Initialize all xwiki subsystems.XWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate)
Initialize all xwiki subsystems.XWiki(InputStream is, XWikiContext context, XWikiEngineContext engine_context)
Deprecated.useXWiki(XWikiContext, XWikiEngineContext, boolean)
insteadXWiki(String xwikicfgpath, XWikiContext context)
Deprecated.useXWiki(XWikiContext)
insteadXWiki(String xwikicfgpath, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate)
Deprecated.useXWiki(XWikiContext, XWikiEngineContext, boolean)
instead -
Uses of XWikiContext in com.xpn.xwiki.api
Fields in com.xpn.xwiki.api declared as XWikiContext Modifier and Type Field Description protected XWikiContext
Api. context
The current context, needed by the underlying protected object.Methods in com.xpn.xwiki.api that return XWikiContext Modifier and Type Method Description XWikiContext
Context. getContext()
Returns the XWiki context.protected XWikiContext
Api. getXWikiContext()
Note 1: This method is protected so that users of this API do not get to see the XWikiContext object which should not be exposed.Constructors in com.xpn.xwiki.api with parameters of type XWikiContext Constructor Description Api(XWikiContext context)
Attachment(Document doc, XWikiAttachment attachment, XWikiContext context)
AttachmentDiff(AttachmentDiff diff, XWikiContext context)
Wraps the given unsafe attachment difference.Class(BaseClass obj, XWikiContext context)
Collection(BaseCollection collection, XWikiContext context)
Context(XWikiContext context)
The Constructor.CriteriaService(XWikiContext context)
DeletedAttachment(DeletedAttachment deletedAttachment, XWikiContext context)
Simple constructor, initializes a new API object with the currentcontext
and the specified protecteddeleted attachment
object.DeletedDocument(XWikiDeletedDocument deletedDoc, XWikiContext context)
Simple constructor, initializes a new API object with the currentcontext
and the specified protecteddeleted document
object.DeprecatedContext(XWikiContext context)
Deprecated.The Constructor.Document(XWikiDocument doc, XWikiContext context)
Document constructor.Element(BaseElement element, XWikiContext context)
The Constructor.Object(BaseObject obj, XWikiContext context)
Property(BaseProperty property, XWikiContext context)
The Constructor.PropertyClass(PropertyClass property, XWikiContext context)
Default API constructor that creates a wrapper for aPropertyClass
, given acontext
.RevisionInfo(XWikiRCSNodeInfo nodeInfo, XWikiContext context)
StatsService(XWikiContext context)
Create new StatsService instance.User(XWikiUser user, XWikiContext context)
Constructs a wrapper for the given protected XWikiUser object.Util(XWiki xwiki, XWikiContext context)
XWiki(XWiki xwiki, XWikiContext context)
XWiki API Constructor -
Uses of XWikiContext in com.xpn.xwiki.criteria.impl
Constructors in com.xpn.xwiki.criteria.impl with parameters of type XWikiContext Constructor Description XWikiCriteriaServiceImpl(XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.doc
Methods in com.xpn.xwiki.doc with parameters of type XWikiContext Modifier and Type Method Description XWikiAttachment
XWikiDocument. addAttachment(String fileName, byte[] content, XWikiContext context)
Deprecated.XWikiAttachment
XWikiDocument. addAttachment(String fileName, InputStream content, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. addObjectFromRequest(String className, int num, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. addObjectFromRequest(String className, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. addObjectFromRequest(String className, String prefix, int num, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. addObjectFromRequest(String className, String prefix, XWikiContext context)
Deprecated.List<BaseObject>
XWikiDocument. addObjectsFromRequest(String className, XWikiContext context)
Deprecated.List<BaseObject>
XWikiDocument. addObjectsFromRequest(String className, String pref, XWikiContext context)
Deprecated.void
XWikiDocument. addToZip(ZipOutputStream zos, boolean withVersions, XWikiContext context)
Deprecated.void
XWikiDocument. addToZip(ZipOutputStream zos, XWikiContext context)
Deprecated.void
XWikiDocument. addToZip(ZipOutputStream zos, String zipname, boolean withVersions, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. addXObjectFromRequest(XWikiContext context)
Adds an object from an new object creation form.BaseObject
XWikiDocument. addXObjectFromRequest(DocumentReference classReference, int num, XWikiContext context)
Adds object from an new object creation form.BaseObject
XWikiDocument. addXObjectFromRequest(DocumentReference classReference, String prefix, XWikiContext context)
Adds an object from an new object creation form.BaseObject
XWikiDocument. addXObjectFromRequest(EntityReference classReference, XWikiContext context)
Adds an object from an new object creation form.BaseObject
XWikiDocument. addXObjectFromRequest(EntityReference classReference, String prefix, int num, XWikiContext context)
Adds object from an new object creation form.List<BaseObject>
XWikiDocument. addXObjectsFromRequest(DocumentReference classReference, XWikiContext context)
Adds multiple objects from an new objects creation form.List<BaseObject>
XWikiDocument. addXObjectsFromRequest(DocumentReference classReference, String pref, XWikiContext context)
Adds multiple objects from an new objects creation form.static void
XWikiDocument. backupContext(Map<String,Object> backup, XWikiContext context)
XWikiAttachment
XWikiAttachment. clone(String name, XWikiContext context)
Clone the attachment and its history to a new name, and attach it to a new document.XWikiAttachmentArchive
XWikiAttachmentArchive. clone(XWikiAttachment attachment, XWikiContext context)
Clone the attachment archive while replacing the name and the document of the revisions to the one of the attachment passed in parameter.XWikiDocumentArchive
XWikiDocumentArchive. clone(long docId, XWikiContext context)
XWikiDocument
XWikiDocument. cloneRename(DocumentReference newDocumentReference, XWikiContext context)
Clone a document and change its reference.boolean
XWikiAttachment. contentExists(XWikiContext xcontext)
void
XWikiDocument. convertSyntax(String targetSyntaxId, XWikiContext context)
Convert the current document content from its current syntax to the new syntax passed as parameter.void
XWikiDocument. convertSyntax(org.xwiki.rendering.syntax.Syntax targetSyntax, XWikiContext context)
Convert the current document content from its current syntax to the new syntax passed as parameter.XWikiDocument
XWikiDocument. copyDocument(String newDocumentName, XWikiContext context)
Deprecated.XWikiDocument
XWikiDocument. copyDocument(DocumentReference newDocumentReference, boolean cloneArchive, XWikiContext context)
XWikiDocument
XWikiDocument. copyDocument(DocumentReference newDocumentReference, XWikiContext context)
int
XWikiDocument. createNewObject(String className, XWikiContext context)
Deprecated.int
XWikiDocument. createXObject(EntityReference classReference, XWikiContext context)
Create and add a new object to the document with the provided class.String
XWikiDocument. display(String fieldname, BaseObject obj, XWikiContext context)
String
XWikiDocument. display(String fieldname, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, BaseObject obj, boolean isolated, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, BaseObject obj, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, BaseObject obj, String wrappingSyntaxId, XWikiContext context)
String
XWikiDocument. display(String fieldname, String mode, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, String pref, BaseObject obj, boolean isolated, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, String pref, BaseObject obj, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, String pref, BaseObject obj, String wrappingSyntaxId, boolean isolated, XWikiContext context)
String
XWikiDocument. display(String fieldname, String type, String pref, BaseObject obj, String wrappingSyntaxId, XWikiContext context)
String
XWikiDocument. display(String fieldname, String mode, String prefix, XWikiContext context)
String
XWikiDocument. displayDocument(boolean restricted, XWikiContext context)
Execute and render the current document in the current context.String
XWikiDocument. displayDocument(XWikiContext context)
Execute and render the current document in the current context.String
XWikiDocument. displayDocument(org.xwiki.rendering.syntax.Syntax targetSyntax, boolean restricted, XWikiContext context)
Execute and render the current document in the current context.String
XWikiDocument. displayDocument(org.xwiki.rendering.syntax.Syntax targetSyntax, XWikiContext context)
Execute and render the current document in the current context.String
XWikiDocument. displayEdit(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context)
String
XWikiDocument. displayForm(String className, XWikiContext context)
Deprecated.String
XWikiDocument. displayForm(String className, String header, String format, boolean linebreak, XWikiContext context)
Deprecated.String
XWikiDocument. displayForm(String className, String header, String format, XWikiContext context)
Deprecated.String
XWikiDocument. displayForm(DocumentReference classReference, XWikiContext context)
String
XWikiDocument. displayForm(DocumentReference classReference, String header, String format, boolean linebreak, XWikiContext context)
String
XWikiDocument. displayForm(DocumentReference classReference, String header, String format, XWikiContext context)
String
XWikiDocument. displayHidden(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, boolean showMandatory, boolean before, BaseObject obj, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, boolean showMandatory, boolean before, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, boolean showMandatory, BaseObject obj, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, boolean showMandatory, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, BaseObject obj, XWikiContext context)
String
XWikiDocument. displayPrettyName(String fieldname, XWikiContext context)
String
XWikiDocument. displayRendered(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context)
String
XWikiDocument. displayTooltip(String fieldname, BaseObject obj, XWikiContext context)
String
XWikiDocument. displayTooltip(String fieldname, XWikiContext context)
String
XWikiDocument. displayView(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context)
boolean
XWikiAttachment. equalsData(XWikiAttachment otherAttachment, XWikiContext xcontext)
byte[]
XWikiAttachmentArchive. getArchive(XWikiContext context)
Get the archive, loading it from the database if necessary.String
XWikiDocumentArchive. getArchive(XWikiContext context)
String
XWikiAttachmentArchive. getArchiveAsString(XWikiContext context)
Get the archive, loading it from the database if necessary.XWikiAttachmentArchive
XWikiAttachment. getAttachmentArchive(XWikiContext xcontext)
XWikiAttachmentContent
XWikiAttachment. getAttachmentContent(XWikiContext xcontext)
List<AttachmentDiff>
XWikiDocument. getAttachmentDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
XWikiAttachment
XWikiAttachment. getAttachmentRevision(String rev, XWikiContext context)
String
XWikiDocument. getAttachmentRevisionURL(String filename, String revision, XWikiContext context)
String
XWikiDocument. getAttachmentRevisionURL(String filename, String revision, String querystring, XWikiContext context)
XWikiAttachmentStoreInterface
XWikiDocument. getAttachmentStore(XWikiContext context)
Deprecated.useXWiki.getDefaultAttachmentContentStore()
insteadString
XWikiDocument. getAttachmentURL(String filename, XWikiContext context)
String
XWikiDocument. getAttachmentURL(String filename, String action, XWikiContext context)
String
XWikiDocument. getAttachmentURL(String filename, String action, String querystring, XWikiContext context)
List<String>
XWikiDocument. getBackLinkedPages(XWikiContext context)
Deprecated.List<DocumentReference>
XWikiDocument. getBackLinkedReferences(XWikiContext context)
Get the wiki document references pointing to this document.List<String>
XWikiDocument. getChildren(int nb, int start, XWikiContext context)
Deprecated.List<String>
XWikiDocument. getChildren(XWikiContext context)
Deprecated.List<DocumentReference>
XWikiDocument. getChildrenReferences(int nb, int start, XWikiContext context)
Returns a list of references of all documents which list this document as their parent, in the current wiki.List<DocumentReference>
XWikiDocument. getChildrenReferences(XWikiContext context)
Returns a list of references of all documents which list this document as their parent, in the current wiki.List<List<ObjectDiff>>
XWikiDocument. getClassDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
byte[]
XWikiAttachment. getContent(XWikiContext xcontext)
Deprecated.List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getContentDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getContentDiff(String fromRev, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getContentDiff(String fromRev, String toRev, XWikiContext context)
InputStream
XWikiAttachment. getContentInputStream(XWikiContext xcontext)
Retrieve the content of this attachment as an input stream.long
XWikiAttachment. getContentLongSize(XWikiContext context)
int
XWikiAttachment. getContentSize(XWikiContext context)
Deprecated.since 9.0RC1, useXWikiAttachment.getContentLongSize(XWikiContext)
insteadString
XWikiDocument. getDefaultEditMode(XWikiContext context)
Gets the default edit mode for this document.String
XWikiDocument. getDefaultEditURL(XWikiContext context)
XWikiDocumentArchive
LazyXWikiDocument. getDocumentArchive(XWikiContext context)
XWikiDocumentArchive
XWikiDocument. getDocumentArchive(XWikiContext context)
String
XWikiDocument. getEditURL(String action, String mode, XWikiContext context)
String
XWikiDocument. getEditURL(String action, String mode, String language, XWikiContext context)
String
XWikiDocument. getEscapedContent(XWikiContext context)
String
XWikiDocument. getExternalAttachmentURL(String filename, String action, XWikiContext context)
String
XWikiDocument. getExternalURL(String action, XWikiContext context)
String
XWikiDocument. getExternalURL(String action, String querystring, XWikiContext context)
BaseObject
XWikiDocument. getFirstObject(String fieldname, XWikiContext context)
List<String>
XWikiDocument. getIncludedMacros(XWikiContext context)
List<String>
XWikiDocument. getIncludedPages(XWikiContext context)
static String
XWikiDocument. getInternalPropertyName(String propname, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getLastChanges(XWikiContext context)
XWikiLock
XWikiDocument. getLock(XWikiContext context)
List<MetaDataDiff>
XWikiDocument. getMetaDataDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
List<MetaDataDiff>
XWikiDocument. getMetaDataDiff(String fromRev, XWikiContext context)
List<MetaDataDiff>
XWikiDocument. getMetaDataDiff(String fromRev, String toRev, XWikiContext context)
String
XWikiAttachment. getMimeType(XWikiContext xcontext)
Return the stored media type.BaseObject
XWikiDocument. getObject(String className, boolean create, XWikiContext context)
Deprecated.List<List<ObjectDiff>>
XWikiDocument. getObjectDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
Return the object differences between two document versions.List<List<ObjectDiff>>
XWikiDocument. getObjectDiff(String fromRev, XWikiContext context)
List<List<ObjectDiff>>
XWikiDocument. getObjectDiff(String fromRev, String toRev, XWikiContext context)
String
XWikiDocument. getParentURL(XWikiContext context)
String
XWikiDocument. getRealLanguage(XWikiContext context)
Deprecated.useXWikiDocument.getRealLocale()
insteadString[]
XWikiDocument. getRecentRevisions(int nb, XWikiContext context)
String
XWikiDocument. getRenderedContent(boolean transformationContextIsolated, XWikiContext context)
String
XWikiDocument. getRenderedContent(XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String syntaxId, boolean restrictedTransformationContext, XWikiDocument sDocument, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String syntaxId, boolean restrictedTransformationContext, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String syntaxId, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String sourceSyntaxId, String targetSyntaxId, boolean restrictedTransformationContext, XWikiDocument sDocument, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String sourceSyntaxId, String targetSyntaxId, boolean restrictedTransformationContext, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, String sourceSyntaxId, String targetSyntaxId, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, org.xwiki.rendering.syntax.Syntax sourceSyntaxId, boolean restrictedTransformationContext, XWikiDocument sDocument, boolean isolated, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, org.xwiki.rendering.syntax.Syntax sourceSyntaxId, XWikiDocument sDocument, boolean isolated, XWikiContext context)
String
XWikiDocument. getRenderedContent(String text, org.xwiki.rendering.syntax.Syntax sourceSyntaxId, org.xwiki.rendering.syntax.Syntax targetSyntaxId, boolean restrictedTransformationContext, XWikiDocument sDocument, boolean isolated, XWikiContext context)
String
XWikiDocument. getRenderedContent(org.xwiki.rendering.syntax.Syntax targetSyntax, boolean transformationContextIsolated, XWikiContext context)
Execute and render the document or its translation in the current context.String
XWikiDocument. getRenderedContent(org.xwiki.rendering.syntax.Syntax targetSyntax, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getRenderedContentDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getRenderedContentDiff(String fromRev, XWikiContext context)
List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getRenderedContentDiff(String fromRev, String toRev, XWikiContext context)
String
XWikiDocument. getRenderedTitle(XWikiContext context)
Similar toXWikiDocument.getRenderedTitle(Syntax, XWikiContext)
but the output Syntax used is XHTML 1.0 unless the current skin defines another output Syntax in which case it's the one used.String
XWikiDocument. getRenderedTitle(org.xwiki.rendering.syntax.Syntax outputSyntax, XWikiContext context)
Get the rendered version of the document title.XWikiAttachment
XWikiAttachmentArchive. getRevision(XWikiAttachment attachment, String rev, XWikiContext context)
Get an old revision of the attachment which this is an archive of.XWikiRCSNodeInfo
XWikiDocument. getRevisionInfo(String version, XWikiContext context)
List<String>
XWikiDocument. getRevisions(RevisionCriteria criteria, XWikiContext context)
Get document versions matching criterias like author, minimum creation date, etc.org.suigeneris.jrcs.rcs.Version[]
XWikiDocument. getRevisions(XWikiContext context)
XWikiStoreInterface
LazyXWikiDocument. getStore(XWikiContext context)
XWikiStoreInterface
XWikiDocument. getStore(XWikiContext context)
String
LazyXWikiDocument. getTags(XWikiContext context)
String
XWikiDocument. getTags(XWikiContext context)
List<String>
XWikiDocument. getTagsList(XWikiContext context)
List<String>
LazyXWikiDocument. getTagsPossibleValues(XWikiContext context)
List<String>
XWikiDocument. getTagsPossibleValues(XWikiContext context)
String
XWikiDocument. getTranslatedContent(XWikiContext context)
String
XWikiDocument. getTranslatedContent(String locale, XWikiContext context)
XWikiDocument
XWikiDocument. getTranslatedDocument(XWikiContext context)
XWikiDocument
XWikiDocument. getTranslatedDocument(String language, XWikiContext context)
Deprecated.XWikiDocument
XWikiDocument. getTranslatedDocument(Locale locale, XWikiContext context)
Return the document in the provided language.List<String>
XWikiDocument. getTranslationList(XWikiContext context)
Deprecated.List<Locale>
XWikiDocument. getTranslationLocales(XWikiContext context)
The locales of the translation of this document (the default locale is not included).Set<EntityReference>
XWikiDocument. getUniqueLinkedEntities(XWikiContext context)
Extract all the unique static (i.e.Set<String>
XWikiDocument. getUniqueLinkedPages(XWikiContext context)
Extract all the unique entity references found in the current document (they can be wiki links, macro parameters, etc) and pointing to documents (either using a Document Reference or a Page Reference).Set<XWikiLink>
XWikiDocument. getUniqueWikiLinkedPages(XWikiContext context)
Get a list of unique links from this document to others documents.String
XWikiDocument. getURL(String action, boolean redirect, XWikiContext context)
String
XWikiDocument. getURL(String action, XWikiContext context)
String
XWikiDocument. getURL(String action, String params, boolean redirect, XWikiContext context)
String
XWikiDocument. getURL(String action, String querystring, XWikiContext context)
String
XWikiDocument. getURL(String action, String querystring, String anchor, XWikiContext context)
String
XWikiDocument. getVersionHashCode(XWikiContext context)
Computes a document hash, taking into account all document data: content, objects, attachments, metadata...XWikiVersioningStoreInterface
XWikiDocument. getVersioningStore(XWikiContext context)
String
XWikiDocumentArchive. getVersionXml(org.suigeneris.jrcs.rcs.Version version, XWikiContext context)
Return the XML corresponding to a version.List<BaseClass>
XWikiDocument. getXClasses(XWikiContext context)
String
XWikiDocument. getXMLContent(XWikiContext context)
Retrieve the document in the current context language as an XML string.List<org.suigeneris.jrcs.diff.delta.Delta>
XWikiDocument. getXMLDiff(XWikiDocument fromDoc, XWikiDocument toDoc, XWikiContext context)
BaseObject
XWikiDocument. getXObject(DocumentReference classReference, boolean create, XWikiContext context)
BaseObject
XWikiDocument. getXObject(EntityReference classReference, boolean create, XWikiContext context)
BaseObject
XWikiDocument. getXObject(EntityReference classReference, int number, boolean create, XWikiContext xcontext)
Get an xobject with the passed xclass at the passed location.BaseObject
XWikiDocument. getXObject(ObjectReference objectReference, boolean create, XWikiContext context)
Get or create an object of this document based on its reference.void
XWikiDocument. insertText(String text, String marker, XWikiContext context)
boolean
XWikiDocument. isCurrentLocalUserPage(XWikiContext context)
boolean
XWikiDocument. isCurrentUserCreator(XWikiContext context)
boolean
XWikiDocument. isCurrentUserPage(XWikiContext context)
boolean
XWikiAttachment. isImage(XWikiContext context)
void
LazyXWikiDocument. loadArchive(XWikiContext context)
XWikiAttachmentArchive
XWikiAttachment. loadArchive(XWikiContext xcontext)
void
XWikiDocument. loadArchive(XWikiContext context)
void
XWikiAttachment. loadAttachmentContent(XWikiContext xcontext)
void
XWikiDocument. loadAttachmentContent(XWikiAttachment attachment, XWikiContext context)
Deprecated.void
XWikiDocument. loadAttachments(XWikiContext context)
void
XWikiDocument. loadAttachmentsContent(XWikiContext context)
Load attachment content from database.void
XWikiDocument. loadAttachmentsContentSafe(XWikiContext context)
Same asXWikiDocument.loadAttachmentContent(XWikiAttachment, XWikiContext)
but in some context we don't really care if an attachment content could not be loaded (we are going to overwrite or ignore it).void
XWikiAttachment. loadContent(XWikiContext xcontext)
Deprecated.since 9.11RC1, useXWikiAttachment.loadAttachmentContent(XWikiContext)
insteadXWikiDocument
XWikiDocumentArchive. loadDocument(org.suigeneris.jrcs.rcs.Version version, XWikiContext context)
protected XWikiRCSNodeContent
XWikiDocumentArchive. makePatch(XWikiRCSNodeInfo newnode, XWikiDocument doc, XWikiContext context)
Make a patch.void
XWikiAttachment. merge(XWikiAttachment previousAttachment, XWikiAttachment nextAttachment, MergeConfiguration configuration, XWikiContext xcontext, MergeResult mergeResult)
MergeResult
XWikiDocument. merge(XWikiDocument previousDocument, XWikiDocument newDocument, MergeConfiguration configuration, XWikiContext context)
Document
XWikiDocument. newDocument(XWikiContext context)
Document
XWikiDocument. newDocument(Class<?> customClass, XWikiContext context)
Create a new protectedDocument
public API to access page information and actions from scripting.Document
XWikiDocument. newDocument(String customClassName, XWikiContext context)
Create a new protectedDocument
public API to access page information and actions from scripting.BaseObject
XWikiDocument. newObject(String className, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. newXObject(EntityReference classReference, XWikiContext context)
Create, add and return a new object with the provided class.void
XWikiDocument. readAddedUpdatedAndRemovedObjectsFromForm(EditForm eform, XWikiContext context)
Adds objects, applies property updates and removes objects as specified in the form.void
XWikiDocument. readDocMetaFromForm(EditForm eform, XWikiContext context)
void
XWikiDocument. readFromForm(EditForm eform, XWikiContext context)
void
XWikiDocument. readFromTemplate(DocumentReference templateDocumentReference, XWikiContext context)
void
XWikiDocument. readObjectsFromForm(EditForm eform, XWikiContext context)
Updates properties of existing objects with the values from the given form.void
XWikiDocument. readObjectsFromFormUpdateOrCreate(EditForm eform, XWikiContext context)
Create and/or update objects in a document given a list of HTTP parameters of the form<spacename>.<classname>_<number>_<propertyname>
.void
XWikiDocument. readTranslationMetaFromForm(EditForm eform, XWikiContext context)
void
XWikiDocument. removeLock(XWikiContext context)
void
XWikiDocumentArchive. removeVersions(org.suigeneris.jrcs.rcs.Version newerVersion, org.suigeneris.jrcs.rcs.Version olderVersion, XWikiContext context)
Remove document versions from vfrom to vto, inclusive.void
XWikiDocument. rename(DocumentReference newDocumentReference, XWikiContext context)
Deprecated.void
XWikiDocument. rename(DocumentReference newDocumentReference, List<DocumentReference> backlinkDocumentReferences, XWikiContext context)
Deprecated.void
XWikiDocument. rename(DocumentReference newDocumentReference, List<DocumentReference> backlinkDocumentReferences, List<DocumentReference> childDocumentReferences, XWikiContext context)
Deprecated.void
XWikiDocument. resetArchive(XWikiContext context)
void
XWikiAttachment. resetMimeType(XWikiContext xcontext)
Extract the mime type from the file name and content and remember it to be stored.XWikiAttachment
DeletedAttachment. restoreAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.since 9.9RC1, useDeletedAttachment.restoreAttachment(XWikiAttachment)
insteadstatic void
XWikiDocument. restoreContext(Map<String,Object> backup, XWikiContext context)
XWikiDocument
XWikiDeletedDocument. restoreDocument(XWikiDocument doc, XWikiContext context)
XWikiDocument
XWikiDeletedDocument. restoreDocument(XWikiContext context)
void
XWikiDocument. saveAllAttachments(boolean updateParent, boolean transaction, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. saveAllAttachments(XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. saveAttachmentContent(XWikiAttachment attachment, boolean updateParent, boolean transaction, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. saveAttachmentContent(XWikiAttachment attachment, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiContext context)
Deprecated.should not be used, save the document insteadvoid
XWikiDocument. setAsContextDoc(XWikiContext context)
protected void
DeletedAttachment. setAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.since 9.9RC1, useDeletedAttachment(long, String, String, String, String, Date, DeletedAttachmentContent)
insteadXWikiAttachment
XWikiDocument. setAttachment(String fileName, InputStream content, XWikiContext context)
Create or update attachment with the passed name with the passed content.protected void
XWikiDeletedDocument. setDocument(XWikiDocument doc, XWikiContext context)
Deprecated.since 9.0RC1, useinstead
void
XWikiDocument. setFullName(String fullName, XWikiContext context)
Deprecated.void
XWikiDocument. setLock(String userName, XWikiContext context)
void
XWikiDocument. setTags(String tagsStr, XWikiContext context)
add tags to the document.String
XWikiDocument. toFullXML(XWikiContext context)
Retrieve the document as an XML string.String
XWikiAttachment. toStringXML(boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Retrieve an attachment as an XML string.org.dom4j.Element
XWikiAttachment. toXML(boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Retrieve XML representation of attachment's metadata into anElement
.void
XWikiAttachment. toXML(com.xpn.xwiki.internal.xml.XMLWriter wr, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Write an XML representation of the attachment into anXMLWriter
org.dom4j.Element
XWikiAttachment. toXML(XWikiContext context)
Retrieve XML representation of attachment's metadata into anElement
.void
XWikiAttachment. toXML(org.xwiki.filter.output.OutputTarget out, boolean bWithAttachmentContent, boolean bWithVersions, boolean format, XWikiContext context)
Write an XML representation of the attachment into anXMLWriter
String
XWikiDocument. toXML(boolean bWithObjects, boolean bWithRendering, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Serialize the document to an XML string.void
XWikiDocument. toXML(com.xpn.xwiki.internal.xml.XMLWriter wr, boolean bWithObjects, boolean bWithRendering, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Deprecated.String
XWikiDocument. toXML(XWikiContext context)
Retrieve the document as an XML string.void
XWikiDocument. toXML(OutputStream out, boolean bWithObjects, boolean bWithRendering, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Serialize the document to an OutputStream.org.dom4j.Document
LazyXWikiDocument. toXMLDocument(boolean bWithObjects, boolean bWithRendering, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
org.dom4j.Document
XWikiDocument. toXMLDocument(boolean bWithObjects, boolean bWithRendering, boolean bWithAttachmentContent, boolean bWithVersions, XWikiContext context)
Deprecated.org.dom4j.Document
XWikiDocument. toXMLDocument(XWikiContext context)
Deprecated.void
XWikiAttachmentArchive. updateArchive(byte[] data, XWikiContext context)
Deprecated.since 7.1M1, useXWikiAttachmentArchive.updateArchive(XWikiContext)
insteadvoid
XWikiAttachmentArchive. updateArchive(XWikiContext context)
Update the archive.void
XWikiDocumentArchive. updateArchive(XWikiDocument doc, String author, Date date, String comment, org.suigeneris.jrcs.rcs.Version version, XWikiContext context)
Update history with new document version.void
XWikiAttachment. updateContentArchive(XWikiContext context)
BaseObject
XWikiDocument. updateObjectFromRequest(String className, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. updateObjectFromRequest(String className, String prefix, int num, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. updateObjectFromRequest(String className, String prefix, XWikiContext context)
Deprecated.List<BaseObject>
XWikiDocument. updateObjectsFromRequest(String className, XWikiContext context)
Deprecated.List<BaseObject>
XWikiDocument. updateObjectsFromRequest(String className, String pref, XWikiContext context)
Deprecated.BaseObject
XWikiDocument. updateXObjectFromRequest(EntityReference classReference, XWikiContext context)
Adds an object from an new object creation form.BaseObject
XWikiDocument. updateXObjectFromRequest(EntityReference classReference, String prefix, int num, XWikiContext context)
Adds an object from an new object creation form.BaseObject
XWikiDocument. updateXObjectFromRequest(EntityReference classReference, String prefix, XWikiContext context)
Adds an object from an new object creation form.List<BaseObject>
XWikiDocument. updateXObjectsFromRequest(EntityReference classReference, XWikiContext context)
Adds an object from an new object creation form.List<BaseObject>
XWikiDocument. updateXObjectsFromRequest(EntityReference classReference, String pref, XWikiContext context)
Adds multiple objects from an new objects creation form.boolean
XWikiDocument. validate(XWikiContext context)
boolean
XWikiDocument. validate(String[] classNames, XWikiContext context)
Constructors in com.xpn.xwiki.doc with parameters of type XWikiContext Constructor Description DeletedAttachment(XWikiAttachment attachment, String deleter, Date deleteDate, XWikiContext context)
A constructor with all the information about the deleted attachment.XWikiDeletedDocument(XWikiDocument doc, String deleter, Date deleteDate, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.doc.rcs
Methods in com.xpn.xwiki.doc.rcs with parameters of type XWikiContext Modifier and Type Method Description XWikiRCSNodeContent
XWikiRCSNodeInfo. getContent(XWikiContext context)
XWikiPatch
XWikiPatch. setDiffVersion(XWikiDocument originalVersion, XWikiDocument newVersion, XWikiContext context)
Create history patch between originalVersion and newVersion as difference on the XML export of the two versions.XWikiPatch
XWikiPatch. setDiffVersion(String originalVersionXml, XWikiDocument newVersion, XWikiContext context)
Create history patch between originalVersion and newVersion as difference on the XML export of the two versions.XWikiPatch
XWikiPatch. setFullVersion(XWikiDocument version, XWikiContext context)
Store the XML export of the document as the history patch; this will be a history milestone.Constructors in com.xpn.xwiki.doc.rcs with parameters of type XWikiContext Constructor Description XWikiRCSArchive(Collection<XWikiRCSNodeInfo> nodeInfos, XWikiContext context)
Used to serializeXWikiDocumentArchive
. -
Uses of XWikiContext in com.xpn.xwiki.export.html
Methods in com.xpn.xwiki.export.html with parameters of type XWikiContext Modifier and Type Method Description void
HtmlPackager. export(XWikiContext context)
Apply export and create the ZIP package. -
Uses of XWikiContext in com.xpn.xwiki.job
Methods in com.xpn.xwiki.job with parameters of type XWikiContext Modifier and Type Method Description static void
JobRequestContext. set(org.xwiki.job.AbstractRequest request, XWikiContext xcontext)
Deprecated.Register part of theXWikiContext
in the job request.Constructors in com.xpn.xwiki.job with parameters of type XWikiContext Constructor Description JobRequestContext(XWikiContext xcontext)
Deprecated. -
Uses of XWikiContext in com.xpn.xwiki.monitor.api
Methods in com.xpn.xwiki.monitor.api with parameters of type XWikiContext Modifier and Type Method Description void
MonitorPlugin. init(XWikiContext context)
void
MonitorPlugin. reset(XWikiContext context)
Constructors in com.xpn.xwiki.monitor.api with parameters of type XWikiContext Constructor Description MonitorPlugin(String name, String className, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.objects
Methods in com.xpn.xwiki.objects that return XWikiContext Modifier and Type Method Description protected XWikiContext
BaseElement. getXWikiContext()
Get XWiki context from execution context.Methods in com.xpn.xwiki.objects with parameters of type XWikiContext Modifier and Type Method Description void
BaseObject. displayEdit(StringBuffer buffer, String name, String prefix, XWikiContext context)
String
BaseObject. displayEdit(String name, XWikiContext context)
String
BaseObject. displayEdit(String name, String prefix, XWikiContext context)
void
BaseObject. displayHidden(StringBuffer buffer, String name, String prefix, XWikiContext context)
String
BaseObject. displayHidden(String name, XWikiContext context)
String
BaseObject. displayHidden(String name, String prefix, XWikiContext context)
void
BaseObject. displayView(StringBuffer buffer, String name, String prefix, XWikiContext context)
String
BaseObject. displayView(String name, XWikiContext context)
String
BaseObject. displayView(String name, String prefix, XWikiContext context)
List<ObjectDiff>
BaseCollection. getDiff(Object oldObject, XWikiContext context)
List<ObjectDiff>
BaseObject. getDiff(Object oldEntity, XWikiContext context)
PropertyClass
BaseProperty. getPropertyClass(XWikiContext xcontext)
BaseClass
BaseCollection. getXClass(XWikiContext context)
BaseClass
ObjectInterface. getXClass(XWikiContext context)
MergeManagerResult<ElementInterface,Object>
BaseCollection. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context)
MergeManagerResult<ElementInterface,Object>
BaseElement. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context)
void
BaseElement. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
MergeManagerResult<ElementInterface,Object>
BaseProperty. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context)
void
BaseProperty. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
MergeManagerResult<ElementInterface,Object>
ElementInterface. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context)
Apply a 3 ways merge on the current element based on provided previous and new version of the element.void
ElementInterface. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
protected void
BaseCollection. mergeField(PropertyInterface currentElement, ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
protected void
BaseObject. mergeField(PropertyInterface currentElement, ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
Object
BaseObject. newObjectApi(BaseObject obj, XWikiContext context)
void
BaseObject. set(String fieldname, Object value, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.objects.classes
Methods in com.xpn.xwiki.objects.classes with parameters of type XWikiContext Modifier and Type Method Description protected void
DBTreeListClass. addToSelect(org.apache.ecs.xhtml.select select, List<String> selectlist, Map<String,ListItem> map, Map<String,List<ListItem>> treemap, String parent, String level, XWikiContext context)
protected void
DBTreeListClass. addToTreeList(List<ListItem> treelist, Map<String,List<ListItem>> treemap, Map<String,ListItem> map, String parent, XWikiContext context)
void
BooleanClass. displayCheckboxEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClass. displayCustom(StringBuffer buffer, String fieldName, String prefix, String type, BaseObject object, XWikiContext context)
void
BooleanClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ComputedFieldClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
DBListClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
DBTreeListClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
LevelsClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ListClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
NumberClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PasswordClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
String
PropertyClass. displayEdit(String name, BaseCollection object, XWikiContext context)
String
PropertyClass. displayEdit(String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClassInterface. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
StaticListClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
StringClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
TextAreaClass. displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ComputedFieldClass. displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ListClass. displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PasswordClass. displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClass. displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
String
PropertyClass. displayHidden(String name, BaseCollection object, XWikiContext context)
String
PropertyClass. displayHidden(String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClassInterface. displayHidden(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
BooleanClass. displayRadioEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
protected void
ListClass. displayRadioEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
BooleanClass. displaySelectEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
protected void
ListClass. displaySelectEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
protected void
DBTreeListClass. displayTreeSelectEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
BooleanClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ComputedFieldClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
DBListClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
DBTreeListClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
ListClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PasswordClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
PropertyClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
String
PropertyClass. displayView(String name, BaseCollection object, XWikiContext context)
String
PropertyClass. displayView(String name, String prefix, BaseCollection object, XWikiContext context)
default void
PropertyClassInterface. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, boolean isolated, XWikiContext context)
void
PropertyClassInterface. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
StringClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
void
TextAreaClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, boolean isolated, XWikiContext context)
void
TextAreaClass. displayView(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context)
BaseCollection
BaseClass. fromMap(Map<String,?> map, XWikiContext context)
Deprecated.List<ListItem>
DBListClass. getCachedDBList(XWikiContext context)
protected List<ListItem>
DBTreeListClass. getCachedDBTreeList(XWikiContext context)
Get the ordered list of tree nodes that is currently cached, if any.protected String
PropertyClass. getCachedDefaultCustomDisplayer(XWikiContext context)
Returns the current cached default custom displayer for the PropertyClass.String
ComputedFieldClass. getComputedValue(String name, String prefix, BaseCollection object, XWikiContext context)
Computes and returns the raw value of this property for a given object.List<String>
BaseClass. getCustomMappingPropertyList(XWikiContext context)
List<ListItem>
DBListClass. getDBList(XWikiContext context)
protected String
PropertyClass. getDefaultCustomDisplayer(String propertyClassName, XWikiContext context)
Method to find the default custom displayer to use for a specific Property Class.List<ObjectDiff>
BaseClass. getDiff(Object oldObject, XWikiContext context)
protected String
ListClass. getDisplayValue(Object rawvalue, String name, Map<String,ListItem> map, XWikiContext context)
Search for an internationalizable display text for the current value.String
ListClass. getDisplayValue(String value, String name, Map<String,ListItem> map, XWikiContext context)
Search for an internationalizable display text for the current value.List<String>
DBListClass. getList(XWikiContext context)
List<String>
GroupsClass. getList(XWikiContext context)
List<String>
LevelsClass. getList(XWikiContext context)
abstract List<String>
ListClass. getList(XWikiContext context)
List<String>
StaticListClass. getList(XWikiContext context)
List<String>
UsersClass. getList(XWikiContext context)
Map<String,ListItem>
DBListClass. getMap(XWikiContext context)
Map<String,ListItem>
GroupsClass. getMap(XWikiContext context)
Map<String,ListItem>
LevelsClass. getMap(XWikiContext context)
abstract Map<String,ListItem>
ListClass. getMap(XWikiContext context)
Map<String,ListItem>
StaticListClass. getMap(XWikiContext context)
Map<String,ListItem>
UsersClass. getMap(XWikiContext context)
String
PropertyClass. getPrettyName(XWikiContext context)
String
DBListClass. getQuery(XWikiContext context)
Deprecated.since 9.8RC1, use theQueryBuilder<DBListClass>
component insteadString
DBTreeListClass. getQuery(XWikiContext context)
Computes the query corresponding to the current XProperty.String
GroupsClass. getText(String value, XWikiContext context)
String
LevelsClass. getText(String value, XWikiContext context)
String
UsersClass. getText(String value, XWikiContext context)
String
PropertyClass. getTooltip(XWikiContext context)
Gets international tooltipString
PropertyClass. getTranslatedPrettyName(XWikiContext context)
protected List<ListItem>
DBTreeListClass. getTreeList(Map<String,List<ListItem>> treemap, Map<String,ListItem> map, XWikiContext context)
Gets an ordered list of items in the tree.Map<String,List<ListItem>>
DBTreeListClass. getTreeMap(XWikiContext context)
String
DBListClass. getValue(String val, String sql, XWikiContext context)
BaseClass
PropertyClass. getXClass(XWikiContext context)
boolean
PropertyClass. isCustomDisplayed(XWikiContext context)
boolean
BaseClass. isCustomMappingValid(XWikiContext context)
boolean
BaseClass. isCustomMappingValid(String custommapping, XWikiContext context)
boolean
TextAreaClass. isWysiwyg(XWikiContext context)
MergeManagerResult<ElementInterface,Object>
BaseClass. merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration, XWikiContext context)
protected <T extends EntityReference>
voidListClass. mergeNotOrderedListProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
<T extends EntityReference>
voidGroupsClass. mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext xcontext, MergeResult mergeResult)
<T extends EntityReference>
voidLevelsClass. mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext xcontext, MergeResult mergeResult)
<T extends EntityReference>
voidListClass. mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
<T extends EntityReference>
voidPropertyClass. mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext context, MergeResult mergeResult)
Apply a 3 ways merge on passed current, previous and new version of the same property.<T extends EntityReference>
voidUsersClass. mergeProperty(BaseProperty<T> currentProperty, BaseProperty<T> previousProperty, BaseProperty<T> newProperty, MergeConfiguration configuration, XWikiContext xcontext, MergeResult mergeResult)
BaseObject
BaseClass. newCustomClassInstance(XWikiContext context)
static BaseObject
BaseClass. newCustomClassInstance(String className, XWikiContext context)
Deprecated.static BaseObject
BaseClass. newCustomClassInstance(DocumentReference classReference, boolean fallback, XWikiContext context)
static BaseObject
BaseClass. newCustomClassInstance(DocumentReference classReference, XWikiContext context)
BaseCollection
BaseClass. newObject(XWikiContext context)
Deprecated.protected String
PropertyClass. renderContentInContext(String content, String syntax, DocumentReference authorReference, XWikiContext context)
Deprecated.since 10.11RC1, usePropertyClass.renderContentInContext(String, String, DocumentReference, DocumentReference, XWikiContext)
insteadprotected String
PropertyClass. renderContentInContext(String content, String syntax, DocumentReference authorReference, DocumentReference secureDocument, XWikiContext context)
Render content in the current document's context with the rights of the given user.void
DBListClass. setCachedDBList(List<ListItem> cachedDBList, XWikiContext context)
protected void
DBTreeListClass. setCachedDBTreeList(List<ListItem> cachedDBTreeList, XWikiContext context)
Store the ordered list of tree nodes in a cache.boolean
BaseClass. validateObject(BaseObject obj, XWikiContext context)
boolean
PropertyClass. validateProperty(BaseProperty property, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.objects.meta
Methods in com.xpn.xwiki.objects.meta with parameters of type XWikiContext Modifier and Type Method Description BaseCollection
MetaClass. newObject(XWikiContext context)
BaseCollection
PropertyMetaClass. newObject(XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.pdf.api
Methods in com.xpn.xwiki.pdf.api with parameters of type XWikiContext Modifier and Type Method Description void
PdfExport. export(XWikiDocument doc, OutputStream out, PdfExport.ExportType type, XWikiContext context)
Export a wiki Document into PDF or RTF.void
PdfExport. exportHtml(String html, OutputStream out, PdfExport.ExportType type, XWikiContext context)
Convert an HTML document to PDF.void
PdfExport. exportToPDF(XWikiDocument doc, OutputStream out, XWikiContext context)
Export a wiki Document into PDF. -
Uses of XWikiContext in com.xpn.xwiki.pdf.impl
Methods in com.xpn.xwiki.pdf.impl with parameters of type XWikiContext Modifier and Type Method Description URL
FileSystemURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String wiki, XWikiContext context)
URL
PdfURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, long recycleId, String querystring, String xwikidb, XWikiContext context)
Deprecated.URL
PdfURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String wiki, XWikiContext context)
Deprecated.URL
PdfURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
Deprecated.URL
FileSystemURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String wiki, XWikiContext context)
URL
PdfURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String wiki, XWikiContext context)
Deprecated.URL
FileSystemURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context)
URL
FileSystemURLFactory. createSkinURL(String filename, String skin, XWikiContext context)
void
PdfExportImpl. export(XWikiDocument doc, OutputStream out, PdfExport.ExportType type, XWikiContext context)
void
PdfExportImpl. exportHtml(String html, OutputStream out, PdfExport.ExportType type, XWikiContext context)
void
PdfExportImpl. exportToPDF(XWikiDocument doc, OutputStream out, XWikiContext context)
protected void
PdfExportImpl. exportXHTML(String xhtml, OutputStream out, PdfExport.ExportType type, XWikiContext context)
Convert a valid XHTML document into PDF.String
FileSystemURLFactory. getURL(URL url, XWikiContext context)
protected InputStream
PdfExportImpl. getXslt(String propertyName, String fallbackFile, XWikiContext context)
Get an XSLT file.void
PdfURLFactory. init(XWikiContext context)
Deprecated. -
Uses of XWikiContext in com.xpn.xwiki.plugin
Methods in com.xpn.xwiki.plugin with parameters of type XWikiContext Modifier and Type Method Description void
XWikiPluginManager. addPlugin(String name, String className, XWikiContext context)
void
XWikiPluginManager. addPlugins(String[] classNames, XWikiContext context)
void
XWikiDefaultPlugin. beginParsing(XWikiContext context)
Deprecated.void
XWikiPluginInterface. beginParsing(XWikiContext context)
Deprecated.Hook method called at the start of the response generation process, before the parsing of the root template begins.void
XWikiPluginManager. beginParsing(XWikiContext context)
void
XWikiDefaultPlugin. beginRendering(XWikiContext context)
Deprecated.void
XWikiPluginInterface. beginRendering(XWikiContext context)
Deprecated.Hook method, called before the 1.0 rendering engine starts processing a wiki document, afterXWikiPluginInterface.beginParsing(XWikiContext)
and beforeXWikiPluginInterface.commonTagsHandler(String, XWikiContext)
.void
XWikiPluginManager. beginRendering(XWikiContext context)
String
XWikiDefaultPlugin. commonTagsHandler(String content, XWikiContext context)
Deprecated.String
XWikiPluginInterface. commonTagsHandler(String content, XWikiContext context)
Deprecated.Hook method called during the 1.0 rendering process, afterXWikiPluginInterface.beginRendering(XWikiContext)
and right beforeXWikiPluginInterface.startRenderingHandler(String, XWikiContext)
.String
XWikiPluginManager. commonTagsHandler(String text, XWikiContext context)
XWikiAttachment
XWikiDefaultPlugin. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.XWikiAttachment
XWikiPluginInterface. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
Deprecated.Plugin extension point allowing the plugin to perform modifications to an attachment when the user opens a document attachment.XWikiAttachment
XWikiPluginManager. downloadAttachment(XWikiAttachment attachment, XWikiContext context)
String
XWikiDefaultPlugin. endParsing(String content, XWikiContext context)
Deprecated.String
XWikiPluginInterface. endParsing(String content, XWikiContext context)
Deprecated.Hook method called at the end of the response generation process, after the parsing of the root template is finished.String
XWikiPluginManager. endParsing(String content, XWikiContext context)
void
XWikiDefaultPlugin. endRendering(XWikiContext context)
Deprecated.void
XWikiPluginInterface. endRendering(XWikiContext context)
Deprecated.Hook method, called after the 1.0 rendering engine finished processing a wiki document.void
XWikiPluginManager. endRendering(XWikiContext context)
String
XWikiDefaultPlugin. endRenderingHandler(String content, XWikiContext context)
Deprecated.String
XWikiPluginInterface. endRenderingHandler(String content, XWikiContext context)
Deprecated.Hook method called during the 1.0 rendering process, afterXWikiPluginInterface.outsidePREHandler(String, XWikiContext)
and right beforeXWikiPluginInterface.endRendering(XWikiContext)
.String
XWikiPluginManager. endRenderingHandler(String text, XWikiContext context)
void
XWikiDefaultPlugin. flushCache(XWikiContext context)
Deprecated.void
XWikiPluginInterface. flushCache(XWikiContext context)
Deprecated.A "flush cache" method usually called by the globalXWiki.flushCache(XWikiContext)
, requesting plugins to clear their cached data.void
XWikiPluginManager. flushCache(XWikiContext context)
Api
XWikiDefaultPlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
Deprecated.Api
XWikiPluginInterface. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
Deprecated.Get a public scriptable API that can be used to call methods of the (privileged) plugin.void
XWikiDefaultPlugin. init(XWikiContext context)
Deprecated.void
XWikiPluginInterface. init(XWikiContext context)
Deprecated.Global initialization, called when the platform is started and the plugin list is initialized.void
XWikiPluginManager. initPlugin(Object plugin, Class<XWikiPluginInterface> pluginClass, XWikiContext context)
String
XWikiDefaultPlugin. insidePREHandler(String line, XWikiContext context)
Deprecated.String
XWikiPluginInterface. insidePREHandler(String line, XWikiContext context)
Deprecated.Hook method called during the 1.0 rendering process, once for each line of content insidepre
blocks, afterXWikiPluginInterface.startRenderingHandler(String, XWikiContext)
and beforeXWikiPluginInterface.endRenderingHandler(String, XWikiContext)
.String
XWikiPluginManager. insidePREHandler(String text, XWikiContext context)
String
XWikiDefaultPlugin. outsidePREHandler(String line, XWikiContext context)
Deprecated.String
XWikiPluginInterface. outsidePREHandler(String line, XWikiContext context)
Deprecated.Hook method called during the 1.0 rendering process, once for each line of content outsidepre
blocks, afterXWikiPluginInterface.startRenderingHandler(String, XWikiContext)
and beforeXWikiPluginInterface.endRenderingHandler(String, XWikiContext)
.String
XWikiPluginManager. outsidePREHandler(String text, XWikiContext context)
String
XWikiDefaultPlugin. startRenderingHandler(String content, XWikiContext context)
Deprecated.String
XWikiPluginInterface. startRenderingHandler(String content, XWikiContext context)
Deprecated.Hook method called during the 1.0 rendering process, afterXWikiPluginInterface.commonTagsHandler(String, XWikiContext)
and beforeXWikiPluginInterface.outsidePREHandler(String, XWikiContext)
.String
XWikiPluginManager. startRenderingHandler(String text, XWikiContext context)
void
XWikiDefaultPlugin. virtualInit(XWikiContext context)
Deprecated.void
XWikiPluginInterface. virtualInit(XWikiContext context)
Deprecated.Initialization method called each time a virtual wiki is started, allowing plugins to perform initialization tasks needed in each wiki.void
XWikiPluginManager. virtualInit(XWikiContext context)
Constructors in com.xpn.xwiki.plugin with parameters of type XWikiContext Constructor Description PluginApi(T plugin, XWikiContext context)
Deprecated.API constructor.XWikiDefaultPlugin(String name, String className, XWikiContext context)
Deprecated.The mandatory plugin constructor, this is the method called (through reflection) by the plugin manager.XWikiPluginManager(String[] classNames, XWikiContext context)
XWikiPluginManager(String classList, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.plugin.fileupload
Methods in com.xpn.xwiki.plugin.fileupload with parameters of type XWikiContext Modifier and Type Method Description void
FileUploadPlugin. cleanFileList(XWikiContext context)
Deletes all temporary files of the upload.void
FileUploadPlugin. endRendering(XWikiContext context)
Hook method, called after the 1.0 rendering engine finished processing a wiki document.org.apache.commons.fileupload.FileItem
FileUploadPlugin. getFile(String formfieldName, XWikiContext context)
Return the FileItem corresponding to the file uploaded for a form field.String
FileUploadPlugin. getFileItem(String formfieldName, XWikiContext context)
Deprecated.not well named, useFileUploadPlugin.getFileItemAsString(String, com.xpn.xwiki.XWikiContext)
String
FileUploadPlugin. getFileItemAsString(String formfieldName, XWikiContext context)
Allows to retrieve the contents of an uploaded file as a string.byte[]
FileUploadPlugin. getFileItemData(String formfieldName, XWikiContext context)
Allows to retrieve the contents of an uploaded file as a sequence of bytes.InputStream
FileUploadPlugin. getFileItemInputStream(String formfieldName, XWikiContext context)
Allows to retrieve the contents of an uploaded file as a stream.List<String>
FileUploadPlugin. getFileItemNames(XWikiContext context)
Retrieves the list of FileItem names.List<org.apache.commons.fileupload.FileItem>
FileUploadPlugin. getFileItems(XWikiContext context)
Allows to retrieve the current list of uploaded files, as a list ofFileItem
s.int
FileUploadPlugin. getFileItemSize(String formfieldName, XWikiContext context)
Retrieve the size of a file content in byte.String
FileUploadPlugin. getFileName(String formfieldName, XWikiContext context)
Get the name of the file uploaded for a form field.Api
FileUploadPlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
void
FileUploadPlugin. init(XWikiContext context)
void
FileUploadPlugin. loadFileList(long uploadMaxSize, int uploadSizeThreshold, String tempdir, XWikiContext context)
Loads the list of uploaded files in the context if there are any uploaded files.void
FileUploadPlugin. loadFileList(XWikiContext context)
Loads the list of uploaded files in the context if there are any uploaded files.void
FileUploadPlugin. virtualInit(XWikiContext context)
Constructors in com.xpn.xwiki.plugin.fileupload with parameters of type XWikiContext Constructor Description FileUploadPlugin(String name, String className, XWikiContext context)
FileUploadPluginApi(FileUploadPlugin plugin, XWikiContext context)
API constructor. -
Uses of XWikiContext in com.xpn.xwiki.plugin.mail
Methods in com.xpn.xwiki.plugin.mail with parameters of type XWikiContext Modifier and Type Method Description Api
MailPlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
void
MailPlugin. init(XWikiContext context)
Constructors in com.xpn.xwiki.plugin.mail with parameters of type XWikiContext Constructor Description MailPlugin(String name, String className, XWikiContext context)
MailPluginApi(MailPlugin plugin, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.plugin.packaging
Methods in com.xpn.xwiki.plugin.packaging with parameters of type XWikiContext Modifier and Type Method Description boolean
Package. add(XWikiDocument doc, int defaultAction, XWikiContext context)
Deprecated.boolean
Package. add(XWikiDocument doc, XWikiContext context)
Deprecated.boolean
Package. add(String docFullName, int DefaultAction, XWikiContext context)
Deprecated.boolean
Package. add(String docFullName, XWikiContext context)
Deprecated.boolean
Package. add(String docFullName, String language, int DefaultAction, XWikiContext context)
Deprecated.boolean
Package. add(String docFullName, String language, XWikiContext context)
Deprecated.void
Package. addAllWikiDocuments(XWikiContext context)
Deprecated.void
Package. addToDir(XWikiDocument doc, File dir, boolean withVersions, XWikiContext context)
Deprecated.void
Package. addToZip(XWikiDocument doc, ZipOutputStream zos, boolean withVersions, XWikiContext context)
Deprecated.since 4.1M2void
Package. deleteAllWikiDocuments(XWikiContext context)
Deprecated.String
Package. export(OutputStream os, XWikiContext context)
Deprecated.String
Package. exportToDir(File dir, XWikiContext context)
Deprecated.void
DocumentFilter. filter(XWikiDocument doc, XWikiContext context)
Deprecated.Do actions at the import or export on a document.void
Package. filter(XWikiDocument doc, XWikiContext context)
Deprecated.List<String>
Package. getErrors(XWikiContext context)
Deprecated.String
Package. getFileNameFromDocument(XWikiDocument doc, XWikiContext context)
Deprecated.Generate a file name based on provided document.List<String>
Package. getInstalled(XWikiContext context)
Deprecated.String
Package. getPathFromDocument(XWikiDocument doc, XWikiContext context)
Deprecated.Generate a relative path based on provided document.Api
PackagePlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
Deprecated.List<String>
Package. getSkipped(XWikiContext context)
Deprecated.int
Package. getStatus(XWikiContext context)
Deprecated.boolean
Package. hasBackupPackImportRights(XWikiContext context)
Deprecated.String
Package. Import(byte[] file, XWikiContext context)
Deprecated.Load this package in memory from a byte array.String
Package. Import(InputStream file, XWikiContext context)
Deprecated.Load this package in memory from an InputStream.void
PackagePlugin. init(XWikiContext context)
Deprecated.int
Package. install(XWikiContext context)
Deprecated.String
Package. readFromDir(File dir, XWikiContext context)
Deprecated.Load document files from provided directory and sub-directories into packager.int
Package. readFromDir(File dir, XWikiContext context, org.dom4j.Document description)
Deprecated.Load document files from provided directory and sub-directories into packager.int
DocumentInfo. testInstall(boolean isAdmin, XWikiContext context)
Deprecated.int
DocumentInfoAPI. testInstall(boolean isAdmin, XWikiContext context)
Deprecated.int
DocumentInfoAPI. testInstall(XWikiContext context)
Deprecated.int
Package. testInstall(boolean isAdmin, XWikiContext context)
Deprecated.net.sf.json.JSONObject
Package. toJSON(XWikiContext wikiContext)
Deprecated.Outputs the content of this package in the JSON formatString
Package. toXml(XWikiContext context)
Deprecated.You should preferPackage.toXML(com.xpn.xwiki.internal.xml.XMLWriter)
.void
Package. toXML(OutputStream out, XWikiContext context)
Deprecated.Write the package.xml file to an OutputStreamboolean
Package. updateDoc(String docFullName, int action, XWikiContext context)
Deprecated.Constructors in com.xpn.xwiki.plugin.packaging with parameters of type XWikiContext Constructor Description DocumentInfoAPI(DocumentInfo doc, XWikiContext context)
Deprecated.PackageAPI(Package plugin, XWikiContext context)
Deprecated.PackagePlugin(String name, String className, XWikiContext context)
Deprecated. -
Uses of XWikiContext in com.xpn.xwiki.plugin.rightsmanager
Methods in com.xpn.xwiki.plugin.rightsmanager with parameters of type XWikiContext Modifier and Type Method Description int
RightsManager. countAllGlobalUsersOrGroups(boolean user, Object[][] matchFields, XWikiContext context)
Get the number of users or groups in the main wiki.int
RightsManager. countAllGroupsNamesForMember(String member, XWikiContext context)
Deprecated.since 10.8RC1, use org.xwiki.user.group.GroupManager component insteadint
RightsManager. countAllLocalUsersOrGroups(boolean user, Object[][] matchFields, XWikiContext context)
Get the number of users or groups in the current wiki.int
RightsManager. countAllMatchedMembersNamesForGroup(String group, String filter, XWikiContext xcontext)
Filters the members of the specified group using the given text and counts the results.int
RightsManager. countAllMembersNamesForGroup(String group, XWikiContext context)
Deprecated.since 10.8RC1, use org.xwiki.user.group.GroupManager component insteadint
RightsManager. countAllUsersOrGroups(boolean user, Object[][] matchFields, XWikiContext context)
Get the number of users or groups in the main wiki and the current wiki.int
RightsManager. countAllWikiUsersOrGroups(boolean user, String wikiName, Object[][] matchFields, XWikiContext context)
Get the number of users or groups in the provided wiki.Collection<String>
RightsManager. getAllGroupsNamesForMember(String member, int nb, int start, XWikiContext context)
Deprecated.since 10.8RC1, use org.xwiki.user.group.GroupManager component insteadList<?>
RightsManager. getAllMatchedGlobalUsersOrGroups(boolean user, Object[][] matchFields, boolean withdetails, RequestLimit limit, Object[][] order, XWikiContext context)
Get all users or groups in the main wiki.List<?>
RightsManager. getAllMatchedLocalUsersOrGroups(boolean user, Object[][] matchFields, boolean withdetails, RequestLimit limit, Object[][] order, XWikiContext context)
Get all users or groups in the current wiki.Collection<String>
RightsManager. getAllMatchedMembersNamesForGroup(String group, String matchField, int nb, int start, Boolean orderAsc, XWikiContext context)
Get members of provided group.List<?>
RightsManager. getAllMatchedUsersOrGroups(boolean user, Object[][] matchFields, boolean withdetails, RequestLimit limit, Object[][] order, XWikiContext context)
Get all users or groups in the main wiki and the current.List<?>
RightsManager. getAllMatchedWikiUsersOrGroups(boolean user, String wikiName, Object[][] matchFields, boolean withdetails, RequestLimit limit, Object[][] order, XWikiContext context)
Get all users or groups in the provided wiki.Collection<String>
RightsManager. getAllMembersNamesForGroup(String group, int nb, int start, XWikiContext context)
Deprecated.since 10.8RC1, use org.xwiki.user.group.GroupManager component insteadMap<String,LevelTree>
RightsManager. getLevelTreeMap(String spaceOrPage, List<String> levelsToMatch, XWikiContext context)
XWikiDocument
RightsManager. getParentPreference(XWikiDocument currentPreference, boolean currentGlobal, XWikiContext context)
Get the document containing inherited rights of provided document.XWikiDocument
RightsManager. getParentPreference(String spaceOrPage, XWikiContext context)
Get the document containing inherited rights of provided document.Api
RightsManagerPlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
LevelTree
RightsManager. getTreeLevel(String spaceOrPage, String levelName, XWikiContext context)
Get level right tree.boolean
RightsManager. groupContainsMember(String groupName, String memberName, Map<String,Collection<String>> groupCacheIn, XWikiContext context)
Browse a group and groups it contains to find provided member (user or group).void
RightsManagerPlugin. init(XWikiContext context)
void
RightsManager. removeDirectRights(String spaceOrPage, List<String> levelNames, String comment, XWikiContext context)
Remove "direct" rights for wiki, space or document.boolean
RightsManager. removeUserOrGroupFromAllRights(XWikiDocument rightsDocument, String userOrGroupWiki, String userOrGroupSpace, String userOrGroupName, boolean user, XWikiContext context)
Remove all references to provided user or group from provided rights document.void
RightsManager. removeUserOrGroupFromAllRights(String userOrGroupWiki, String userOrGroupSpace, String userOrGroupName, boolean user, XWikiContext context)
Remove all references to provided user or group from all rights documents.void
RightsManager. removeUserOrGroupFromLevel(String spaceOrPage, String userOrGroup, boolean user, String levelName, boolean allow, String comment, XWikiContext context)
Remove a user or group from rights preferences document for provided level.boolean
RightsManager. removeUserOrGroupFromRight(BaseObject right, String userOrGroupWiki, String userOrGroupSpace, String userOrGroupName, boolean user, XWikiContext context)
Remove all references to provided user or group from provided right object.boolean
RightsManager. removeUserOrGroupFromRights(XWikiDocument rightsDocument, String userOrGroupWiki, String userOrGroupSpace, String userOrGroupName, boolean user, boolean global, XWikiContext context)
Remove all references to provided user or group from provided rights document.void
RightsManager. replaceUserOrGroupFromAllRights(DocumentReference userOrGroupSourceReference, DocumentReference userOrGroupTargetReference, boolean user, XWikiContext context)
Replace a user or a group reference with another one on all rights of the current wiki.Collection<DocumentReference>
RightsManager. resolveUsers(String userOrGroup, XWikiContext context)
Resolve passed user or group into users references list.Collection<DocumentReference>
RightsManager. resolveUsers(List<String> referenceList, XWikiContext context)
Resolve passed users and groups into users references list.Collection<DocumentReference>
RightsManager. resolveUsers(DocumentReference userOrGroup, XWikiContext context)
Resolve passed user or group into users references list.Constructors in com.xpn.xwiki.plugin.rightsmanager with parameters of type XWikiContext Constructor Description RightsManagerGroupsApi(XWikiContext context)
Create an instance of RightsManageRightsApi.RightsManagerPlugin(String name, String className, XWikiContext context)
Construct the entry point of the Rights Manager plugin.RightsManagerPluginApi(RightsManagerPlugin plugin, XWikiContext context)
Create an instance of the Rights Manager plugin user api.RightsManagerRightsApi(XWikiContext context)
Create an instance of RightsManageRightsApi.RightsManagerUsersApi(XWikiContext context)
Create an instance of RightsManageRightsApi. -
Uses of XWikiContext in com.xpn.xwiki.plugin.svg
Methods in com.xpn.xwiki.plugin.svg with parameters of type XWikiContext Modifier and Type Method Description Api
SVGPlugin. getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
String
SVGPlugin. getSVGImageURL(String content, int height, int width, XWikiContext context)
void
SVGPlugin. init(XWikiContext context)
void
SVGPlugin. outputSVGImage(String content, int height, int width, XWikiContext context)
void
SVGPlugin. outputSVGImage(String content, String extension, int height, int width, XWikiContext context)
void
SVGPlugin. outputSVGImageFromFile(String filename, XWikiContext context)
Constructors in com.xpn.xwiki.plugin.svg with parameters of type XWikiContext Constructor Description SVGPlugin(String name, String className, XWikiContext context)
SVGPluginApi(SVGPlugin plugin, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.redirection
Methods in com.xpn.xwiki.redirection with parameters of type XWikiContext Modifier and Type Method Description boolean
RedirectionFilter. redirect(XWikiContext context)
Possibly perform a redirection according to the context. -
Uses of XWikiContext in com.xpn.xwiki.render.groovy
Constructors in com.xpn.xwiki.render.groovy with parameters of type XWikiContext Constructor Description XWikiPageClassLoader(String jarWikiPage, XWikiContext context)
XWikiPageClassLoader(String jarWikiPage, ClassLoader parent, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.stats.api
Methods in com.xpn.xwiki.stats.api with parameters of type XWikiContext Modifier and Type Method Description Map<?,?>
XWikiStatsService. getActionStatistics(String action, Scope scope, Period period, Duration step, XWikiContext context)
Shows how the statistics for the specified action have evolved over the specified period of time.List<?>
XWikiStatsService. getBackLinkStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
Retrieves back-link statistics.DocumentStats
XWikiStatsService. getDocDayStats(String docname, String action, Date day, XWikiContext context)
Deprecated.DocumentStats
XWikiStatsService. getDocMonthStats(String docname, String action, Date month, XWikiContext context)
Deprecated.DocumentStats
XWikiStatsService. getDocTotalStats(String docname, String action, XWikiContext context)
Deprecated.List<DocumentStats>
XWikiStatsService. getDocumentStatistics(String action, Scope scope, Period period, Range range, XWikiContext context)
Retrieves document statistics.Collection<?>
XWikiStatsService. getRecentActions(String action, int size, XWikiContext context)
Return the statistics action stored.List<RefererStats>
XWikiStatsService. getRefererStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
Retrieves referrer statistics.List
XWikiStatsService. getRefMonthStats(String docName, Date month, XWikiContext context)
Deprecated.List<VisitStats>
XWikiStatsService. getVisitStatistics(String action, Period period, Range range, XWikiContext context)
Retrieves visit statistics.void
XWikiStatsService. init(XWikiContext context)
Methods called just one time at XWiki initialization. -
Uses of XWikiContext in com.xpn.xwiki.stats.impl
Methods in com.xpn.xwiki.stats.impl with parameters of type XWikiContext Modifier and Type Method Description protected static javax.servlet.http.Cookie
StatsUtil. addCookie(XWikiContext context)
Create a new visit cookie and return it.static boolean
StatsUtil. findCookie(XWikiContext context)
Try to find the cookie of the current request or create it.static VisitStats
StatsUtil. findVisit(XWikiContext context)
Try to find the visiting session of the current request, or create a new one if this request is not part of a visit.protected static VisitStats
StatsUtil. findVisitByCookie(String cookie, XWikiContext context)
Search visit statistics object in the database based on cookie name.protected static VisitStats
StatsUtil. findVisitByField(String fieldName, String fieldValue, XWikiContext context)
Search visit statistics object in the database based on cookie name.protected static VisitStats
StatsUtil. findVisitByIPUA(String uniqueID, XWikiContext context)
Search visit statistics object in the database based on visit unique id.Map<?,?>
XWikiStatsServiceImpl. getActionStatistics(String action, Scope scope, Period period, Duration step, XWikiContext context)
List<DocumentStats>
XWikiStatsServiceImpl. getBackLinkStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
static String[]
StatsUtil. getCookieDomains(XWikiContext context)
DocumentStats
XWikiStatsServiceImpl. getDocDayStats(String docname, String action, Date day, XWikiContext context)
DocumentStats
XWikiStatsServiceImpl. getDocMonthStats(String docname, String action, Date month, XWikiContext context)
DocumentStats
XWikiStatsServiceImpl. getDocTotalStats(String docname, String action, XWikiContext context)
List<DocumentStats>
XWikiStatsServiceImpl. getDocumentStatistics(String action, Scope scope, Period period, Range range, XWikiContext context)
static Collection<?>
StatsUtil. getRecentActionFromSessions(XWikiContext context, String action)
Collection<Object>
XWikiStatsServiceImpl. getRecentActions(String action, int size, XWikiContext context)
static int
StatsUtil. getRecentVisitSize(XWikiContext context)
static String
StatsUtil. getReferer(XWikiContext context)
List<RefererStats>
XWikiStatsServiceImpl. getRefererStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
List<?>
XWikiStatsServiceImpl. getRefMonthStats(String docName, Date month, XWikiContext context)
static Collection<DocumentReference>
StatsUtil. getRequestFilteredUsers(XWikiContext context)
The list of users to filter in view request.static Collection<DocumentReference>
StatsUtil. getStorageFilteredUsers(XWikiContext context)
The list of users to filter when storing statistics.List<VisitStats>
XWikiStatsServiceImpl. getVisitStatistics(String action, Period period, Range range, XWikiContext context)
void
XWikiStatsServiceImpl. init(XWikiContext context)
static boolean
StatsUtil. isStatsEnabled(XWikiContext context)
static boolean
StatsUtil. isWikiStatsEnabled(XWikiContext context)
static void
StatsUtil. setRecentActionsFromSession(XWikiContext context, String action, Collection<?> actions)
Store the recent statistics actions in the session. -
Uses of XWikiContext in com.xpn.xwiki.stats.impl.xwiki
Fields in com.xpn.xwiki.stats.impl.xwiki declared as XWikiContext Modifier and Type Field Description protected XWikiContext
AbstractStatsStoreItem. context
The XWiki context clone made when this statistics event occurred.Methods in com.xpn.xwiki.stats.impl.xwiki with parameters of type XWikiContext Modifier and Type Method Description void
XWikiStatsStoreService. addStats(XWikiDocument doc, String action, XWikiContext context)
Add all the statistics to the save queue.Map<org.joda.time.DateTime,Integer>
XWikiStatsReader. getActionStatistics(String action, Scope scope, Period period, Duration step, XWikiContext context)
Shows how the statistics for the specified action have evolved over the specified period of time.List<DocumentStats>
XWikiStatsReader. getBackLinkStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
Retrieves back-link statistics.DocumentStats
XWikiStatsReader. getDocMonthStats(String docname, String action, Date month, XWikiContext context)
Deprecated.List<DocumentStats>
XWikiStatsReader. getDocumentStatistics(String action, Scope scope, Period period, Range range, XWikiContext context)
Retrieves document statistics.Collection<Object>
XWikiStatsReader. getRecentActions(String action, int size, XWikiContext context)
Return the statistics action stored.List<RefererStats>
XWikiStatsReader. getRefererStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
Retrieves referrer statistics.List<?>
XWikiStatsReader. getRefMonthStats(String docName, Date month, XWikiContext context)
Deprecated.List<VisitStats>
XWikiStatsReader. getVisitStatistics(String action, Period period, Range range, XWikiContext context)
Retrieves visit statistics.Constructors in com.xpn.xwiki.stats.impl.xwiki with parameters of type XWikiContext Constructor Description AbstractStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, XWikiContext context)
DocumentStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String action, boolean isVisit, XWikiContext context)
Create new instance ofDocumentStatsStoreItem
.RefererStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String referer, XWikiContext context)
Create new instance ofRefererStatsStoreItem
.VisitStatsStoreItem(VisitStats visitStats, XWikiContext context)
Create new instance ofVisitStatsStoreItem
.XWikiStatsStoreService(XWikiContext context)
Create new instance of XWikiStatsRegister and init statistics queue. -
Uses of XWikiContext in com.xpn.xwiki.store
Methods in com.xpn.xwiki.store with parameters of type XWikiContext Modifier and Type Method Description default boolean
XWikiAttachmentStoreInterface. attachmentContentExists(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
boolean
XWikiHibernateAttachmentStore. attachmentContentExists(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction)
boolean
XWikiHibernateBaseStore. beginTransaction(boolean withTransaction, XWikiContext context)
Deprecated.boolean
XWikiHibernateBaseStore. beginTransaction(XWikiContext context)
Begins a transaction if the context does not contains any.boolean
XWikiHibernateBaseStore. beginTransaction(org.hibernate.SessionFactory sfactory, boolean withTransaction, XWikiContext context)
Deprecated.boolean
XWikiHibernateBaseStore. beginTransaction(org.hibernate.SessionFactory sfactory, XWikiContext inputxcontext)
Begins a transaction with a specific SessionFactory.void
XWikiHibernateBaseStore. checkHibernate(XWikiContext context)
Initializes Hibernate.void
XWikiAttachmentStoreInterface. cleanUp(XWikiContext context)
void
XWikiCacheStore. cleanUp(XWikiContext context)
void
XWikiHibernateBaseStore. cleanUp(XWikiContext inputxcontext)
Cleanup all sessions Used at the shutdown timevoid
XWikiStoreInterface. cleanUp(XWikiContext context)
int
XWikiCacheStore. countDocuments(String wheresql, XWikiContext context)
int
XWikiCacheStore. countDocuments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
int
XWikiHibernateStore. countDocuments(String wheresql, XWikiContext context)
int
XWikiHibernateStore. countDocuments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
int
XWikiStoreInterface. countDocuments(String wheresql, XWikiContext context)
API allowing to count the total number of documents that would be returned by a query.int
XWikiStoreInterface. countDocuments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
API allowing to count the total number of documents that would be returned by a parameterized query.void
XWikiCacheStore. createWiki(String wikiName, XWikiContext context)
void
XWikiHibernateStore. createWiki(String wikiName, XWikiContext inputxcontext)
void
XWikiStoreInterface. createWiki(String wikiName, XWikiContext context)
Allows to create a new wiki database and initialize the default tables.void
AttachmentVersioningStore. deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
Permanently delete attachment archive.void
VoidAttachmentVersioningStore. deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean transaction)
void
XWikiHibernateVersioningStore. deleteArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context)
void
XWikiVersioningStoreInterface. deleteArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context)
Delete all history for a document.void
AttachmentRecycleBinStore. deleteFromRecycleBin(long index, XWikiContext context, boolean bTransaction)
Permanently delete attachment from recycle bin.void
XWikiHibernateRecycleBinStore. deleteFromRecycleBin(long index, XWikiContext context, boolean bTransaction)
void
XWikiHibernateRecycleBinStore. deleteFromRecycleBin(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction)
default void
XWikiRecycleBinStoreInterface. deleteFromRecycleBin(long index, XWikiContext context, boolean bTransaction)
Permanently delete document from recycle bin.void
XWikiRecycleBinStoreInterface. deleteFromRecycleBin(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction)
Deprecated.since 9.4RC1.void
XWikiCacheStore. deleteLinks(long docId, XWikiContext context, boolean bTransaction)
Deprecated.void
XWikiHibernateStore. deleteLinks(long docId, XWikiContext inputxcontext, boolean bTransaction)
Deprecated.void
XWikiStoreInterface. deleteLinks(long docId, XWikiContext context, boolean bTransaction)
Deprecated.link storage and indexing moved to Solr (implemented in xwiki-platform-search-solr-api)void
XWikiCacheStore. deleteLock(XWikiLock lock, XWikiContext context, boolean bTransaction)
void
XWikiHibernateStore. deleteLock(XWikiLock lock, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiStoreInterface. deleteLock(XWikiLock lock, XWikiContext context, boolean bTransaction)
void
XWikiCacheStore. deleteWiki(String wikiName, XWikiContext context)
void
XWikiHibernateStore. deleteWiki(String wikiName, XWikiContext inputxcontext)
void
XWikiStoreInterface. deleteWiki(String wikiName, XWikiContext context)
Delete a wiki database.void
XWikiAttachmentStoreInterface. deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiAttachmentStoreInterface. deleteXWikiAttachment(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateAttachmentStore. deleteXWikiAttachment(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateStore. deleteXWikiCollection(BaseCollection object, XWikiContext inputxcontext, boolean bTransaction, boolean evict)
Deprecated.This is internal to XWikiHibernateStore and may be removed in the future.void
XWikiCacheStore. deleteXWikiDoc(XWikiDocument doc, XWikiContext inputxcontext)
void
XWikiHibernateStore. deleteXWikiDoc(XWikiDocument doc, XWikiContext inputxcontext)
void
XWikiStoreInterface. deleteXWikiDoc(XWikiDocument doc, XWikiContext context)
void
XWikiHibernateBaseStore. endTransaction(XWikiContext inputxcontext, boolean commit)
Ends a transaction and close the session.void
XWikiHibernateBaseStore. endTransaction(XWikiContext context, boolean commit, boolean withTransaction)
Deprecated.since 4.0M1, useXWikiHibernateBaseStore.endTransaction(XWikiContext, boolean)
protected String
XWikiHibernateBaseStore. escapeSchema(String schema, XWikiContext context)
Escape schema name depending of the database engine.<T> T
XWikiHibernateBaseStore. execute(XWikiContext context, boolean bTransaction, boolean doCommit, XWikiHibernateBaseStore.HibernateCallback<T> cb)
<T> T
XWikiHibernateBaseStore. execute(XWikiContext inputxcontext, boolean doCommit, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute method for operations in Hibernate.<T> T
XWikiHibernateBaseStore. executeRead(XWikiContext context, boolean bTransaction, XWikiHibernateBaseStore.HibernateCallback<T> cb)
<T> T
XWikiHibernateBaseStore. executeRead(XWikiContext context, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute method for read-only operations in hibernate.<T> T
XWikiHibernateBaseStore. executeWrite(XWikiContext context, boolean bTransaction, XWikiHibernateBaseStore.HibernateCallback<T> cb)
<T> T
XWikiHibernateBaseStore. executeWrite(XWikiContext context, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute method for read-write operations in Hibernate.boolean
XWikiCacheStore. exists(XWikiDocument doc, XWikiContext inputxcontext)
boolean
XWikiHibernateStore. exists(XWikiDocument doc, XWikiContext inputxcontext)
Verifies if a wiki document existsboolean
XWikiStoreInterface. exists(XWikiDocument doc, XWikiContext context)
<T> T
XWikiHibernateBaseStore. failSafeExecute(XWikiContext inputxcontext, boolean doCommit, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute method for operations in hibernate in an independent session (but not closing the current one if any).<T> T
XWikiHibernateBaseStore. failSafeExecuteRead(XWikiContext context, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute hibernate read-only operation in a independent session (but not closing the current one if any).<T> T
XWikiHibernateBaseStore. failSafeExecuteWrite(XWikiContext context, XWikiHibernateBaseStore.HibernateCallback<T> cb)
Execute hibernate read-only operation in a independent session (but not closing the current one if any).List<DeletedAttachment>
AttachmentRecycleBinStore. getAllDeletedAttachments(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
Get all the deleted attachments from the database matching an attachment template (document name and filename).List<DeletedAttachment>
AttachmentRecycleBinStore. getAllDeletedAttachments(XWikiDocument doc, XWikiContext context, boolean bTransaction)
Get all the deleted attachments for a given document.XWikiDeletedDocument[]
XWikiHibernateRecycleBinStore. getAllDeletedDocuments(XWikiDocument doc, XWikiContext context, boolean bTransaction)
XWikiDeletedDocument[]
XWikiHibernateRecycleBinStore. getAllDeletedDocuments(String batchId, boolean withContent, XWikiContext context, boolean bTransaction)
XWikiDeletedDocument[]
XWikiHibernateRecycleBinStore. getAllDeletedDocuments(String batchId, XWikiContext context, boolean bTransaction)
XWikiDeletedDocument[]
XWikiRecycleBinStoreInterface. getAllDeletedDocuments(XWikiDocument doc, XWikiContext context, boolean bTransaction)
default XWikiDeletedDocument[]
XWikiRecycleBinStoreInterface. getAllDeletedDocuments(String batchId, boolean withContent, XWikiContext context, boolean bTransaction)
default XWikiDeletedDocument[]
XWikiRecycleBinStoreInterface. getAllDeletedDocuments(String batchId, XWikiContext context, boolean bTransaction)
Long[]
XWikiHibernateRecycleBinStore. getAllDeletedDocumentsIds(XWikiContext context, int limit)
default Long[]
XWikiRecycleBinStoreInterface. getAllDeletedDocumentsIds(XWikiContext context, int limit)
Get all the deleted documents ID or a specified number.byte[]
VoidAttachmentVersioningStore.VoidAttachmentArchive. getArchive(XWikiContext context)
List<String>
XWikiCacheStore. getClassList(XWikiContext context)
List<String>
XWikiHibernateStore. getClassList(XWikiContext inputxcontext)
List<String>
XWikiStoreInterface. getClassList(XWikiContext context)
DatabaseProduct
XWikiHibernateBaseStore. getDatabaseProductName(XWikiContext context)
Deprecated.since 4.0M1 useXWikiHibernateBaseStore.getDatabaseProductName()
DeletedAttachment
AttachmentRecycleBinStore. getDeletedAttachment(long index, XWikiContext context, boolean bTransaction)
Returns ahandler
for a deleted attachment.XWikiDeletedDocument
XWikiHibernateRecycleBinStore. getDeletedDocument(long index, XWikiContext context, boolean bTransaction)
XWikiDeletedDocument
XWikiHibernateRecycleBinStore. getDeletedDocument(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction)
default XWikiDeletedDocument
XWikiRecycleBinStoreInterface. getDeletedDocument(long index, XWikiContext context, boolean bTransaction)
XWikiDeletedDocument
XWikiRecycleBinStoreInterface. getDeletedDocument(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction)
Deprecated.since 9.4RC1.String
XWikiCacheStore. getKey(XWikiDocument doc, XWikiContext context)
String
XWikiCacheStore. getKey(String fullName, String language, XWikiContext context)
Deprecated.since 4.0M1, useXWikiDocument.getKey()
int
XWikiCacheStore. getLimitSize(XWikiContext context, Class<?> entityType, String propertyName)
int
XWikiHibernateStore. getLimitSize(XWikiContext context, Class<?> entityType, String propertyName)
int
XWikiStoreInterface. getLimitSize(XWikiContext context, Class<?> entityType, String property)
Get the limit size of a property.Long
XWikiHibernateRecycleBinStore. getNumberOfDeletedDocuments(XWikiContext context)
default Long
XWikiRecycleBinStoreInterface. getNumberOfDeletedDocuments(XWikiContext context)
XWikiAttachment
VoidAttachmentVersioningStore.VoidAttachmentArchive. getRevision(XWikiAttachment attachment, String rev, XWikiContext context)
String
XWikiHibernateBaseStore. getSchemaFromWikiName(XWikiContext context)
Convert context's database in real database/schema name.protected String
XWikiHibernateBaseStore. getSchemaFromWikiName(String wikiName, DatabaseProduct databaseProduct, XWikiContext inputxcontext)
Convert wiki name in database/schema name.protected String
XWikiHibernateBaseStore. getSchemaFromWikiName(String wikiId, XWikiContext inputxcontext)
Convert wiki name in database/schema name.String[]
XWikiHibernateBaseStore. getSchemaUpdateScript(org.hibernate.cfg.Configuration config, XWikiContext inputxcontext)
Deprecated.do nothing since 11.5RC1org.hibernate.Session
XWikiHibernateBaseStore. getSession(XWikiContext inputxcontext)
This get's the current session.org.hibernate.Transaction
XWikiHibernateBaseStore. getTransaction(XWikiContext inputxcontext)
Allows to get the current transaction from the context This is set in beginTransactionList<String>
XWikiCacheStore. getTranslationList(XWikiDocument doc, XWikiContext context)
List<String>
XWikiHibernateStore. getTranslationList(XWikiDocument doc, XWikiContext context)
List<String>
XWikiStoreInterface. getTranslationList(XWikiDocument doc, XWikiContext context)
XWikiDocumentArchive
XWikiHibernateVersioningStore. getXWikiDocumentArchive(XWikiDocument doc, XWikiContext inputxcontext)
XWikiDocumentArchive
XWikiVersioningStoreInterface. getXWikiDocumentArchive(XWikiDocument doc, XWikiContext context)
org.suigeneris.jrcs.rcs.Version[]
XWikiHibernateVersioningStore. getXWikiDocVersions(XWikiDocument doc, XWikiContext context)
org.suigeneris.jrcs.rcs.Version[]
XWikiVersioningStoreInterface. getXWikiDocVersions(XWikiDocument doc, XWikiContext context)
void
XWikiCacheStore. initCache(int capacity, int pageExistCacheCapacity, XWikiContext context)
Deprecated.void
XWikiCacheStore. initCache(XWikiContext context)
Deprecated.void
XWikiCacheStoreInterface. initCache(int capacity, int pageExistCapacity, XWikiContext context)
Deprecated.since 8.3.boolean
XWikiCacheStore. injectCustomMapping(BaseClass doc1class, XWikiContext context)
boolean
XWikiDefaultStore. injectCustomMapping(BaseClass doc1class, XWikiContext xWikiContext)
boolean
XWikiHibernateStore. injectCustomMapping(BaseClass doc1class, XWikiContext inputxcontext)
boolean
XWikiHibernateStore. injectCustomMapping(String className, String customMapping, XWikiContext inputxcontext)
boolean
XWikiStoreInterface. injectCustomMapping(BaseClass doc1class, XWikiContext xWikiContext)
Deprecated.boolean
XWikiCacheStore. injectCustomMappings(XWikiDocument doc, XWikiContext context)
void
XWikiCacheStore. injectCustomMappings(XWikiContext context)
boolean
XWikiDefaultStore. injectCustomMappings(XWikiDocument doc, XWikiContext xWikiContext)
void
XWikiDefaultStore. injectCustomMappings(XWikiContext context)
boolean
XWikiHibernateStore. injectCustomMappings(XWikiDocument doc, XWikiContext inputxcontext)
void
XWikiHibernateStore. injectCustomMappings(XWikiContext context)
boolean
XWikiStoreInterface. injectCustomMappings(XWikiDocument doc, XWikiContext context)
void
XWikiStoreInterface. injectCustomMappings(XWikiContext context)
org.hibernate.SessionFactory
XWikiHibernateStore. injectCustomMappingsInSessionFactory(BaseClass bclass, XWikiContext context)
org.hibernate.SessionFactory
XWikiHibernateStore. injectCustomMappingsInSessionFactory(XWikiContext inputxcontext)
void
XWikiCacheStore. injectUpdatedCustomMappings(XWikiContext context)
void
XWikiDefaultStore. injectUpdatedCustomMappings(XWikiContext context)
void
XWikiHibernateStore. injectUpdatedCustomMappings(XWikiContext context)
void
XWikiStoreInterface. injectUpdatedCustomMappings(XWikiContext context)
boolean
XWikiCacheStore. isCustomMappingValid(BaseClass bclass, String custommapping1, XWikiContext context)
boolean
XWikiHibernateStore. isCustomMappingValid(BaseClass bclass, String custommapping1, XWikiContext context)
Deprecated.boolean
XWikiStoreInterface. isCustomMappingValid(BaseClass bclass, String custommapping1, XWikiContext context)
Deprecated.protected boolean
XWikiHibernateBaseStore. isVirtual(XWikiContext context)
Deprecated.Virtual mode is on by default, starting with XWiki 5.0M2.boolean
XWikiCacheStore. isWikiNameAvailable(String wikiName, XWikiContext context)
boolean
XWikiHibernateStore. isWikiNameAvailable(String wikiName, XWikiContext inputxcontext)
boolean
XWikiStoreInterface. isWikiNameAvailable(String wikiName, XWikiContext context)
Indicate if the provided wiki name could be used to create a new wiki.protected List<XWikiRCSNodeInfo>
XWikiHibernateVersioningStore. loadAllRCSNodeInfo(XWikiContext context, long id, boolean bTransaction)
XWikiAttachmentArchive
AttachmentVersioningStore. loadArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
Load attachment archive from store.XWikiAttachmentArchive
VoidAttachmentVersioningStore. loadArchive(XWikiAttachment attachment, XWikiContext context, boolean transaction)
void
XWikiAttachmentStoreInterface. loadAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. loadAttachmentContent(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction)
List<String>
XWikiCacheStore. loadBacklinks(String fullName, XWikiContext context, boolean bTransaction)
Deprecated.List<DocumentReference>
XWikiCacheStore. loadBacklinks(AttachmentReference attachmentReference, boolean bTransaction, XWikiContext context)
Deprecated.List<DocumentReference>
XWikiCacheStore. loadBacklinks(DocumentReference documentReference, boolean bTransaction, XWikiContext context)
Deprecated.List<String>
XWikiHibernateStore. loadBacklinks(String fullName, XWikiContext inputxcontext, boolean bTransaction)
Deprecated.List<DocumentReference>
XWikiHibernateStore. loadBacklinks(AttachmentReference attachmentReference, boolean bTransaction, XWikiContext inputxcontext)
Deprecated.List<DocumentReference>
XWikiHibernateStore. loadBacklinks(DocumentReference documentReference, boolean bTransaction, XWikiContext inputxcontext)
Deprecated.List<String>
XWikiStoreInterface. loadBacklinks(String fullName, XWikiContext context, boolean bTransaction)
Deprecated.useLinkStore
APIs insteaddefault List<DocumentReference>
XWikiStoreInterface. loadBacklinks(AttachmentReference documentReference, boolean bTransaction, XWikiContext context)
Deprecated.useLinkStore
APIs insteadList<DocumentReference>
XWikiStoreInterface. loadBacklinks(DocumentReference documentReference, boolean bTransaction, XWikiContext context)
Deprecated.useLinkStore
APIs insteadList<XWikiLink>
XWikiCacheStore. loadLinks(long docId, XWikiContext context, boolean bTransaction)
Deprecated.List<XWikiLink>
XWikiHibernateStore. loadLinks(long docId, XWikiContext inputxcontext, boolean bTransaction)
Deprecated.List<XWikiLink>
XWikiStoreInterface. loadLinks(long docId, XWikiContext context, boolean bTransaction)
Deprecated.useLinkStore
APIs insteadXWikiLock
XWikiCacheStore. loadLock(long docId, XWikiContext context, boolean bTransaction)
XWikiLock
XWikiHibernateStore. loadLock(long docId, XWikiContext inputxcontext, boolean bTransaction)
XWikiLock
XWikiStoreInterface. loadLock(long docId, XWikiContext context, boolean bTransaction)
XWikiRCSNodeContent
XWikiHibernateVersioningStore. loadRCSNodeContent(XWikiRCSNodeId id, boolean bTransaction, XWikiContext context)
XWikiRCSNodeContent
XWikiVersioningStoreInterface. loadRCSNodeContent(XWikiRCSNodeId id, boolean bTransaction, XWikiContext context)
LoadXWikiRCSNodeContent
on demand.void
XWikiHibernateStore. loadXWikiCollection(BaseCollection object, XWikiContext context, boolean bTransaction)
Deprecated.This is internal to XWikiHibernateStore and may be removed in the future.XWikiDocument
XWikiCacheStore. loadXWikiDoc(XWikiDocument doc, XWikiContext inputxcontext)
XWikiDocument
XWikiHibernateStore. loadXWikiDoc(XWikiDocument defaultDocument, XWikiContext inputxcontext)
XWikiDocument
XWikiHibernateVersioningStore. loadXWikiDoc(XWikiDocument basedoc, String sversion, XWikiContext inputxcontext)
XWikiDocument
XWikiStoreInterface. loadXWikiDoc(XWikiDocument doc, XWikiContext context)
XWikiDocument
XWikiVersioningStoreInterface. loadXWikiDoc(XWikiDocument doc, String version, XWikiContext context)
void
XWikiHibernateVersioningStore. loadXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context)
void
XWikiVersioningStoreInterface. loadXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context)
void
XWikiCacheStore. renameXWikiDoc(XWikiDocument doc, DocumentReference newReference, XWikiContext inputxcontext)
void
XWikiHibernateStore. renameXWikiDoc(XWikiDocument doc, DocumentReference newReference, XWikiContext inputxcontext)
Atomic operation for renaming a document.default void
XWikiStoreInterface. renameXWikiDoc(XWikiDocument doc, DocumentReference newReference, XWikiContext context)
Atomic operation for renaming a document.void
XWikiHibernateVersioningStore. resetRCSArchive(XWikiDocument doc, boolean bTransaction, XWikiContext inputxcontext)
void
XWikiVersioningStoreInterface. resetRCSArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context)
XWikiAttachment
AttachmentRecycleBinStore. restoreFromRecycleBin(XWikiAttachment attachment, long index, XWikiContext context, boolean bTransaction)
Restore an attachment from the recycle bin (with full history).XWikiDocument
XWikiHibernateRecycleBinStore. restoreFromRecycleBin(long index, XWikiContext inputxcontext, boolean bTransaction)
XWikiDocument
XWikiHibernateRecycleBinStore. restoreFromRecycleBin(XWikiDocument doc, long index, XWikiContext inputxcontext, boolean bTransaction)
default XWikiDocument
XWikiRecycleBinStoreInterface. restoreFromRecycleBin(long index, XWikiContext context, boolean bTransaction)
XWikiDocument
XWikiRecycleBinStoreInterface. restoreFromRecycleBin(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction)
Deprecated.since 9.4RC1.void
AttachmentVersioningStore. saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean bTransaction)
Save or update attachment archive.void
VoidAttachmentVersioningStore. saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean transaction)
void
XWikiAttachmentStoreInterface. saveAttachmentContent(XWikiAttachment attachment, boolean bParentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiAttachmentStoreInterface. saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. saveAttachmentContent(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateAttachmentStore. saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
XWikiAttachmentStoreInterface. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext context, boolean bTransaction)
void
XWikiHibernateAttachmentStore. saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiCacheStore. saveLinks(XWikiDocument doc, XWikiContext context, boolean bTransaction)
Deprecated.void
XWikiHibernateStore. saveLinks(XWikiDocument doc, XWikiContext inputxcontext, boolean bTransaction)
Deprecated.void
XWikiStoreInterface. saveLinks(XWikiDocument doc, XWikiContext context, boolean bTransaction)
Deprecated.link storage and indexing moved to Solr (implemented in xwiki-platform-search-solr-api)void
XWikiCacheStore. saveLock(XWikiLock lock, XWikiContext context, boolean bTransaction)
void
XWikiHibernateStore. saveLock(XWikiLock lock, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiStoreInterface. saveLock(XWikiLock lock, XWikiContext context, boolean bTransaction)
void
AttachmentRecycleBinStore. saveToRecycleBin(XWikiAttachment attachment, String deleter, Date date, XWikiContext context, boolean bTransaction)
Save attachment to recycle bin, with full history.void
XWikiHibernateRecycleBinStore. saveToRecycleBin(XWikiDocument doc, String deleter, Date date, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateRecycleBinStore. saveToRecycleBin(XWikiDocument doc, String deleter, Date date, String batchId, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiRecycleBinStoreInterface. saveToRecycleBin(XWikiDocument doc, String deleter, Date date, XWikiContext context, boolean bTransaction)
Save document to recycle bin.default void
XWikiRecycleBinStoreInterface. saveToRecycleBin(XWikiDocument doc, String deleter, Date date, String batchId, XWikiContext context, boolean bTransaction)
Save document to recycle bin.void
XWikiHibernateStore. saveXWikiCollection(BaseCollection object, XWikiContext inputxcontext, boolean bTransaction)
Deprecated.This is internal to XWikiHibernateStore and may be removed in the future.void
XWikiCacheStore. saveXWikiDoc(XWikiDocument doc, XWikiContext context)
void
XWikiCacheStore. saveXWikiDoc(XWikiDocument doc, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiHibernateStore. saveXWikiDoc(XWikiDocument doc, XWikiContext context)
void
XWikiHibernateStore. saveXWikiDoc(XWikiDocument doc, XWikiContext inputxcontext, boolean bTransaction)
void
XWikiStoreInterface. saveXWikiDoc(XWikiDocument doc, XWikiContext context)
void
XWikiStoreInterface. saveXWikiDoc(XWikiDocument doc, XWikiContext context, boolean bTransaction)
void
XWikiHibernateVersioningStore. saveXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context)
void
XWikiVersioningStoreInterface. saveXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context)
<T> List<T>
XWikiCacheStore. search(String sql, int nb, int start, XWikiContext context)
<T> List<T>
XWikiCacheStore. search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context)
<T> List<T>
XWikiCacheStore. search(String sql, int nb, int start, Object[][] whereParams, List<?> parameterValues, XWikiContext context)
<T> List<T>
XWikiCacheStore. search(String sql, int nb, int start, List<?> parameterValues, XWikiContext context)
<T> List<T>
XWikiHibernateStore. search(String sql, int nb, int start, XWikiContext context)
<T> List<T>
XWikiHibernateStore. search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context)
<T> List<T>
XWikiHibernateStore. search(String sql, int nb, int start, Object[][] whereParams, List<?> parameterValues, XWikiContext inputxcontext)
<T> List<T>
XWikiHibernateStore. search(String sql, int nb, int start, List<?> parameterValues, XWikiContext context)
List
XWikiHibernateStore. search(org.hibernate.query.Query query, int nb, int start, XWikiContext inputxcontext)
<T> List<T>
XWikiStoreInterface. search(String sql, int nb, int start, XWikiContext context)
Execute a reading request and return result.<T> List<T>
XWikiStoreInterface. search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context)
Execute a reading request and return result.<T> List<T>
XWikiStoreInterface. search(String sql, int nb, int start, Object[][] whereParams, List<?> parameterValues, XWikiContext context)
Execute a reading request with parameters and return result.<T> List<T>
XWikiStoreInterface. search(String sql, int nb, int start, List<?> parameterValues, XWikiContext context)
Execute a reading request with parameters and return result.List<DocumentReference>
XWikiCacheStore. searchDocumentReferences(String wheresql, int nb, int start, XWikiContext context)
List<DocumentReference>
XWikiCacheStore. searchDocumentReferences(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<DocumentReference>
XWikiCacheStore. searchDocumentReferences(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
List<DocumentReference>
XWikiCacheStore. searchDocumentReferences(String wheresql, XWikiContext context)
List<DocumentReference>
XWikiCacheStore. searchDocumentReferences(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
List<DocumentReference>
XWikiHibernateStore. searchDocumentReferences(String wheresql, int nb, int start, XWikiContext context)
List<DocumentReference>
XWikiHibernateStore. searchDocumentReferences(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<DocumentReference>
XWikiHibernateStore. searchDocumentReferences(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
List<DocumentReference>
XWikiHibernateStore. searchDocumentReferences(String wheresql, XWikiContext context)
List<DocumentReference>
XWikiHibernateStore. searchDocumentReferences(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
List<DocumentReference>
XWikiStoreInterface. searchDocumentReferences(String wheresql, int nb, int start, XWikiContext context)
List<DocumentReference>
XWikiStoreInterface. searchDocumentReferences(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<DocumentReference>
XWikiStoreInterface. searchDocumentReferences(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
Search documents by passing HQL where clause values as parameters.List<DocumentReference>
XWikiStoreInterface. searchDocumentReferences(String wheresql, XWikiContext context)
List<DocumentReference>
XWikiStoreInterface. searchDocumentReferences(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
Same asXWikiStoreInterface.searchDocumentReferences(String, int, int, List, XWikiContext)
but returns all rows.List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbyname, boolean customMapping, boolean checkRight, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, boolean checkRight, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbyname, boolean customMapping, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbyname, boolean customMapping, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbyname, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbylanguage, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, boolean distinctbyname, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, XWikiContext context)
List<XWikiDocument>
XWikiCacheStore. searchDocuments(String wheresql, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, boolean distinctbyname, boolean customMapping, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, boolean distinctbyname, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, boolean distinctbylanguage, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiDefaultStore. searchDocuments(String wheresql, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, boolean checkRight, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, boolean checkRight, int nb, int start, List<?> parameterValues, XWikiContext inputxcontext)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, boolean distinctbylanguage, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, int nb, int start, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, int nb, int start, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, XWikiContext context)
List<XWikiDocument>
XWikiHibernateStore. searchDocuments(String wheresql, List<?> parameterValues, XWikiContext context)
List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, boolean checkRight, int nb, int start, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, boolean checkRight, int nb, int start, List<?> parameterValues, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, int nb, int start, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, int nb, int start, List<?> parameterValues, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, int nb, int start, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, int nb, int start, List<?> parameterValues, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, boolean distinctbylanguage, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, int nb, int start, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, int nb, int start, List<?> parameterValues, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, XWikiContext context)
Search documents in the storing system.List<XWikiDocument>
XWikiStoreInterface. searchDocuments(String wheresql, List<?> parameterValues, XWikiContext context)
Search documents in the storing system.List<String>
XWikiCacheStore. searchDocumentsNames(String wheresql, int nb, int start, XWikiContext context)
List<String>
XWikiCacheStore. searchDocumentsNames(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<String>
XWikiCacheStore. searchDocumentsNames(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
List<String>
XWikiCacheStore. searchDocumentsNames(String wheresql, XWikiContext context)
List<String>
XWikiCacheStore. searchDocumentsNames(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
List
XWikiDefaultStore. searchDocumentsNames(String wheresql, int nb, int start, XWikiContext context)
List
XWikiDefaultStore. searchDocumentsNames(String wheresql, XWikiContext context)
List<String>
XWikiHibernateStore. searchDocumentsNames(String wheresql, int nb, int start, XWikiContext context)
List<String>
XWikiHibernateStore. searchDocumentsNames(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<String>
XWikiHibernateStore. searchDocumentsNames(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
List<String>
XWikiHibernateStore. searchDocumentsNames(String wheresql, XWikiContext context)
List<String>
XWikiHibernateStore. searchDocumentsNames(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
List<String>
XWikiStoreInterface. searchDocumentsNames(String wheresql, int nb, int start, XWikiContext context)
List<String>
XWikiStoreInterface. searchDocumentsNames(String wheresql, int nb, int start, String selectColumns, XWikiContext context)
List<String>
XWikiStoreInterface. searchDocumentsNames(String parametrizedSqlClause, int nb, int start, List<?> parameterValues, XWikiContext context)
List<String>
XWikiStoreInterface. searchDocumentsNames(String wheresql, XWikiContext context)
List<String>
XWikiStoreInterface. searchDocumentsNames(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context)
void
XWikiHibernateBaseStore. setDatabase(org.hibernate.Session session, XWikiContext inputxcontext)
Virtual Wikis Allows to switch database connectionvoid
XWikiHibernateBaseStore. setSession(org.hibernate.Session session, XWikiContext inputxcontext)
Allows to set the current session in the context This is set in beginTransactionvoid
XWikiHibernateBaseStore. setTransaction(org.hibernate.Transaction transaction, XWikiContext inputxcontext)
Allows to set the current transaction This is set in beginTransactionvoid
XWikiHibernateBaseStore. shutdownHibernate(XWikiContext inputxcontext)
Deprecated.automatically done when theHibernateSessionFactory
component is disposedvoid
VoidAttachmentVersioningStore.VoidAttachmentArchive. updateArchive(byte[] data, XWikiContext context)
void
VoidAttachmentVersioningStore.VoidAttachmentArchive. updateArchive(XWikiContext context)
void
XWikiHibernateBaseStore. updateSchema(BaseClass bclass, XWikiContext inputxcontext)
Custom Mapping This function update the schema based on the dynamic custom mapping provided by the classvoid
XWikiHibernateBaseStore. updateSchema(XWikiContext inputxcontext)
Allows to update the schema to match the hibernate mappingvoid
XWikiHibernateBaseStore. updateSchema(XWikiContext inputxcontext, boolean force)
Allows to update the schema to match the hibernate mappingvoid
XWikiHibernateBaseStore. updateSchema(String[] createSQL, XWikiContext inputxcontext)
Deprecated.since 11.5RC1void
XWikiHibernateVersioningStore. updateXWikiDocArchive(XWikiDocument doc, boolean bTransaction, XWikiContext inputxcontext)
void
XWikiVersioningStoreInterface. updateXWikiDocArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context)
Constructors in com.xpn.xwiki.store with parameters of type XWikiContext Constructor Description VoidAttachmentVersioningStore(XWikiContext context)
Deprecated.1.6M1.XWikiCacheStore(XWikiStoreInterface store, XWikiContext context)
Deprecated.since 10.2 and 9.11.4, should be used as a component insteadXWikiHibernateAttachmentStore(XWikiContext context)
Deprecated.1.6M1.XWikiHibernateAttachmentStore(XWiki xwiki, XWikiContext context)
Deprecated.1.6M1.XWikiHibernateBaseStore(XWiki xwiki, XWikiContext context)
Deprecated.1.6M1.XWikiHibernateRecycleBinStore(XWikiContext context)
Deprecated.1.6M1.XWikiHibernateStore(XWikiContext context)
Deprecated.1.6M1.XWikiHibernateStore(XWiki xwiki, XWikiContext context)
Deprecated.1.6M1.XWikiHibernateVersioningStore(XWikiContext context)
Deprecated.1.6M1.XWikiHibernateVersioningStore(XWiki xwiki, XWikiContext context)
Deprecated.1.6M1. -
Uses of XWikiContext in com.xpn.xwiki.store.hibernate
Methods in com.xpn.xwiki.store.hibernate with parameters of type XWikiContext Modifier and Type Method Description void
HibernateAttachmentVersioningStore. deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
void
HibernateAttachmentRecycleBinStore. deleteFromRecycleBin(long index, XWikiContext inputxcontext, boolean bTransaction)
List<DeletedAttachment>
HibernateAttachmentRecycleBinStore. getAllDeletedAttachments(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
List<DeletedAttachment>
HibernateAttachmentRecycleBinStore. getAllDeletedAttachments(XWikiDocument doc, XWikiContext context, boolean bTransaction)
DeletedAttachment
HibernateAttachmentRecycleBinStore. getDeletedAttachment(long index, XWikiContext context, boolean bTransaction)
XWikiAttachmentArchive
HibernateAttachmentVersioningStore. loadArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction)
XWikiAttachment
HibernateAttachmentRecycleBinStore. restoreFromRecycleBin(XWikiAttachment attachment, long index, XWikiContext inputxcontext, boolean bTransaction)
void
HibernateAttachmentVersioningStore. saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean bTransaction)
void
HibernateAttachmentRecycleBinStore. saveToRecycleBin(XWikiAttachment attachment, String deleter, Date date, XWikiContext inputxcontext, boolean bTransaction)
Constructors in com.xpn.xwiki.store.hibernate with parameters of type XWikiContext Constructor Description HibernateAttachmentRecycleBinStore(XWikiContext context)
Deprecated.1.6M1.HibernateAttachmentVersioningStore(XWikiContext context)
Deprecated.1.6M1. -
Uses of XWikiContext in com.xpn.xwiki.store.hibernate.query
Methods in com.xpn.xwiki.store.hibernate.query that return XWikiContext Modifier and Type Method Description protected XWikiContext
HqlQueryExecutor. getContext()
-
Uses of XWikiContext in com.xpn.xwiki.store.migration
Methods in com.xpn.xwiki.store.migration that return XWikiContext Modifier and Type Method Description protected XWikiContext
AbstractDataMigrationManager. getXWikiContext()
-
Uses of XWikiContext in com.xpn.xwiki.store.migration.hibernate
Methods in com.xpn.xwiki.store.migration.hibernate that return XWikiContext Modifier and Type Method Description protected XWikiContext
AbstractHibernateDataMigration. getXWikiContext()
-
Uses of XWikiContext in com.xpn.xwiki.user.api
Methods in com.xpn.xwiki.user.api with parameters of type XWikiContext Modifier and Type Method Description void
XWikiGroupService. addUserToGroup(String user, String database, String group, XWikiContext context)
Deprecated.should never be used ! There is a listener taking care of that automatically.Principal
XWikiAuthService. authenticate(String username, String password, XWikiContext context)
boolean
XWikiRightService. checkAccess(String action, XWikiDocument doc, XWikiContext context)
Checks if the wiki current user has the right to execute (@code action} on the documentdoc
, along with redirecting to the login if it's not the case and there is no logged in user (the user is the guest user).XWikiUser
XWikiAuthService. checkAuth(XWikiContext context)
XWikiUser
XWikiAuthService. checkAuth(String username, String password, String rememberme, XWikiContext context)
Authenticates the user.int
XWikiGroupService. countAllGroupsNamesForMember(String member, XWikiContext context)
Return the number of groups containing provided member.int
XWikiGroupService. countAllMatchedGroups(Object[][] matchFields, XWikiContext context)
Return number of groups with provided constraints.default int
XWikiGroupService. countAllMatchedMembersNamesForGroup(String group, String filter, XWikiContext xcontext)
Filters the members of the specified group using the given text and counts the results.int
XWikiGroupService. countAllMatchedUsers(Object[][] matchFields, XWikiContext context)
Return number of users with provided constraints.int
XWikiGroupService. countAllMembersNamesForGroup(String group, XWikiContext context)
Return the number of members provided group contains.boolean
XWikiUser. exists(XWikiContext context)
Collection<String>
XWikiGroupService. getAllGroupsNamesForMember(String member, int nb, int start, XWikiContext context)
Get all groups containing provided member in the provided member wiki.Collection<DocumentReference>
XWikiGroupService. getAllGroupsReferencesForMember(DocumentReference memberReference, int limit, int offset, XWikiContext context)
Get all groups containing provided member in the current wiki.List<?>
XWikiGroupService. getAllMatchedGroups(Object[][] matchFields, boolean withdetails, int nb, int start, Object[][] order, XWikiContext context)
Search for all groups with provided constraints and in a provided order.Collection<String>
XWikiGroupService. getAllMatchedMembersNamesForGroup(String group, String matchField, int nb, int start, Boolean orderAsc, XWikiContext context)
Get members of provided group.List<?>
XWikiGroupService. getAllMatchedUsers(Object[][] matchFields, boolean withdetails, int nb, int start, Object[][] order, XWikiContext context)
Search for all users with provided constraints and in a provided order.Collection<String>
XWikiGroupService. getAllMembersNamesForGroup(String group, int nb, int start, XWikiContext context)
Get all members provided group contains.boolean
XWikiRightService. hasAccessLevel(String right, String username, String docname, XWikiContext context)
boolean
XWikiRightService. hasAdminRights(XWikiContext context)
Deprecated.since 6.1RC1, useContextualAuthorizationManager.hasAccess(org.xwiki.security.authorization.Right)
insteadboolean
XWikiRightService. hasProgrammingRights(XWikiDocument doc, XWikiContext context)
Deprecated.boolean
XWikiRightService. hasProgrammingRights(XWikiContext context)
Deprecated.since 6.1RC1, useContextualAuthorizationManager.hasAccess(org.xwiki.security.authorization.Right)
insteadboolean
XWikiRightService. hasWikiAdminRights(XWikiContext context)
Deprecated.void
XWikiGroupService. init(XWiki xwiki, XWikiContext context)
void
XWikiGroupService. initCache(int iCapacity, XWikiContext context)
Deprecated.since 10.8RC1, use GroupManager component insteadvoid
XWikiGroupService. initCache(XWikiContext context)
Deprecated.since 10.8RC1, use GroupManager component insteadboolean
XWikiUser. isDisabled(XWikiContext context)
boolean
XWikiUser. isEmailChecked(XWikiContext context)
boolean
XWikiUser. isUserInGroup(String groupName, XWikiContext context)
Check if the user belongs to a group or not.List<String>
XWikiGroupService. listAllGroups(XWikiContext context)
List<String>
XWikiRightService. listAllLevels(XWikiContext context)
Collection<String>
XWikiGroupService. listGroupsForUser(String username, XWikiContext context)
List<String>
XWikiGroupService. listMemberForGroup(String s, XWikiContext context)
void
XWikiGroupService. removeUserOrGroupFromAllGroups(String userOrGroupWiki, String userOrGroupSpace, String userOrGroupName, XWikiContext context)
Remove user or group name from all groups.default void
XWikiGroupService. replaceMemberInAllGroups(DocumentReference memberSource, DocumentReference memberTarget, XWikiContext context)
Replace a given member reference by another one in all groups of the wiki.void
XWikiUser. setDisabled(boolean disable, XWikiContext context)
void
XWikiUser. setEmailChecked(boolean checked, XWikiContext context)
void
XWikiAuthService. showLogin(XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.user.impl.xwiki
Methods in com.xpn.xwiki.user.impl.xwiki with parameters of type XWikiContext Modifier and Type Method Description void
XWikiGroupServiceImpl. addUserToGroup(String username, String database, String group, XWikiContext context)
Deprecated.Principal
GroovyAuthServiceImpl. authenticate(String username, String password, XWikiContext context)
static Principal
MyBasicAuthenticator. authenticate(String username, String password, XWikiContext context)
static Principal
MyFormAuthenticator. authenticate(String username, String password, XWikiContext context)
Principal
XWikiAuthServiceImpl. authenticate(String username, String password, XWikiContext context)
protected Principal
AbstractXWikiAuthService. authenticateSuperAdmin(String password, XWikiContext context)
boolean
XWikiRightServiceImpl. checkAccess(String action, XWikiDocument doc, XWikiContext context)
Deprecated.XWikiUser
AppServerTrustedAuthServiceImpl. checkAuth(XWikiContext context)
XWikiUser
AppServerTrustedAuthServiceImpl. checkAuth(String username, String password, String rememberme, XWikiContext context)
We cannot authenticate locally since we need to trust the app server for authentication.XWikiUser
AppServerTrustedKerberosAuthServiceImpl. checkAuth(XWikiContext context)
XWikiUser
AppServerTrustedKerberosAuthServiceImpl. checkAuth(String username, String password, String rememberme, XWikiContext context)
XWikiUser
GroovyAuthServiceImpl. checkAuth(XWikiContext context)
XWikiUser
GroovyAuthServiceImpl. checkAuth(String username, String password, String rememberme, XWikiContext context)
XWikiUser
XWikiAuthServiceImpl. checkAuth(XWikiContext context)
XWikiUser
XWikiAuthServiceImpl. checkAuth(String username, String password, String rememberme, XWikiContext context)
Method to authenticate and set the cookie from a username and password passed as parametersstatic Principal
MyBasicAuthenticator. checkLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
protected boolean
XWikiAuthServiceImpl. checkPassword(String username, String password, XWikiContext context)
boolean
XWikiRightServiceImpl. checkRight(String userOrGroupName, XWikiDocument doc, String accessLevel, boolean user, boolean allow, boolean global, XWikiContext context)
Deprecated.int
XWikiGroupServiceImpl. countAllGroupsNamesForMember(String member, XWikiContext context)
int
XWikiGroupServiceImpl. countAllMatchedGroups(Object[][] matchFields, XWikiContext context)
int
XWikiGroupServiceImpl. countAllMatchedMembersNamesForGroup(String group, String filter, XWikiContext xcontext)
int
XWikiGroupServiceImpl. countAllMatchedUsers(Object[][] matchFields, XWikiContext context)
protected int
XWikiGroupServiceImpl. countAllMatchedUsersOrGroups(boolean user, Object[][] matchFields, XWikiContext context)
Return number of users or groups with provided constraints.int
XWikiGroupServiceImpl. countAllMembersNamesForGroup(String group, XWikiContext context)
protected String
XWikiAuthServiceImpl. createUser(String user, XWikiContext context)
protected String
XWikiAuthServiceImpl. findUser(String username, XWikiContext context)
Collection<String>
XWikiGroupServiceImpl. getAllGroupsNamesForMember(String member, int nb, int start, XWikiContext context)
Collection<DocumentReference>
XWikiGroupServiceImpl. getAllGroupsReferencesForMember(DocumentReference memberReference, int limit, int offset, XWikiContext context)
List<?>
XWikiGroupServiceImpl. getAllMatchedGroups(Object[][] matchFields, boolean withdetails, int nb, int start, Object[][] order, XWikiContext context)
Collection<String>
XWikiGroupServiceImpl. getAllMatchedMembersNamesForGroup(String group, String matchField, int nb, int start, Boolean orderAsc, XWikiContext context)
List<?>
XWikiGroupServiceImpl. getAllMatchedUsers(Object[][] matchFields, boolean withdetails, int nb, int start, Object[][] order, XWikiContext context)
protected List<?>
XWikiGroupServiceImpl. getAllMatchedUsersOrGroups(boolean user, Object[][] matchFields, boolean withdetails, int nb, int start, Object[][] order, XWikiContext context)
Search for all users or group with provided constraints and in a provided order.Collection<String>
XWikiGroupServiceImpl. getAllMembersNamesForGroup(String group, int nb, int start, XWikiContext context)
protected XWikiAuthenticator
XWikiAuthServiceImpl. getAuthenticator(XWikiContext context)
XWikiAuthService
GroovyAuthServiceImpl. getAuthService(XWikiContext context)
protected String
GroovyAuthServiceImpl. getParam(String name, XWikiContext context)
protected String
XWikiAuthServiceImpl. getParam(String name, XWikiContext context)
boolean
XWikiRightServiceImpl. hasAccessLevel(String accessLevel, String userOrGroupName, String entityReference, boolean user, XWikiContext context)
Deprecated.boolean
XWikiRightServiceImpl. hasAccessLevel(String right, String username, String docname, XWikiContext context)
Deprecated.boolean
XWikiRightServiceImpl. hasAdminRights(XWikiContext context)
Deprecated.boolean
XWikiRightServiceImpl. hasProgrammingRights(XWikiDocument doc, XWikiContext context)
Deprecated.boolean
XWikiRightServiceImpl. hasProgrammingRights(XWikiContext context)
Deprecated.boolean
XWikiRightServiceImpl. hasWikiAdminRights(XWikiContext context)
Deprecated.void
XWikiGroupServiceImpl. init(XWiki xwiki, XWikiContext context)
void
XWikiGroupServiceImpl. initCache(int iCapacity, XWikiContext context)
void
XWikiGroupServiceImpl. initCache(XWikiContext context)
protected boolean
XWikiGroupServiceImpl. isAllGroupImplicit(XWikiContext context)
Check whether the configuration specifies that every user is implicitly in XWikiAllGroup.List<String>
XWikiGroupServiceImpl. listAllGroups(XWikiContext context)
Deprecated.List<String>
XWikiRightServiceImpl. listAllLevels(XWikiContext context)
Deprecated.Collection<String>
XWikiGroupServiceImpl. listGroupsForUser(String member, XWikiContext context)
Deprecated.List<String>
XWikiGroupServiceImpl. listMemberForGroup(String group, XWikiContext context)
Deprecated.boolean
MyBasicAuthenticator. processLogin(String username, String password, String rememberme, org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
boolean
MyBasicAuthenticator. processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
boolean
MyFormAuthenticator. processLogin(String username, String password, String rememberme, org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
Process any login information passed in parameter (username, password).boolean
MyFormAuthenticator. processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
Process any login information that was included in the request, if any.boolean
XWikiAuthenticator. processLogin(String username, String password, String rememberme, org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
boolean
XWikiAuthenticator. processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
void
XWikiGroupServiceImpl. removeUserOrGroupFromAllGroups(String memberWiki, String memberSpace, String memberName, XWikiContext context)
void
XWikiGroupServiceImpl. replaceMemberInAllGroups(DocumentReference memberSourceReference, DocumentReference memberTargetReference, XWikiContext context)
void
GroovyAuthServiceImpl. showLogin(XWikiContext context)
void
MyBasicAuthenticator. showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
void
MyFormAuthenticator. showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
Show the login page.void
XWikiAuthenticator. showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context)
void
XWikiAuthServiceImpl. showLogin(XWikiContext context)
protected String
XWikiAuthServiceImpl. stripContextPathFromURL(URL url, XWikiContext context)
The authentication library we are using (SecurityFilter) requires that its URLs do not contain the context path, in order to be usable withRequestDispatcher.forward
. -
Uses of XWikiContext in com.xpn.xwiki.util
Methods in com.xpn.xwiki.util that return XWikiContext Modifier and Type Method Description XWikiContext
XWikiStubContextProvider. createStubContext()
Methods in com.xpn.xwiki.util with parameters of type XWikiContext Modifier and Type Method Description static String
Util. decodeURI(String text, XWikiContext context)
Decodes aapplication/x-www-form-urlencoded
string, the reverse ofUtil.encodeURI(String, XWikiContext)
.static String
Util. encodeURI(String text, XWikiContext context)
Translates a string intoapplication/x-www-form-urlencoded
format, so that it can be safely used in URIs, as a parameter value in a query string or as a segment in the URI path.static Map<String,Map<String,Object>>
TOCGenerator. generateTOC(String content, int init, int max, boolean numbered, XWikiContext context)
static javax.servlet.http.Cookie
Util. getCookie(String cookieName, XWikiContext context)
static String
Util. getHTMLExceptionMessage(XWikiException xe, XWikiContext context)
static MonitorPlugin
Util. getMonitorPlugin(XWikiContext context)
static String
Util. getName(String name, XWikiContext context)
void
XWikiStubContextProvider. initialize(XWikiContext context)
Initialize a stub context from a real context.static String
TOCGenerator. makeHeadingID(String text, int occurence, XWikiContext context)
Deprecated.useIdGenerator
instead -
Uses of XWikiContext in com.xpn.xwiki.validation
Methods in com.xpn.xwiki.validation with parameters of type XWikiContext Modifier and Type Method Description void
XWikiValidationStatus. addError(String className, String propName, String propPrettyName, String validationMessage, XWikiContext context)
static void
XWikiValidationStatus. addErrorToContext(String className, String propName, String propPrettyName, String validationMessage, XWikiContext context)
void
XWikiValidationStatus. addException(String className, String propName, Throwable e, XWikiContext context)
static void
XWikiValidationStatus. addExceptionToContext(String className, String propName, Throwable e, XWikiContext context)
boolean
XWikiDefaultValidation. validateDocument(XWikiDocument doc, XWikiContext context)
boolean
XWikiValidationInterface. validateDocument(XWikiDocument doc, XWikiContext context)
boolean
XWikiDefaultValidation. validateObject(BaseObject object, XWikiContext context)
boolean
XWikiValidationInterface. validateObject(BaseObject object, XWikiContext context)
-
Uses of XWikiContext in com.xpn.xwiki.web
Fields in com.xpn.xwiki.web declared as XWikiContext Modifier and Type Field Description protected XWikiContext
XWikiMessageTool. context
Deprecated.Methods in com.xpn.xwiki.web that return XWikiContext Modifier and Type Method Description static XWikiContext
Utils. getContext()
Helper method for obtaining a valid xcontext from the execution context.protected XWikiContext
XWikiMessageTool. getXWikiContext()
Deprecated.protected XWikiContext
XWikiAction. initializeXWikiContext(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
protected XWikiContext
XWikiAction. initializeXWikiContext(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, XWikiForm form)
static XWikiContext
Utils. prepareContext(String action, XWikiRequest request, XWikiResponse response, XWikiEngineContext engine_context)
Methods in com.xpn.xwiki.web with parameters of type XWikiContext Modifier and Type Method Description boolean
AbstractPropChangeAction. action(XWikiContext context)
Tries to change the specified property, and redirect back to the class editor (or the specifiedxredirect
location).boolean
CancelAction. action(XWikiContext context)
boolean
CommentAddAction. action(XWikiContext context)
boolean
CommentSaveAction. action(XWikiContext context)
boolean
DeleteAction. action(XWikiContext context)
boolean
DeleteAttachmentAction. action(XWikiContext context)
boolean
DeleteVersionsAction. action(XWikiContext context)
boolean
GetAction. action(XWikiContext context)
boolean
LockAction. action(XWikiContext context)
boolean
LoginAction. action(XWikiContext context)
boolean
LoginErrorAction. action(XWikiContext context)
boolean
LoginSubmitAction. action(XWikiContext context)
boolean
LogoutAction. action(XWikiContext context)
boolean
ObjectAddAction. action(XWikiContext context)
boolean
ObjectRemoveAction. action(XWikiContext context)
boolean
ObjectsSynchronizeAction. action(XWikiContext context)
boolean
PreviewAction. action(XWikiContext context)
boolean
PropAddAction. action(XWikiContext context)
boolean
PropUpdateAction. action(XWikiContext context)
boolean
RedirectAction. action(XWikiContext context)
boolean
RegisterAction. action(XWikiContext context)
boolean
ResetVersionsAction. action(XWikiContext context)
boolean
RollbackAction. action(XWikiContext context)
boolean
SaveAction. action(XWikiContext context)
boolean
SaveAndContinueAction. action(XWikiContext context)
boolean
SkinAction. action(XWikiContext context)
boolean
UndeleteAction. action(XWikiContext context)
boolean
UploadAction. action(XWikiContext context)
boolean
XWikiAction. action(XWikiContext context)
protected void
XWikiServletURLFactory. addFileName(StringBuilder path, String fileName, boolean encode, XWikiContext context)
protected void
XWikiServletURLFactory. addFileName(StringBuilder path, String fileName, XWikiContext context)
protected void
XWikiAction. answerJSON(XWikiContext context, int status, Map<String,String> answer)
Answer to a request with a JSON content.static boolean
Utils. arePlaceholdersEnabled(XWikiContext context)
Check if placeholders are enabled in the current context.abstract void
AbstractPropChangeAction. changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context)
The method which does the actual modification of the property definition.void
PropDeleteAction. changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context)
void
PropDisableAction. changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context)
void
PropEnableAction. changePropertyDefinition(BaseClass xclass, String propertyName, XWikiContext context)
URL
ExportURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String xwikidb, XWikiContext context)
URL
XWikiDefaultURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, XWikiContext context)
URL
XWikiDefaultURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, XWikiContext context)
URL
XWikiServletURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, long recycleId, String querystring, String xwikidb, XWikiContext context)
URL
XWikiServletURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
URL
XWikiURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, XWikiContext context)
URL
XWikiURLFactory. createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
URL
ExportURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String xwikidb, XWikiContext context)
URL
XWikiDefaultURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, XWikiContext context)
URL
XWikiServletURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String xwikidb, XWikiContext context)
URL
XWikiURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, XWikiContext context)
URL
XWikiURLFactory. createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String xwikidb, XWikiContext context)
URL
XWikiDefaultURLFactory. createExternalURL(String spaces, String name, String action, String querystring, String anchor, XWikiContext context)
URL
XWikiServletURLFactory. createExternalURL(String spaces, String name, String action, String querystring, String anchor, String xwikidb, XWikiContext context)
URL
XWikiURLFactory. createExternalURL(String spaces, String name, String action, String querystring, String anchor, XWikiContext context)
URL
XWikiURLFactory. createExternalURL(String spaces, String name, String action, String querystring, String anchor, String xwikidb, XWikiContext context)
static String
Utils. createPlaceholder(String value, XWikiContext context)
Create a placeholder key for a string that should be protected from further processing.URL
ExportURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context)
URL
ExportURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiDefaultURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context)
URL
XWikiServletURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context)
Create an URL for the file resource.URL
XWikiURLFactory. createResourceURL(String filename, boolean forceSkinAction, XWikiContext context, Map<String,Object> queryParameters)
Create an URL for the file resource.URL
ExportURLFactory. createSkinURL(String filename, String skin, XWikiContext context)
URL
ExportURLFactory. createSkinURL(String filename, String skin, XWikiContext context, Map<String,Object> queryParameters)
URL
ExportURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context)
URL
ExportURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context, boolean skipSkinDirectory)
URL
ExportURLFactory. createSkinURL(String fileName, String spaces, String name, String wikiId, XWikiContext context)
URL
ExportURLFactory. createSkinURL(String fileName, String spaces, String name, String wikiId, XWikiContext context, boolean skipSkinDirectory)
URL
ExportURLFactory. createSkinURL(String filename, String spaces, String name, String xwikidb, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiDefaultURLFactory. createSkinURL(String filename, String skin, XWikiContext context)
URL
XWikiDefaultURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context)
URL
XWikiDefaultURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiDefaultURLFactory. createSkinURL(String filename, String spaces, String name, String xwikidb, XWikiContext context)
URL
XWikiServletURLFactory. createSkinURL(String filename, String skin, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiServletURLFactory. createSkinURL(String filename, String spaces, String name, String xwikidb, XWikiContext context, Map<String,Object> queryParameters)
URL
XWikiURLFactory. createSkinURL(String filename, String skin, XWikiContext context)
Create a skin URL for the given filename and skin directory.URL
XWikiURLFactory. createSkinURL(String filename, String skin, XWikiContext context, Map<String,Object> queryParameters)
Create an URL for the given filename in the given skin directory.URL
XWikiURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context)
Create an URL for the filename located in the spaces and with given repository.URL
XWikiURLFactory. createSkinURL(String filename, String spaces, String name, XWikiContext context, Map<String,Object> queryParameters)
Create an URL for the filename located in the spaces and with given repository.URL
XWikiURLFactory. createSkinURL(String filename, String spaces, String name, String xwikidb, XWikiContext context)
Create an URL for the filename located in the spaces and with given repository.URL
XWikiURLFactory. createSkinURL(String filename, String spaces, String name, String xwikidb, XWikiContext context, Map<String,Object> queryParameters)
Create an URL for the filename located in the spaces and with given repository.URL
XWikiServletURLFactory. createTemplateURL(String fileName, XWikiContext context)
URL
ExportURLFactory. createURL(String spaces, String name, String action, String querystring, String anchor, String xwikidb, XWikiContext context)
URL
ExportURLFactoryActionHandler. createURL(String spaces, String name, String queryString, String anchor, String wikiId, XWikiContext context, FilesystemExportContext exportContext)
URL
XWikiDefaultURLFactory. createURL(String spaces, String name, XWikiContext context)
URL
XWikiDefaultURLFactory. createURL(String spaces, String name, String action, XWikiContext context)
URL
XWikiDefaultURLFactory. createURL(String spaces, String name, String action, String querystring, String anchor, XWikiContext context)
URL
XWikiServletURLFactory. createURL(String spaces, String name, String action, boolean redirect, XWikiContext context)
URL
XWikiServletURLFactory. createURL(String spaces, String name, String action, String querystring, String anchor, String xwikidb, XWikiContext context)
URL
XWikiURLFactory. createURL(String spaces, String name, XWikiContext context)
URL
XWikiURLFactory. createURL(String spaces, String name, String action, boolean redirect, XWikiContext context)
URL
XWikiURLFactory. createURL(String spaces, String name, String action, XWikiContext context)
URL
XWikiURLFactory. createURL(String spaces, String name, String action, String querystring, String anchor, XWikiContext context)
URL
XWikiURLFactory. createURL(String spaces, String name, String action, String querystring, String anchor, String xwikidb, XWikiContext context)
XWikiURLFactory
XWikiURLFactoryService. createURLFactory(int mode, XWikiContext context)
XWikiURLFactory
XWikiURLFactoryServiceImpl. createURLFactory(int mode, XWikiContext context)
protected boolean
XWikiAction. csrfTokenCheck(XWikiContext context)
Perform CSRF check and redirect to the resubmission page if needed.protected boolean
XWikiAction. csrfTokenCheck(XWikiContext context, boolean jsonAnswer)
Perform CSRF check and redirect to the resubmission page if needed.static String
Utils. decode(String text, XWikiContext context)
Deprecated.replaced byUtil.decodeURI(String, XWikiContext)
since 1.3M2protected boolean
DeleteAction. delete(XWikiContext context)
protected boolean
DeleteSpaceAction. delete(XWikiContext context)
protected boolean
DeleteAction. deleteDocument(EntityReference entityReference, XWikiContext context, boolean shouldSkipRecycleBin, DocumentReference newBacklinkTarget, boolean updateLinks, boolean autoRedirect)
Create a job to delete an entity.static void
Utils. disablePlaceholders(XWikiContext context)
Disable placeholder support in the current request context.static void
Utils. enablePlaceholders(XWikiContext context)
Enable placeholder support in the current request context.static String
Utils. encode(String text, XWikiContext context)
Deprecated.replaced byUtil.encodeURI(String, XWikiContext)
since 1.3M2void
XWikiAction. execute(XWikiContext context)
XWikiAttachment
XWikiServletURLFactory. findAttachmentForDocRevision(XWikiDocument doc, String docRevision, String filename, XWikiContext context)
long
XWikiServletURLFactory. findDeletedAttachmentForDocRevision(XWikiDocument doc, String docRevision, String filename, XWikiContext context)
protected URL
XWikiServletURLFactory. getDefaultURL(String wikiId, XWikiContext xcontext)
protected String
UploadAction. getFileName(String fieldName, FileUploadPlugin fileupload, XWikiContext context)
Extract the corresponding attachment name for a given file field.protected BaseObject
ObjectRemoveAction. getObject(XWikiDocument doc, XWikiContext context)
static String
Utils. getRedirect(String action, XWikiContext context)
Retrieve the URL to which the client should be redirected after the successful completion of the requested action.static String
Utils. getRedirect(String action, String queryString, XWikiContext context)
Retrieve the URL to which the client should be redirected after the successful completion of the requested action.URL
XWikiDefaultURLFactory. getRequestURL(XWikiContext context)
URL
XWikiServletURLFactory. getRequestURL(XWikiContext context)
URL
XWikiURLFactory. getRequestURL(XWikiContext context)
URL
XWikiServletURLFactory. getServerURL(XWikiContext context)
URL
XWikiServletURLFactory. getServerURL(String wikiId, XWikiContext context)
Get the url of the server EG: http://www.xwiki.org/ This function sometimes will return a URL with a trailing / and other times not.URL
XWikiURLFactory. getServerURL(XWikiContext context)
Generate the base external URL to access this server.protected XWikiDocument
XWikiAction. getTranslatedDocument(XWikiDocument doc, String language, XWikiContext context)
Gets the translated version of a document, in the specified language.String
ExportURLFactory. getURL(URL url, XWikiContext context)
String
ExternalServletURLFactory. getURL(URL url, XWikiContext context)
String
XWikiDefaultURLFactory. getURL(URL url, XWikiContext context)
String
XWikiServletURLFactory. getURL(URL url, XWikiContext context)
Converts a URL to a relative URL if it's a XWiki URL (keeping only the path + query string + anchor) and leave the URL unchanged if it's an external URL.String
XWikiURLFactory. getURL(URL url, XWikiContext context)
Converts a URL to a string representation.static FileUploadPlugin
Utils. handleMultipart(javax.servlet.http.HttpServletRequest request, XWikiContext context)
Process a multi-part request, extracting all the uploaded files.protected void
XWikiAction. handleRevision(XWikiContext context)
void
ExportURLFactory. init(Collection<String> exportedPages, File exportDir, XWikiContext context)
Deprecated.starting with 8.4.5/9.0, useExportURLFactory.init(Collection, File, FilesystemExportContext, XWikiContext)
void
ExportURLFactory. init(Collection<DocumentReference> exportedPages, File exportDir, FilesystemExportContext exportContext, XWikiContext context)
Init the url factory.void
XWikiServletURLFactory. init(XWikiContext context)
void
XWikiURLFactory. init(XWikiContext context)
protected void
XWikiAction. initializeContainerComponent(XWikiContext context)
protected void
XWikiContextInitializationFilter. initializeContainerComponent(XWikiContext context)
static Boolean
Utils. isAjaxRequest(XWikiContext context)
Verify if the current request is an AJAX request.protected boolean
XWikiServletURLFactory. isContextDoc(String wiki, String spaces, String name, XWikiContext context)
Check if a document is the original context document.protected static URL
XWikiServletURLFactory. normalizeURL(String url, XWikiContext context)
Encodes the passed URL and offers the possibility for Servlet Filter to perform URL rewriting (this is used for example by Tuckey's URLRewriteFilter for rewriting outbound URLs, see http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs).protected static URL
XWikiServletURLFactory. normalizeURL(URL url, XWikiContext context)
Encodes the passed URL and offers the possibility for Servlet Filter to perform URL rewriting (this is used for example by Tuckey's URLRewriteFilter for rewriting outbound URLs, see http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs).static void
Utils. parseTemplate(String template, boolean write, XWikiContext context)
Generate the response by parsing a velocity template and (optionally) printing the result to theResponse
.static void
Utils. parseTemplate(String template, XWikiContext context)
Generate the response by parsing a velocity template and printing the result to theResponse
.protected XWikiDocument
EditAction. prepareEditedDocument(XWikiContext context)
Determines the edited document (translation) and updates it based on the template specified on the request and any additional request parameters that overwrite the default values from the template.boolean
PropUpdateAction. propUpdate(XWikiContext context)
protected boolean
XWikiAction. readFromTemplate(XWikiDocument document, String template, XWikiContext context)
Helper used by various actions to initialize a document by copying a template to it.String
AbstractPropChangeAction. render(XWikiContext context)
String
AdminAction. render(XWikiContext context)
String
AttachAction. render(XWikiContext context)
String
CommentAddAction. render(XWikiContext context)
String
CreateAction. render(XWikiContext context)
String
DeleteAction. render(XWikiContext context)
String
DeleteAttachmentAction. render(XWikiContext context)
String
DeleteSpaceAction. render(XWikiContext context)
String
DeleteVersionsAction. render(XWikiContext context)
String
DownloadAction. render(XWikiContext context)
String
DownloadRevAction. render(XWikiContext context)
String
EditAction. render(XWikiContext context)
String
ExportAction. render(XWikiContext context)
String
GetAction. render(XWikiContext context)
String
ImportAction. render(XWikiContext context)
String
LoginAction. render(XWikiContext context)
String
LoginErrorAction. render(XWikiContext context)
String
LoginSubmitAction. render(XWikiContext context)
String
ObjectRemoveAction. render(XWikiContext context)
String
ObjectsSynchronizeAction. render(XWikiContext context)
String
PreviewAction. render(XWikiContext context)
String
PropAddAction. render(XWikiContext context)
String
PropUpdateAction. render(XWikiContext context)
String
RegisterAction. render(XWikiContext context)
String
ResetVersionsAction. render(XWikiContext context)
String
RollbackAction. render(XWikiContext context)
String
SaveAction. render(XWikiContext context)
String
SaveAndContinueAction. render(XWikiContext context)
String
SkinAction. render(XWikiContext context)
String
SkinAction. render(String path, XWikiContext context)
String
SVGAction. render(XWikiContext context)
String
UndeleteAction. render(XWikiContext context)
String
UnknownAction. render(XWikiContext context)
String
UploadAction. render(XWikiContext context)
String
ViewAction. render(XWikiContext context)
String
ViewAttachRevAction. render(XWikiContext context)
String
XWikiAction. render(XWikiContext context)
boolean
SkinAction. renderFileFromAttachment(String filename, XWikiDocument doc, XWikiContext context)
Tries to serve the content of an attachment as a skin file.boolean
SkinAction. renderFileFromObjectField(String filename, XWikiDocument doc, XWikiContext context)
Tries to serve the content of an XWikiSkins object field as a skin file.static String
Utils. replacePlaceholders(String content, XWikiContext context)
Insert back the replaced strings.boolean
SaveAction. save(XWikiContext context)
Saves the current document, updated according to the parameters sent in the request.protected void
DownloadAction. sendContent(XWikiAttachment attachment, XWikiRequest request, XWikiResponse response, XWikiContext context)
Send the attachment content in the response.protected boolean
XWikiAction. sendGlobalRedirect(XWikiResponse response, String url, XWikiContext context)
Send redirection based on a regexp pattern (if any) set at the main wiki level.boolean
UploadAction. uploadAttachment(String fieldName, String filename, FileUploadPlugin fileupload, XWikiDocument doc, XWikiContext context)
Attach a file to the current document.protected void
XWikiAction. writeAjaxErrorResponse(int httpStatusCode, String message, XWikiContext context)
Write an error response to an ajax request.Constructors in com.xpn.xwiki.web with parameters of type XWikiContext Constructor Description CreateActionRequestHandler(XWikiContext context)
ExternalServletURLFactory(XWikiContext context)
Old-school constructor using the XWikiContext to initialize the factory.XWikiMessageTool(ResourceBundle bundle, XWikiContext context)
Deprecated.XWikiServletURLFactory(XWikiContext context)
Creates a new URL factory that uses the server URL and context path specified by the given XWiki context. -
Uses of XWikiContext in org.xwiki.security.authservice
Methods in org.xwiki.security.authservice with parameters of type XWikiContext Modifier and Type Method Description Principal
AbstractXWikiAuthServiceWrapper. authenticate(String username, String password, XWikiContext context)
XWikiUser
AbstractXWikiAuthServiceWrapper. checkAuth(XWikiContext context)
XWikiUser
AbstractXWikiAuthServiceWrapper. checkAuth(String username, String password, String rememberme, XWikiContext context)
void
AbstractXWikiAuthServiceWrapper. showLogin(XWikiContext context)
-