@Test public void testGetCurrentContentSyntaxId() { XWikiDocument doc1 = new XWikiDocument(); doc1.setSyntax(Syntax.CREOLE_1_0); XWikiDocument doc2 = new XWikiDocument(); doc2.setSyntax(Syntax.PLAIN_1_0); assertNull(this.xwiki.getCurrentContentSyntaxId(null, this.oldcore.getXWikiContext())); assertEquals("syntaxId", this.xwiki.getCurrentContentSyntaxId("syntaxId", this.oldcore.getXWikiContext())); this.oldcore.getXWikiContext().setDoc(doc1); assertEquals(Syntax.CREOLE_1_0.toIdString(), this.xwiki.getCurrentContentSyntaxId(null, this.oldcore.getXWikiContext())); this.oldcore.getXWikiContext().put("sdoc", doc2); assertEquals(Syntax.PLAIN_1_0.toIdString(), this.xwiki.getCurrentContentSyntaxId(null, this.oldcore.getXWikiContext())); }
public String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context) { String syntaxId = getCurrentContentSyntaxIdInternal(context); if (syntaxId == null) { syntaxId = defaultSyntaxId; } return syntaxId; }
XWiki implements EventListener { public String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context) { String syntaxId = getCurrentContentSyntaxIdInternal(context); if (syntaxId == null) { syntaxId = defaultSyntaxId; } return syntaxId; } }
XWiki implements EventListener { public String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context) { String syntaxId = getCurrentContentSyntaxIdInternal(context); if (syntaxId == null) { syntaxId = defaultSyntaxId; } return syntaxId; } XWiki();  XWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate);  XWiki(XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(InputStream is, XWikiContext context, XWikiEngineContext engine_context); }
XWiki implements EventListener { public String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context) { String syntaxId = getCurrentContentSyntaxIdInternal(context); if (syntaxId == null) { syntaxId = defaultSyntaxId; } return syntaxId; } XWiki();  XWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate);  XWiki(XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(InputStream is, XWikiContext context, XWikiEngineContext engine_context); static XWiki getMainXWiki(XWikiContext context); static XWiki getMainXWiki(boolean wait, XWikiContext context); static boolean isInitializing(XWikiContext xcontext); static XWiki getXWiki(XWikiContext context); static XWiki getXWiki(boolean wait, XWikiContext xcontext); Job getWikiInitializerJob(String wikiId); boolean initializeWiki(String wikiId, boolean wait, XWikiContext xcontext); static URL getRequestURL(XWikiRequest request); static Object callPrivateMethod(Object obj, String methodName); static Object callPrivateMethod(Object obj, String methodName, Class<?>[] classes, Object[] args); static HttpClient getHttpClient(int timeout, String userAgent); @Deprecated static Object getPrivateField(Object obj, String fieldName); static String getServerWikiPage(String servername); static String getTextArea(String content, XWikiContext context); void initXWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate); @Deprecated void initXWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engineContext, boolean noupdate); void initializeMandatoryDocuments(XWikiContext context); XWikiStoreInterface getNotCacheStore(); XWikiHibernateStore getHibernateStore(); @Deprecated void updateDatabase(String wikiId, XWikiContext context); @Deprecated void updateDatabase(String wikiId, boolean force, XWikiContext context); @Deprecated void updateDatabase(String wikiId, boolean force, boolean initDocuments, XWikiContext context); @Deprecated List<String> getVirtualWikiList(); @Deprecated List<String> getVirtualWikisDatabaseNames(XWikiContext context); @Deprecated Cache<DocumentReference> getVirtualWikiCache(); String getWikiOwner(String wikiName, XWikiContext context); @SuppressWarnings("deprecation") String getVersion(); URL getResource(String s); InputStream getResourceAsStream(String s); String getResourceContent(String name); Date getResourceLastModificationDate(String name); byte[] getResourceContentAsBytes(String name); boolean resourceExists(String name); String getRealPath(String path); String ParamAsRealPath(String key); String ParamAsRealPath(String key, XWikiContext context); String ParamAsRealPathVerified(String param); XWikiStoreInterface getStore(); @Deprecated XWikiAttachmentStoreInterface getAttachmentStore(); XWikiAttachmentStoreInterface getDefaultAttachmentContentStore(); AttachmentVersioningStore getDefaultAttachmentArchiveStore(); @Deprecated AttachmentVersioningStore getAttachmentVersioningStore(); XWikiVersioningStoreInterface getVersioningStore(); XWikiRecycleBinStoreInterface getRecycleBinStore(); AttachmentRecycleBinStore getAttachmentRecycleBinStore(); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment,
        XWikiContext context); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment,
        boolean isMinorEdit, XWikiContext context); void saveDocument(XWikiDocument doc, XWikiContext context); void saveDocument(XWikiDocument doc, String comment, XWikiContext context); void saveDocument(XWikiDocument document, String comment, boolean isMinorEdit, XWikiContext context); XWikiDocument getDocument(EntityReference reference, XWikiContext context); XWikiDocument getDocument(String reference, EntityType type, XWikiContext xcontext); XWikiDocument getDocument(XWikiDocument doc, XWikiContext context); @Deprecated XWikiDocument getDocument(DocumentReference reference, String revision, XWikiContext context); @Deprecated XWikiDocument getDocument(XWikiDocument document, String revision, XWikiContext context); XWikiDocument getDocument(DocumentReference reference, XWikiContext context); XWikiDocument getDocument(PageReference reference, XWikiContext context); DocumentReference getDocumentReference(EntityReference reference, XWikiContext context); @Deprecated XWikiDocument getDocument(String fullname, XWikiContext context); @Deprecated XWikiDocument getDocument(String spaces, String fullname, XWikiContext context); XWikiDeletedDocument[] getDeletedDocuments(String fullname, String locale, XWikiContext context); XWikiDeletedDocument[] getDeletedDocuments(String batchId, XWikiContext context); @Deprecated XWikiDeletedDocument getDeletedDocument(String fullname, String locale, int index, XWikiContext context); XWikiDeletedDocument getDeletedDocument(long index, XWikiContext context); List<DeletedAttachment> getDeletedAttachments(String docName, XWikiContext context); List<DeletedAttachment> getDeletedAttachments(String docName, String filename, XWikiContext context); DeletedAttachment getDeletedAttachment(String id, XWikiContext context); MetaClass getMetaclass(); void setMetaclass(MetaClass metaclass); List<String> getClassList(XWikiContext context); List<T> search(String sql, XWikiContext context); List<T> search(String sql, int nb, int start, XWikiContext context); List<T> search(String sql, Object[][] whereParams, XWikiContext context); List<T> search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context); @Deprecated String parseContent(String content, XWikiContext context); @Deprecated String parseTemplate(String template, XWikiContext context); @Deprecated String evaluateTemplate(String template, XWikiContext context); @Deprecated String parseTemplate(String template, String skinId, XWikiContext context); String renderTemplate(String template, String skin, XWikiContext context); String renderTemplate(String template, XWikiContext context); String invokeServletAndReturnAsString(String url, XWikiContext xwikiContext); String getIconURL(String iconName, XWikiContext context); String getSkinFile(String filename, XWikiContext context); String getSkinFile(String filename, boolean forceSkinAction, XWikiContext context); String getSkinFile(String filename, String skin, XWikiContext context); String getSkinFile(String fileName, String skinId, boolean forceSkinAction, XWikiContext context); @Deprecated String getSkin(XWikiContext context); String getSkinPreference(String prefname, XWikiContext context); String getSkinPreference(String prefname, String defaultValue, XWikiContext context); @Deprecated String getDefaultBaseSkin(XWikiContext context); @Deprecated String getBaseSkin(XWikiContext context); @Deprecated String getBaseSkin(XWikiContext context, boolean fromRenderSkin); @Deprecated String getBaseSkin(String skin, XWikiContext context); String getSpaceCopyright(XWikiContext context); String getXWikiPreference(String prefname, XWikiContext context); String getXWikiPreference(String prefname, String fallbackParam, String defaultValue, XWikiContext context); String getXWikiPreference(String prefname, String wiki, String fallbackParam, String defaultValue,
        XWikiContext xcontext); String getXWikiPreference(String prefname, String defaultValue, XWikiContext context); String getSpacePreference(String preference, XWikiContext context); String getSpacePreference(String preference, String defaultValue, XWikiContext context); @Deprecated String getSpacePreference(String preference, String space, String defaultValue, XWikiContext context); String getSpacePreference(String preferenceKey, SpaceReference spaceReference, XWikiContext context); String getSpacePreference(String preferenceKey, SpaceReference spaceReference, String defaultValue,
        XWikiContext context); String getUserPreference(String prefname, XWikiContext context); String getUserPreferenceFromCookie(String prefname, XWikiContext context); String getUserPreference(String prefname, boolean useCookie, XWikiContext context); Locale getLocalePreference(XWikiContext context); @Deprecated String getLanguagePreference(XWikiContext context); @Deprecated String getDefaultLanguage(XWikiContext xcontext); Locale getDefaultLocale(XWikiContext xcontext); List<Locale> getAvailableLocales(XWikiContext xcontext); Locale getDocLocalePreferenceNew(XWikiContext context); @Deprecated // TODO: move implementation to #getDocLocalePreferenceNew String getDocLanguagePreferenceNew(XWikiContext context); Locale getInterfaceLocalePreference(XWikiContext context); @Deprecated // TODO: move implementation to #getInterfaceLocalePreference String getInterfaceLanguagePreference(XWikiContext context); long getXWikiPreferenceAsLong(String preference, XWikiContext context); long getSpacePreferenceAsLong(String preference, XWikiContext context); long getXWikiPreferenceAsLong(String preference, long defaultValue, XWikiContext context); long getXWikiPreferenceAsLong(String preference, String fallbackParameter, long defaultValue,
        XWikiContext context); long getSpacePreferenceAsLong(String preference, long defaultValue, XWikiContext context); long getUserPreferenceAsLong(String preference, XWikiContext context); int getXWikiPreferenceAsInt(String preference, XWikiContext context); int getSpacePreferenceAsInt(String preference, XWikiContext context); int getXWikiPreferenceAsInt(String preference, int defaultValue, XWikiContext context); int getXWikiPreferenceAsInt(String preference, String fallbackParameter, int defaultValue,
        XWikiContext context); int getSpacePreferenceAsInt(String preference, int defaultValue, XWikiContext context); int getUserPreferenceAsInt(String prefname, XWikiContext context); void flushCache(XWikiContext context); XWikiPluginManager getPluginManager(); void setPluginManager(XWikiPluginManager pluginManager); void setStore(XWikiStoreInterface store); void setDefaultAttachmentContentStore(XWikiAttachmentStoreInterface attachmentContentStore); @Deprecated void setAttachmentStore(XWikiAttachmentStoreInterface attachmentStore); void setDefaultAttachmentArchiveStore(AttachmentVersioningStore attachmentArchiveStore); @Deprecated void setAttachmentVersioningStore(AttachmentVersioningStore attachmentArchiveStore); void setVersioningStore(XWikiVersioningStoreInterface versioningStore); void setRecycleBinStore(XWikiRecycleBinStoreInterface recycleBinStore); void setAttachmentRecycleBinStore(AttachmentRecycleBinStore attachmentRecycleBinStore); void setCriteriaService(XWikiCriteriaService criteriaService); void setVersion(String version); BaseClass getTagClass(XWikiContext context); @Deprecated BaseClass getSheetClass(XWikiContext context); BaseClass getEditModeClass(XWikiContext context); BaseClass getUserClass(XWikiContext context); BaseClass getRedirectClass(XWikiContext context); BaseClass getPrefsClass(XWikiContext context); BaseClass getGroupClass(XWikiContext context); BaseClass getRightsClass(String pagename, XWikiContext context); BaseClass getRightsClass(XWikiContext context); BaseClass getGlobalRightsClass(XWikiContext context); BaseClass getCommentsClass(XWikiContext context); BaseClass getSkinClass(XWikiContext context); int createUser(XWikiContext context); int validateUser(boolean withConfirmEmail, XWikiContext context); int createUser(boolean withValidation, String userRights, XWikiContext context); boolean createEmptyUser(String xwikiname, String userRights, XWikiContext context); void sendConfirmationEmail(String xwikiname, String password, String email, String message,
        String contentfield, XWikiContext context); void sendValidationEmail(String xwikiname, String password, String email, String validkey,
        String contentfield, XWikiContext context); void sendValidationEmail(String xwikiname, String password, String email, String addfieldname,
        String addfieldvalue, String contentfield, XWikiContext context); String generateRandomString(int size); String generateValidationKey(int size); int createUser(String userName, Map<String, ?> map, XWikiContext context); int createUser(String userName, Map<String, ?> map, String userRights, XWikiContext context); @Deprecated int createUser(String userName, Map<String, ?> map, String parent, String content, String syntaxId,
        String userRights, XWikiContext context); int createUser(String userName, Map<String, ?> map, EntityReference parentReference, String content,
        Syntax syntax, String userRights, XWikiContext context); @Deprecated int createUser(String xwikiname, Map<String, ?> map, String parent, String content, String userRights,
        XWikiContext context); void setUserDefaultGroup(String fullwikiname, XWikiContext context); void protectUserPage(String userName, String userRights, XWikiDocument doc, XWikiContext context); User getUser(XWikiContext context); @Deprecated User getUser(String username, XWikiContext context); @Unstable User getUser(DocumentReference userReference, XWikiContext context); void prepareResources(XWikiContext context); XWikiUser checkAuth(XWikiContext context); boolean checkAccess(String action, XWikiDocument doc, XWikiContext context); String include(String topic, boolean isForm, XWikiContext context); void deleteDocument(XWikiDocument doc, XWikiContext context); void deleteDocument(XWikiDocument doc, boolean totrash, XWikiContext context); void checkDeletingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context); String getDatabase(); void setDatabase(String database); void gc(); long freeMemory(); long totalMemory(); long maxMemory(); String[] split(String str, String sep); @Deprecated String printStrackTrace(Throwable e); @Unstable boolean renameDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean overwrite, List<DocumentReference> backlinkDocumentReferences,
        List<DocumentReference> childDocumentReferences, XWikiContext context); @Deprecated @Unstable void renameByCopyAndDelete(XWikiDocument sourceDoc, DocumentReference newDocumentReference,
        List<DocumentReference> backlinkDocumentReferences, List<DocumentReference> childDocumentReferences,
        XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean reset, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean reset, boolean force, boolean resetCreationData, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, boolean force, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, boolean force, boolean resetCreationData, XWikiContext context); int copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale,
        XWikiContext context); int copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale, boolean clean,
        XWikiContext context); @Deprecated int copyWiki(String sourceWiki, String targetWiki, String locale, XWikiContext context); @Deprecated int copyWiki(String sourceWiki, String targetWiki, String locale, boolean clean, XWikiContext context); String getEncoding(); URL getServerURL(String wikiId, XWikiContext xcontext); String getServletPath(String wikiName, XWikiContext context); String getWebAppPath(XWikiContext context); String getURL(EntityReference entityReference, String action, String queryString, String anchor,
        XWikiContext context); String getURL(EntityReference reference, String action, XWikiContext context); String getURL(EntityReference reference, XWikiContext context); String getURL(DocumentReference documentReference, String action, String queryString, String anchor,
        XWikiContext context); @Deprecated String getURL(String fullname, String action, String queryString, String anchor, XWikiContext context); String getURL(String fullname, String action, String querystring, XWikiContext context); String getURL(DocumentReference reference, String action, XWikiContext context); @Deprecated String getURL(String fullname, String action, XWikiContext context); String getExternalURL(String fullname, String action, XWikiContext context); String getExternalURL(String fullname, String action, String querystring, XWikiContext context); String getExternalURL(DocumentReference documentReference, String action, String querystring, String anchor,
        XWikiContext context); String getAttachmentURL(AttachmentReference attachmentReference, String action, String queryString,
        XWikiContext context); String getAttachmentURL(AttachmentReference attachmentReference, String queryString, XWikiContext context); String getAttachmentRevisionURL(AttachmentReference attachmentReference, String revision, String queryString,
        XWikiContext context); String getAttachmentURL(String fullname, String filename, XWikiContext context); String getAttachmentURL(String fullname, String filename, String queryString, XWikiContext context); int getTimeDelta(long time); boolean isMultiLingual(XWikiContext context); boolean isLDAP(); boolean isAllGroupImplicit(); @Deprecated int checkActive(XWikiContext context); @Deprecated int checkActive(String user, XWikiContext context); DocumentReference getDocumentReference(XWikiRequest request, XWikiContext context); static String stripSegmentFromPath(String path, String segment); boolean prepareDocuments(XWikiRequest request, XWikiContext context, VelocityContext vcontext); void setPhonyDocument(DocumentReference reference, XWikiContext context); @Deprecated void setPhonyDocument(DocumentReference reference, XWikiContext context, VelocityContext vcontext); @Deprecated void setPhonyDocument(String docName, XWikiContext context, VelocityContext vcontext); XWikiEngineContext getEngineContext(); void setEngineContext(XWikiEngineContext engine_context); void setAuthService(XWikiAuthService authService); void setRightService(XWikiRightService rightService); XWikiGroupService getGroupService(XWikiContext context); void setGroupService(XWikiGroupService groupService); XWikiAuthService getAuthService(); XWikiRightService getRightService(); XWikiStatsService getStatsService(XWikiContext context); XWikiURLFactoryService getURLFactoryService(); XWikiCriteriaService getCriteriaService(XWikiContext context); ZipOutputStream getZipOutputStream(XWikiContext context); String getRefererText(String referer, XWikiContext context); boolean isMySQL(); String getFullNameSQL(); String getFullNameSQL(boolean newFullName); String getUserName(String user, XWikiContext context); String getUserName(String user, String format, XWikiContext context); String getUserName(String user, String format, boolean link, XWikiContext context); String getUserName(DocumentReference userReference, String format, boolean link, boolean escapeXML,
        XWikiContext context); String evaluateVelocity(String content, String namespace, VelocityContext vcontext); String evaluateVelocity(String content, String name); String getPlainUserName(DocumentReference userReference, XWikiContext context); boolean hasCentralizedAuthentication(XWikiContext context); String getLocalUserName(String user, XWikiContext context); String getLocalUserName(String user, String format, XWikiContext context); String getLocalUserName(String user, String format, boolean link, XWikiContext context); String formatDate(Date date, String format, XWikiContext context); String getUserTimeZone(XWikiContext context); @Deprecated boolean exists(String fullname, XWikiContext context); boolean exists(DocumentReference documentReference, XWikiContext context); String getAdType(XWikiContext context); String getAdClientId(XWikiContext context); @Deprecated XWikiPluginInterface getPlugin(String name, XWikiContext context); @Deprecated Api getPluginApi(String name, XWikiContext context); int getHttpTimeout(XWikiContext context); String getHttpUserAgent(XWikiContext context); String getURLContent(String surl, XWikiContext context); String getURLContent(String surl, int timeout, String userAgent); String getURLContent(String surl, String username, String password, XWikiContext context); String getURLContent(String surl, String username, String password, int timeout, String userAgent); byte[] getURLContentAsBytes(String surl, XWikiContext context); byte[] getURLContentAsBytes(String surl, int timeout, String userAgent); byte[] getURLContentAsBytes(String surl, String username, String password, XWikiContext context); byte[] getURLContentAsBytes(String surl, String username, String password, int timeout, String userAgent); @Deprecated List<String> getSpaces(XWikiContext context); @Deprecated List<String> getSpaceDocsName(String spaceReference, XWikiContext context); List<String> getIncludedMacros(String defaultSpace, String content, XWikiContext context); boolean isReadOnly(); void setReadOnly(boolean readOnly); void deleteAllDocuments(XWikiDocument doc, XWikiContext context); void deleteAllDocuments(XWikiDocument doc, boolean toTrash, XWikiContext context); void refreshLinks(XWikiContext context); boolean hasBacklinks(XWikiContext context); boolean hasTags(XWikiContext context); boolean hasCustomMappings(); boolean hasDynamicCustomMappings(); String getDefaultSpace(XWikiContext context); boolean showViewAction(XWikiContext context); boolean useDefaultAction(XWikiContext context); String getDefaultPage(XWikiContext context); boolean hasEditComment(XWikiContext context); boolean isEditCommentFieldHidden(XWikiContext context); boolean isEditCommentSuggested(XWikiContext context); boolean isEditCommentMandatory(XWikiContext context); boolean hasMinorEdit(XWikiContext context); boolean hasRecycleBin(XWikiContext context); boolean hasAttachmentRecycleBin(XWikiContext context); BaseClass getXClass(DocumentReference documentReference, XWikiContext context); @Deprecated BaseClass getClass(String fullName, XWikiContext context); String getEditorPreference(XWikiContext context); Object parseGroovyFromString(String script, XWikiContext xcontext); Object parseGroovyFromString(String script, String jarWikiPage, XWikiContext xcontext); Object parseGroovyFromPage(String fullName, XWikiContext context); Object parseGroovyFromPage(String fullName, String jarWikiPage, XWikiContext context); String getMacroList(XWikiContext context); BaseObject getObjectFromRequest(String className, XWikiContext context); String getConvertingUserNameType(XWikiContext context); String convertUsername(String username, XWikiContext context); boolean hasSectionEdit(XWikiContext context); long getSectionEditingDepth(); String getWysiwygToolbars(XWikiContext context); String clearName(String name, XWikiContext context); String clearName(String name, boolean stripDots, boolean ascii, XWikiContext context); String getUniquePageName(String space, XWikiContext context); String getUniquePageName(String space, String name, XWikiContext context); PropertyClass getPropertyClassFromName(String propPath, XWikiContext context); boolean validateDocument(XWikiDocument doc, XWikiContext context); String addTooltip(String html, String message, String params, XWikiContext context); String addTooltipJS(XWikiContext context); String addTooltip(String html, String message, XWikiContext context); String addMandatory(XWikiContext context); boolean hasVersioning(XWikiContext context); boolean hasAttachmentVersioning(XWikiContext context); String getExternalAttachmentURL(String fullName, String filename, XWikiContext context); int getMaxRecursiveSpaceChecks(XWikiContext context); void restoreFromRecycleBin(final XWikiDocument doc, String comment, XWikiContext context); @Deprecated void restoreFromRecycleBin(final XWikiDocument doc, long index, String comment, XWikiContext context); void restoreFromRecycleBin(long index, String comment, XWikiContext context); XWikiDocument rollback(final XWikiDocument tdoc, String rev, XWikiContext context); XWikiDocument rollback(final XWikiDocument tdoc, String rev, boolean addRevision, XWikiContext xcontext); @Deprecated List<String> getConfiguredSyntaxes(); String getDefaultDocumentSyntax(); String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context); String getCurrentContentSyntaxId(XWikiContext context); boolean isTitleInCompatibilityMode(); @Override void onEvent(Event event, Object source, Object data); @Override List<Event> getEvents(); @Override String getName(); @Deprecated List<XWikiAttachment> searchAttachments(String parametrizedSqlClause, boolean checkRight, int nb, int start,
        List<?> parameterValues, XWikiContext context); int countAttachments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context); @Deprecated static String getConfigPath(); @Deprecated XWikiConfig getConfig(); @Deprecated void setConfig(XWikiConfig config); @Deprecated String Param(String key); @Deprecated String Param(String key, String default_value); @Deprecated long ParamAsLong(String key); @Deprecated long ParamAsLong(String key, long default_value); boolean isPathBased(); }
XWiki implements EventListener { public String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context) { String syntaxId = getCurrentContentSyntaxIdInternal(context); if (syntaxId == null) { syntaxId = defaultSyntaxId; } return syntaxId; } XWiki();  XWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate);  XWiki(XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context); @Deprecated  XWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context); @Deprecated  XWiki(String xwikicfgpath, XWikiContext context, XWikiEngineContext engine_context, boolean noupdate); @Deprecated  XWiki(InputStream is, XWikiContext context, XWikiEngineContext engine_context); static XWiki getMainXWiki(XWikiContext context); static XWiki getMainXWiki(boolean wait, XWikiContext context); static boolean isInitializing(XWikiContext xcontext); static XWiki getXWiki(XWikiContext context); static XWiki getXWiki(boolean wait, XWikiContext xcontext); Job getWikiInitializerJob(String wikiId); boolean initializeWiki(String wikiId, boolean wait, XWikiContext xcontext); static URL getRequestURL(XWikiRequest request); static Object callPrivateMethod(Object obj, String methodName); static Object callPrivateMethod(Object obj, String methodName, Class<?>[] classes, Object[] args); static HttpClient getHttpClient(int timeout, String userAgent); @Deprecated static Object getPrivateField(Object obj, String fieldName); static String getServerWikiPage(String servername); static String getTextArea(String content, XWikiContext context); void initXWiki(XWikiContext context, XWikiEngineContext engineContext, boolean noupdate); @Deprecated void initXWiki(XWikiConfig config, XWikiContext context, XWikiEngineContext engineContext, boolean noupdate); void initializeMandatoryDocuments(XWikiContext context); XWikiStoreInterface getNotCacheStore(); XWikiHibernateStore getHibernateStore(); @Deprecated void updateDatabase(String wikiId, XWikiContext context); @Deprecated void updateDatabase(String wikiId, boolean force, XWikiContext context); @Deprecated void updateDatabase(String wikiId, boolean force, boolean initDocuments, XWikiContext context); @Deprecated List<String> getVirtualWikiList(); @Deprecated List<String> getVirtualWikisDatabaseNames(XWikiContext context); @Deprecated Cache<DocumentReference> getVirtualWikiCache(); String getWikiOwner(String wikiName, XWikiContext context); @SuppressWarnings("deprecation") String getVersion(); URL getResource(String s); InputStream getResourceAsStream(String s); String getResourceContent(String name); Date getResourceLastModificationDate(String name); byte[] getResourceContentAsBytes(String name); boolean resourceExists(String name); String getRealPath(String path); String ParamAsRealPath(String key); String ParamAsRealPath(String key, XWikiContext context); String ParamAsRealPathVerified(String param); XWikiStoreInterface getStore(); @Deprecated XWikiAttachmentStoreInterface getAttachmentStore(); XWikiAttachmentStoreInterface getDefaultAttachmentContentStore(); AttachmentVersioningStore getDefaultAttachmentArchiveStore(); @Deprecated AttachmentVersioningStore getAttachmentVersioningStore(); XWikiVersioningStoreInterface getVersioningStore(); XWikiRecycleBinStoreInterface getRecycleBinStore(); AttachmentRecycleBinStore getAttachmentRecycleBinStore(); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment,
        XWikiContext context); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context); @Unstable void checkSavingDocument(DocumentReference userReference, XWikiDocument document, String comment,
        boolean isMinorEdit, XWikiContext context); void saveDocument(XWikiDocument doc, XWikiContext context); void saveDocument(XWikiDocument doc, String comment, XWikiContext context); void saveDocument(XWikiDocument document, String comment, boolean isMinorEdit, XWikiContext context); XWikiDocument getDocument(EntityReference reference, XWikiContext context); XWikiDocument getDocument(String reference, EntityType type, XWikiContext xcontext); XWikiDocument getDocument(XWikiDocument doc, XWikiContext context); @Deprecated XWikiDocument getDocument(DocumentReference reference, String revision, XWikiContext context); @Deprecated XWikiDocument getDocument(XWikiDocument document, String revision, XWikiContext context); XWikiDocument getDocument(DocumentReference reference, XWikiContext context); XWikiDocument getDocument(PageReference reference, XWikiContext context); DocumentReference getDocumentReference(EntityReference reference, XWikiContext context); @Deprecated XWikiDocument getDocument(String fullname, XWikiContext context); @Deprecated XWikiDocument getDocument(String spaces, String fullname, XWikiContext context); XWikiDeletedDocument[] getDeletedDocuments(String fullname, String locale, XWikiContext context); XWikiDeletedDocument[] getDeletedDocuments(String batchId, XWikiContext context); @Deprecated XWikiDeletedDocument getDeletedDocument(String fullname, String locale, int index, XWikiContext context); XWikiDeletedDocument getDeletedDocument(long index, XWikiContext context); List<DeletedAttachment> getDeletedAttachments(String docName, XWikiContext context); List<DeletedAttachment> getDeletedAttachments(String docName, String filename, XWikiContext context); DeletedAttachment getDeletedAttachment(String id, XWikiContext context); MetaClass getMetaclass(); void setMetaclass(MetaClass metaclass); List<String> getClassList(XWikiContext context); List<T> search(String sql, XWikiContext context); List<T> search(String sql, int nb, int start, XWikiContext context); List<T> search(String sql, Object[][] whereParams, XWikiContext context); List<T> search(String sql, int nb, int start, Object[][] whereParams, XWikiContext context); @Deprecated String parseContent(String content, XWikiContext context); @Deprecated String parseTemplate(String template, XWikiContext context); @Deprecated String evaluateTemplate(String template, XWikiContext context); @Deprecated String parseTemplate(String template, String skinId, XWikiContext context); String renderTemplate(String template, String skin, XWikiContext context); String renderTemplate(String template, XWikiContext context); String invokeServletAndReturnAsString(String url, XWikiContext xwikiContext); String getIconURL(String iconName, XWikiContext context); String getSkinFile(String filename, XWikiContext context); String getSkinFile(String filename, boolean forceSkinAction, XWikiContext context); String getSkinFile(String filename, String skin, XWikiContext context); String getSkinFile(String fileName, String skinId, boolean forceSkinAction, XWikiContext context); @Deprecated String getSkin(XWikiContext context); String getSkinPreference(String prefname, XWikiContext context); String getSkinPreference(String prefname, String defaultValue, XWikiContext context); @Deprecated String getDefaultBaseSkin(XWikiContext context); @Deprecated String getBaseSkin(XWikiContext context); @Deprecated String getBaseSkin(XWikiContext context, boolean fromRenderSkin); @Deprecated String getBaseSkin(String skin, XWikiContext context); String getSpaceCopyright(XWikiContext context); String getXWikiPreference(String prefname, XWikiContext context); String getXWikiPreference(String prefname, String fallbackParam, String defaultValue, XWikiContext context); String getXWikiPreference(String prefname, String wiki, String fallbackParam, String defaultValue,
        XWikiContext xcontext); String getXWikiPreference(String prefname, String defaultValue, XWikiContext context); String getSpacePreference(String preference, XWikiContext context); String getSpacePreference(String preference, String defaultValue, XWikiContext context); @Deprecated String getSpacePreference(String preference, String space, String defaultValue, XWikiContext context); String getSpacePreference(String preferenceKey, SpaceReference spaceReference, XWikiContext context); String getSpacePreference(String preferenceKey, SpaceReference spaceReference, String defaultValue,
        XWikiContext context); String getUserPreference(String prefname, XWikiContext context); String getUserPreferenceFromCookie(String prefname, XWikiContext context); String getUserPreference(String prefname, boolean useCookie, XWikiContext context); Locale getLocalePreference(XWikiContext context); @Deprecated String getLanguagePreference(XWikiContext context); @Deprecated String getDefaultLanguage(XWikiContext xcontext); Locale getDefaultLocale(XWikiContext xcontext); List<Locale> getAvailableLocales(XWikiContext xcontext); Locale getDocLocalePreferenceNew(XWikiContext context); @Deprecated // TODO: move implementation to #getDocLocalePreferenceNew String getDocLanguagePreferenceNew(XWikiContext context); Locale getInterfaceLocalePreference(XWikiContext context); @Deprecated // TODO: move implementation to #getInterfaceLocalePreference String getInterfaceLanguagePreference(XWikiContext context); long getXWikiPreferenceAsLong(String preference, XWikiContext context); long getSpacePreferenceAsLong(String preference, XWikiContext context); long getXWikiPreferenceAsLong(String preference, long defaultValue, XWikiContext context); long getXWikiPreferenceAsLong(String preference, String fallbackParameter, long defaultValue,
        XWikiContext context); long getSpacePreferenceAsLong(String preference, long defaultValue, XWikiContext context); long getUserPreferenceAsLong(String preference, XWikiContext context); int getXWikiPreferenceAsInt(String preference, XWikiContext context); int getSpacePreferenceAsInt(String preference, XWikiContext context); int getXWikiPreferenceAsInt(String preference, int defaultValue, XWikiContext context); int getXWikiPreferenceAsInt(String preference, String fallbackParameter, int defaultValue,
        XWikiContext context); int getSpacePreferenceAsInt(String preference, int defaultValue, XWikiContext context); int getUserPreferenceAsInt(String prefname, XWikiContext context); void flushCache(XWikiContext context); XWikiPluginManager getPluginManager(); void setPluginManager(XWikiPluginManager pluginManager); void setStore(XWikiStoreInterface store); void setDefaultAttachmentContentStore(XWikiAttachmentStoreInterface attachmentContentStore); @Deprecated void setAttachmentStore(XWikiAttachmentStoreInterface attachmentStore); void setDefaultAttachmentArchiveStore(AttachmentVersioningStore attachmentArchiveStore); @Deprecated void setAttachmentVersioningStore(AttachmentVersioningStore attachmentArchiveStore); void setVersioningStore(XWikiVersioningStoreInterface versioningStore); void setRecycleBinStore(XWikiRecycleBinStoreInterface recycleBinStore); void setAttachmentRecycleBinStore(AttachmentRecycleBinStore attachmentRecycleBinStore); void setCriteriaService(XWikiCriteriaService criteriaService); void setVersion(String version); BaseClass getTagClass(XWikiContext context); @Deprecated BaseClass getSheetClass(XWikiContext context); BaseClass getEditModeClass(XWikiContext context); BaseClass getUserClass(XWikiContext context); BaseClass getRedirectClass(XWikiContext context); BaseClass getPrefsClass(XWikiContext context); BaseClass getGroupClass(XWikiContext context); BaseClass getRightsClass(String pagename, XWikiContext context); BaseClass getRightsClass(XWikiContext context); BaseClass getGlobalRightsClass(XWikiContext context); BaseClass getCommentsClass(XWikiContext context); BaseClass getSkinClass(XWikiContext context); int createUser(XWikiContext context); int validateUser(boolean withConfirmEmail, XWikiContext context); int createUser(boolean withValidation, String userRights, XWikiContext context); boolean createEmptyUser(String xwikiname, String userRights, XWikiContext context); void sendConfirmationEmail(String xwikiname, String password, String email, String message,
        String contentfield, XWikiContext context); void sendValidationEmail(String xwikiname, String password, String email, String validkey,
        String contentfield, XWikiContext context); void sendValidationEmail(String xwikiname, String password, String email, String addfieldname,
        String addfieldvalue, String contentfield, XWikiContext context); String generateRandomString(int size); String generateValidationKey(int size); int createUser(String userName, Map<String, ?> map, XWikiContext context); int createUser(String userName, Map<String, ?> map, String userRights, XWikiContext context); @Deprecated int createUser(String userName, Map<String, ?> map, String parent, String content, String syntaxId,
        String userRights, XWikiContext context); int createUser(String userName, Map<String, ?> map, EntityReference parentReference, String content,
        Syntax syntax, String userRights, XWikiContext context); @Deprecated int createUser(String xwikiname, Map<String, ?> map, String parent, String content, String userRights,
        XWikiContext context); void setUserDefaultGroup(String fullwikiname, XWikiContext context); void protectUserPage(String userName, String userRights, XWikiDocument doc, XWikiContext context); User getUser(XWikiContext context); @Deprecated User getUser(String username, XWikiContext context); @Unstable User getUser(DocumentReference userReference, XWikiContext context); void prepareResources(XWikiContext context); XWikiUser checkAuth(XWikiContext context); boolean checkAccess(String action, XWikiDocument doc, XWikiContext context); String include(String topic, boolean isForm, XWikiContext context); void deleteDocument(XWikiDocument doc, XWikiContext context); void deleteDocument(XWikiDocument doc, boolean totrash, XWikiContext context); void checkDeletingDocument(DocumentReference userReference, XWikiDocument document, XWikiContext context); String getDatabase(); void setDatabase(String database); void gc(); long freeMemory(); long totalMemory(); long maxMemory(); String[] split(String str, String sep); @Deprecated String printStrackTrace(Throwable e); @Unstable boolean renameDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean overwrite, List<DocumentReference> backlinkDocumentReferences,
        List<DocumentReference> childDocumentReferences, XWikiContext context); @Deprecated @Unstable void renameByCopyAndDelete(XWikiDocument sourceDoc, DocumentReference newDocumentReference,
        List<DocumentReference> backlinkDocumentReferences, List<DocumentReference> childDocumentReferences,
        XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean reset, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        boolean reset, boolean force, boolean resetCreationData, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, boolean force, XWikiContext context); boolean copyDocument(DocumentReference sourceDocumentReference, DocumentReference targetDocumentReference,
        String wikilocale, boolean reset, boolean force, boolean resetCreationData, XWikiContext context); int copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale,
        XWikiContext context); int copySpaceBetweenWikis(String space, String sourceWiki, String targetWiki, String locale, boolean clean,
        XWikiContext context); @Deprecated int copyWiki(String sourceWiki, String targetWiki, String locale, XWikiContext context); @Deprecated int copyWiki(String sourceWiki, String targetWiki, String locale, boolean clean, XWikiContext context); String getEncoding(); URL getServerURL(String wikiId, XWikiContext xcontext); String getServletPath(String wikiName, XWikiContext context); String getWebAppPath(XWikiContext context); String getURL(EntityReference entityReference, String action, String queryString, String anchor,
        XWikiContext context); String getURL(EntityReference reference, String action, XWikiContext context); String getURL(EntityReference reference, XWikiContext context); String getURL(DocumentReference documentReference, String action, String queryString, String anchor,
        XWikiContext context); @Deprecated String getURL(String fullname, String action, String queryString, String anchor, XWikiContext context); String getURL(String fullname, String action, String querystring, XWikiContext context); String getURL(DocumentReference reference, String action, XWikiContext context); @Deprecated String getURL(String fullname, String action, XWikiContext context); String getExternalURL(String fullname, String action, XWikiContext context); String getExternalURL(String fullname, String action, String querystring, XWikiContext context); String getExternalURL(DocumentReference documentReference, String action, String querystring, String anchor,
        XWikiContext context); String getAttachmentURL(AttachmentReference attachmentReference, String action, String queryString,
        XWikiContext context); String getAttachmentURL(AttachmentReference attachmentReference, String queryString, XWikiContext context); String getAttachmentRevisionURL(AttachmentReference attachmentReference, String revision, String queryString,
        XWikiContext context); String getAttachmentURL(String fullname, String filename, XWikiContext context); String getAttachmentURL(String fullname, String filename, String queryString, XWikiContext context); int getTimeDelta(long time); boolean isMultiLingual(XWikiContext context); boolean isLDAP(); boolean isAllGroupImplicit(); @Deprecated int checkActive(XWikiContext context); @Deprecated int checkActive(String user, XWikiContext context); DocumentReference getDocumentReference(XWikiRequest request, XWikiContext context); static String stripSegmentFromPath(String path, String segment); boolean prepareDocuments(XWikiRequest request, XWikiContext context, VelocityContext vcontext); void setPhonyDocument(DocumentReference reference, XWikiContext context); @Deprecated void setPhonyDocument(DocumentReference reference, XWikiContext context, VelocityContext vcontext); @Deprecated void setPhonyDocument(String docName, XWikiContext context, VelocityContext vcontext); XWikiEngineContext getEngineContext(); void setEngineContext(XWikiEngineContext engine_context); void setAuthService(XWikiAuthService authService); void setRightService(XWikiRightService rightService); XWikiGroupService getGroupService(XWikiContext context); void setGroupService(XWikiGroupService groupService); XWikiAuthService getAuthService(); XWikiRightService getRightService(); XWikiStatsService getStatsService(XWikiContext context); XWikiURLFactoryService getURLFactoryService(); XWikiCriteriaService getCriteriaService(XWikiContext context); ZipOutputStream getZipOutputStream(XWikiContext context); String getRefererText(String referer, XWikiContext context); boolean isMySQL(); String getFullNameSQL(); String getFullNameSQL(boolean newFullName); String getUserName(String user, XWikiContext context); String getUserName(String user, String format, XWikiContext context); String getUserName(String user, String format, boolean link, XWikiContext context); String getUserName(DocumentReference userReference, String format, boolean link, boolean escapeXML,
        XWikiContext context); String evaluateVelocity(String content, String namespace, VelocityContext vcontext); String evaluateVelocity(String content, String name); String getPlainUserName(DocumentReference userReference, XWikiContext context); boolean hasCentralizedAuthentication(XWikiContext context); String getLocalUserName(String user, XWikiContext context); String getLocalUserName(String user, String format, XWikiContext context); String getLocalUserName(String user, String format, boolean link, XWikiContext context); String formatDate(Date date, String format, XWikiContext context); String getUserTimeZone(XWikiContext context); @Deprecated boolean exists(String fullname, XWikiContext context); boolean exists(DocumentReference documentReference, XWikiContext context); String getAdType(XWikiContext context); String getAdClientId(XWikiContext context); @Deprecated XWikiPluginInterface getPlugin(String name, XWikiContext context); @Deprecated Api getPluginApi(String name, XWikiContext context); int getHttpTimeout(XWikiContext context); String getHttpUserAgent(XWikiContext context); String getURLContent(String surl, XWikiContext context); String getURLContent(String surl, int timeout, String userAgent); String getURLContent(String surl, String username, String password, XWikiContext context); String getURLContent(String surl, String username, String password, int timeout, String userAgent); byte[] getURLContentAsBytes(String surl, XWikiContext context); byte[] getURLContentAsBytes(String surl, int timeout, String userAgent); byte[] getURLContentAsBytes(String surl, String username, String password, XWikiContext context); byte[] getURLContentAsBytes(String surl, String username, String password, int timeout, String userAgent); @Deprecated List<String> getSpaces(XWikiContext context); @Deprecated List<String> getSpaceDocsName(String spaceReference, XWikiContext context); List<String> getIncludedMacros(String defaultSpace, String content, XWikiContext context); boolean isReadOnly(); void setReadOnly(boolean readOnly); void deleteAllDocuments(XWikiDocument doc, XWikiContext context); void deleteAllDocuments(XWikiDocument doc, boolean toTrash, XWikiContext context); void refreshLinks(XWikiContext context); boolean hasBacklinks(XWikiContext context); boolean hasTags(XWikiContext context); boolean hasCustomMappings(); boolean hasDynamicCustomMappings(); String getDefaultSpace(XWikiContext context); boolean showViewAction(XWikiContext context); boolean useDefaultAction(XWikiContext context); String getDefaultPage(XWikiContext context); boolean hasEditComment(XWikiContext context); boolean isEditCommentFieldHidden(XWikiContext context); boolean isEditCommentSuggested(XWikiContext context); boolean isEditCommentMandatory(XWikiContext context); boolean hasMinorEdit(XWikiContext context); boolean hasRecycleBin(XWikiContext context); boolean hasAttachmentRecycleBin(XWikiContext context); BaseClass getXClass(DocumentReference documentReference, XWikiContext context); @Deprecated BaseClass getClass(String fullName, XWikiContext context); String getEditorPreference(XWikiContext context); Object parseGroovyFromString(String script, XWikiContext xcontext); Object parseGroovyFromString(String script, String jarWikiPage, XWikiContext xcontext); Object parseGroovyFromPage(String fullName, XWikiContext context); Object parseGroovyFromPage(String fullName, String jarWikiPage, XWikiContext context); String getMacroList(XWikiContext context); BaseObject getObjectFromRequest(String className, XWikiContext context); String getConvertingUserNameType(XWikiContext context); String convertUsername(String username, XWikiContext context); boolean hasSectionEdit(XWikiContext context); long getSectionEditingDepth(); String getWysiwygToolbars(XWikiContext context); String clearName(String name, XWikiContext context); String clearName(String name, boolean stripDots, boolean ascii, XWikiContext context); String getUniquePageName(String space, XWikiContext context); String getUniquePageName(String space, String name, XWikiContext context); PropertyClass getPropertyClassFromName(String propPath, XWikiContext context); boolean validateDocument(XWikiDocument doc, XWikiContext context); String addTooltip(String html, String message, String params, XWikiContext context); String addTooltipJS(XWikiContext context); String addTooltip(String html, String message, XWikiContext context); String addMandatory(XWikiContext context); boolean hasVersioning(XWikiContext context); boolean hasAttachmentVersioning(XWikiContext context); String getExternalAttachmentURL(String fullName, String filename, XWikiContext context); int getMaxRecursiveSpaceChecks(XWikiContext context); void restoreFromRecycleBin(final XWikiDocument doc, String comment, XWikiContext context); @Deprecated void restoreFromRecycleBin(final XWikiDocument doc, long index, String comment, XWikiContext context); void restoreFromRecycleBin(long index, String comment, XWikiContext context); XWikiDocument rollback(final XWikiDocument tdoc, String rev, XWikiContext context); XWikiDocument rollback(final XWikiDocument tdoc, String rev, boolean addRevision, XWikiContext xcontext); @Deprecated List<String> getConfiguredSyntaxes(); String getDefaultDocumentSyntax(); String getCurrentContentSyntaxId(String defaultSyntaxId, XWikiContext context); String getCurrentContentSyntaxId(XWikiContext context); boolean isTitleInCompatibilityMode(); @Override void onEvent(Event event, Object source, Object data); @Override List<Event> getEvents(); @Override String getName(); @Deprecated List<XWikiAttachment> searchAttachments(String parametrizedSqlClause, boolean checkRight, int nb, int start,
        List<?> parameterValues, XWikiContext context); int countAttachments(String parametrizedSqlClause, List<?> parameterValues, XWikiContext context); @Deprecated static String getConfigPath(); @Deprecated XWikiConfig getConfig(); @Deprecated void setConfig(XWikiConfig config); @Deprecated String Param(String key); @Deprecated String Param(String key, String default_value); @Deprecated long ParamAsLong(String key); @Deprecated long ParamAsLong(String key, long default_value); boolean isPathBased(); static final String DEFAULT_MAIN_WIKI; static final String DEFAULT_HOME_SPACE; static final String SYSTEM_SPACE; static final String DEFAULT_SPACE_HOMEPAGE; static final String CKEY_SKIN; static final String CKEY_BASESKIN; static final String DEFAULT_SKIN; static final String CACHE_VERSION; static final String DEFAULT_ENCODING; @Deprecated
    static final String CFG_ENV_NAME; static final String MACROS_FILE; }