Uses of Class
org.opencms.file.CmsObject
Package
Description
Contains the ade configuration classes.
Classes for handling formatter configurations.
Contains the container page editor service classes.
Contains classes used for reading and caching inheritance groups.
Contains server side classes for the XML content editor.
Contains functions for the detail pages in OpenCms.
Contains server side classes for the gallery dialogs.
This package contains the server-side classes for the publish module.
Server side of the sitemap view.
Implementations of specialized caches used in OpenCms.
Reads and writes the XML based OpenCms configuration files.
Classes to build the user preferences dialog.
Low-level database connection and access functionality.
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
Collectors allow to gather lists of OpenCms resources from the OpenCms VFS using specific rules.
This package contains the classes to deal with the OpenCms VFS history archive.
The implementations of the core resource types for the VFS are located here.
This package contains classes and interfaces used to access OpenCms through a wrapped
CmsObject
.Provides low-level JSP integration funtionality for OpenCms,
also implements the FlexCache, a declarative parameter-based cache.
Provides core support for GWT.
Classes to handle internalization (i18n) and locale selection in OpenCms.
Tools for i18n.
Contains functions to import and export resources from the OpenCms VFS.
The implementation of the OpenCms JSP tag library, with some additional utility classes to
help in JSP scriplet code and navigation building.
HTML postprocessor, used to tag single words or phrases in the HTML output.
API classes for the <cms:parse> tag.
API classes for the configuration of the search form support provided for server-side Solr search.
API classes for the configuration parsers of the search form support provided for server-side Solr search.
Helpers to convert the list configuration XML content into a suitable bean, used by the CmsSimpleSearchConfigurationParser and the List manager app.
Contains classes for dealing with restrictions in list configurations.
API classes for the controllers of the search form support provided for server-side Solr search.
API classes for the result of the search form support provided for server-side Solr search.
Utility classes to be used for JSP pages.
Low-level functions to manage the loading of resources from the OpenCms VFS.
The lock state of the resources in the VFS is handled with these classes.
Provides utility classes to generate email messages using the OpenCms email configuration.
Provides the main OpenCms "operating system".
OpenCms modules provide a powerful, standardized way to extend
the core OpenCms functionality.
Contains functions to monitor the OpenCms system status.
Contains classes to distribute newsletters.
Contains classes for the automatical notification of outdated, expiring or released content.
Classes to handle the OpenCms publish process.
Classes to represent and validate the internal and external links/relations of resources in the OpenCms VFS.
Classes used to generate the OpenCms reports, which are displayed during publish, import, export etc.
Package contains all classes and interfaces needed to create or use a repository to
access the resources in the VFS.
The OpenCms scheduler provides a facility to run jobs in a regular schedule, much
like the "cron" faciltiy in UNIX systems.
Some predefined implementations for often used scheduled job tasks.
Implements the main full text search and indexing functions available in OpenCms.
Handles indexing different sorts of document and resource type from the OpenCms VFS for the full text search.
These classes control the mapping of the OpenCms content to the Lucene search fields.
Implements the search functions for the OpenCms Gallery search index,
which is used by the Advanced Direct Edit (ADE) functions.
The package contains the Solr search integration.
Contains the SOLR based spellcheck service classes.
Access control and security classes for the OpenCms ACL permission system.
Provides access to the multi-site configuration of OpenCms.
Contains classes related to XML sitemap generation.
Contains the functionality for the static HTML page export.
Classes used to synchronize the OpenCms VFS with the real file system.
General code for the Vaadin UI.
Contains classes for workplace actions.
Contains code for workplace apps.
Contains classes of the cache admin app.
Contains classes of the cache admin app.
Contains classes of the file history app.
This package contains the app classes for the git check in functionality.
Contains classes of the link validation app.
This package contains the app classes for the list configurations manager.
Contains classes of the module manager app.
Contains classes of the module manager app used to edit modules.
The project manager app classes.
Contains classes of the publish queue app.
Contains classes of the source search app.
Contains classes of the searchindex app.
Contains classes of the site manager app.
Contains classes of the site manager app.
Contains classes of the user manager app.
Contains some reusable GUI components for Vaadin UI.
Contains components for selecting resources.
Contains code for workplace context menu.
Contains code for workplace dialogs.
Contains code for the file history dialog.
Contains code for the comparison view of the file history dialog.
Contains permission dialog classes.
The available content editors.
The data bindings and logic for the translator editor.
Contains the user interface components for the Vaadin-based login dialog.
Vaadin GUI components and utilities for use in the sitemap editor.
Utilities for Vaadin workplace code.
Utility functions for String manipulation and other often used tasks.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
Classes related to publishing and workflow.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
Utilities for comparing different versions of resources, used by both the classic workplace and the new Vaadin-based workplace.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
Used to control the generation of the HTML for the "direct edit" buttons.
Contains the functions that generate the Workplace "Explorer" view, also contains
the "New resource" wizard.
Contains the various "Galleries" which are available in the editors and widgets of the OpenCms Workplace.
A collection of thread classes that are used in the OpenCms Workplace,
usually in connection with a report.
Contains the base classes for implementing a tool in the OpenCms Workplace "Administration" view.
Basic XML functionality and utilities used by OpenCms to maintain XML documents and content.
Contains functions for the ADE main pages, commonly called "Container Pages" in OpenCms.
Contains functions for structured content storage using XML, commonly called "XML content" in OpenCms.
Contains functions for unstructured content storage using XML, commonly called "XML pages" in OpenCms.
Contains the basic XML content type definitions, used for XML content and XML pages.
-
Uses of CmsObject in org.opencms.ade.configuration
Modifier and TypeFieldDescriptionprotected CmsObject
CmsResourceTypeConfig.m_cms
The CMS object used for VFS operations.Modifier and TypeMethodDescriptionprotected CmsObject
CmsADEConfigCacheState.getCms()
Gets the CMS context used for VFS operations.protected CmsObject
CmsADEConfigData.getCms()
Gets the CMS object used for VFS operations.protected CmsObject
CmsADEConfigData.getCmsObject()
Gets the CMS object used for VFS operations.protected CmsObject
Creates a new CMS object based on existing one and changes its site root to the site root.Modifier and TypeMethodDescriptionboolean
CmsADEManager.canEditSitemapConfiguration
(CmsObject cms) Checks if the sitemap config can be edited by the user in the given CMS context.boolean
CmsResourceTypeConfig.checkCreatable
(CmsObject cms, String pageFolderRootPath) Checks if this resource type is creatable.void
CmsResourceTypeConfig.checkOffline
(CmsObject cms) Checks whether the cms context is in the offline project and throws an exception otherwise.boolean
CmsResourceTypeConfig.checkViewable
(CmsObject cms, String referenceUri) Checks if a resource type is viewable for the current user.void
CmsResourceTypeConfig.configureCreateNewElement
(CmsObject cms, String pageFolderRootPath, CmsNewResourceBuilder builder) Similar to createNewElement, but just sets parameters on a resource builder instead of actually creating the resource.CmsResourceTypeConfig.createNewElement
(CmsObject userCms, String pageFolderRootPath) Creates a new element.CmsResourceTypeConfig.createNewElement
(CmsObject userCms, CmsResource modelResource, String pageFolderRootPath) Creates a new element.static CmsADEConfigCacheState
CmsADEConfigCacheState.emptyState
(CmsObject cms) Creates an empty ADE configuration cache state.CmsADEManager.findEntryPoint
(CmsObject cms, String openPath) Finds the entry point to a sitemap.CmsADEManager.getAllDetailPages
(CmsObject cms) Gets the complete list of beans for the currently configured detail pages.CmsADEConfigData.getCreatableTypes
(CmsObject cms, String pageFolderRootPath) Returns a list of the creatable resource types.CmsADEManager.getDetailInfo
(CmsObject cms) Gets the detail page information for everything.CmsADEConfigData.getDetailInfos
(CmsObject cms) Gets the detail information for this sitemap config data object.CmsADEConfigCacheState.getDetailInfosForSubsites
(CmsObject cms) Gets the detail page information for everything.CmsADEManager.getDetailPage
(CmsObject cms, String pageRootPath, String originPath) Gets the detail page for a content element.CmsADEManager.getDetailPage
(CmsObject cms, String rootPath, String linkSource, String targetDetailPage) Gets the detail page for a content element.CmsADEManager.getDetailPages
(CmsObject cms, String type) Returns the main detail pages for a type in all of the VFS tree.CmsADEManager.getDetailPageTypes
(CmsObject cms) Gets the set of types for which detail pages are defined.CmsADEConfigData.getDisplayFormatters
(CmsObject cms) Returns all available display formatters.CmsADEManager.getElementSettings
(CmsObject cms, CmsResource resource) Returns the element settings for a given resource.CmsADEManager.getElementViews
(CmsObject cms) Returns the available element views.CmsADEManager.getFavoriteList
(CmsObject cms) Returns the favorite list, or creates it if not available.CmsContentFolderDescriptor.getFolderPath
(CmsObject cms, String pageFolderPath) Computes the folder root path.CmsResourceTypeConfig.getFolderPath
(CmsObject cms, String pageFolderRootPath) Computes the folder path for this resource type.CmsADEConfigData.getFormatters
(CmsObject cms, CmsResource res) Gets the formatter configuration for a resource.protected CmsFormatterConfiguration
CmsADEConfigData.getFormatters
(CmsObject cms, I_CmsResourceType resType, CmsFormatterConfiguration schemaFormatters) Gets the formatter configuration for a resource type.CmsADEManager.getFormatterSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean mainFormatter, CmsResource res, Locale locale, javax.servlet.ServletRequest req) Returns the settings configured for the given formatter which should be editable via ADE.protected CmsFormatterConfiguration
CmsADEConfigData.getFormattersFromSchema
(CmsObject cms, CmsResource res) Gets the formatters from the schema.CmsADEManager.getInheritedContainerState
(CmsObject cms, String rootPath, String name) Returns the inheritance state for the given inheritance name and root path.CmsADEManager.getInheritedContainerState
(CmsObject cms, CmsResource resource, String name) Returns the inheritance state for the given inheritance name and resource.CmsADEManager.getNestedFormatters
(CmsObject cms, CmsADEConfigData config, CmsResource res, Locale locale, javax.servlet.ServletRequest req) Returns the nested formatters of the given resource.CmsADEManager.getParameters
(CmsObject cms) Gets ADE parameters.CmsADEManager.getPermissionInfo
(CmsObject cms, CmsResource resource, String contextPath) Returns the permission info for the given resource.CmsADEManager.getPluginsForPath
(CmsObject cms, String path) Gets a map of plugin wrappers for the given site path.CmsADEManager.getRawDetailPages
(CmsObject cms) Gets the raw configured detail page information, with no existence checks or path correction.CmsADEManager.getRecentList
(CmsObject cms) Returns the favorite list, or creates it if not available.CmsADEConfigData.getSearchableTypes
(CmsObject cms) Gets the searchable resource type configurations.static String
CmsConfigurationReader.getString
(CmsObject cms, I_CmsXmlContentValueLocation location) Gets the string value of an XML content location.CmsADEManager.getSubSitePaths
(CmsObject cms, String subSiteRoot) Returns all sub sites below the given path.CmsADEManager.getSubSiteRoot
(CmsObject cms, String rootPath) Tries to get the subsite root for a given resource root path.protected CmsProject
CmsADEManager.getTempfileProject
(CmsObject cms) Gets a tempfile project, creating one if it doesn't exist already.Returns the element view title.void
CmsADEManager.handleHtmlRedirect
(CmsObject userCms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String htmlRedirect) Processes a HTML redirect content.boolean
CmsADEConfigData.hasFormatters
(CmsObject cms, I_CmsResourceType resType, Collection<CmsContainer> containers) Checks if there are any matching formatters for the given set of containers.boolean
CmsElementView.hasPermission
(CmsObject cms, CmsResource folder) Checks whether the current user has permissions to use the element view.void
CmsResourceTypeConfig.initialize
(CmsObject cms) Initializes this instance.protected CmsADEConfigData
CmsADEManager.internalLookupConfiguration
(CmsObject cms, String rootPath) Internal configuration lookup method.protected boolean
CmsADEConfigCacheState.isDetailPage
(CmsObject cms, CmsResource resource) Checks whether the given resource is configured as a detail page.boolean
CmsADEManager.isDetailPage
(CmsObject cms, CmsResource resource) Checks whether the given resource is configured as a detail page.boolean
CmsADEManager.isEditorRestricted
(CmsObject cms, CmsResource res) Checks if the user should be prevented from editing a file.boolean
CmsADEManager.isShowEditorHelp
(CmsObject cms) Returns the show editor help flag.CmsADEManager.lookupConfiguration
(CmsObject cms, String rootPath) Looks up the configuration data for a given sitemap path.CmsADEManager.lookupConfigurationWithCache
(CmsObject cms, String rootPath) Looks up the configuration data for a given sitemap path, but uses a thread-local cache for the current request for efficiency.static CmsPropertyConfig
CmsConfigurationReader.parseProperty
(CmsObject cms, I_CmsXmlContentLocation field) Helper method to parse a property.CmsSitemapAttributeEditorConfiguration.read
(CmsObject cms, CmsResource res) Reads the attribute definitions from an XML content.protected CmsObject
Creates a new CMS object based on existing one and changes its site root to the site root.boolean
CmsADEManager.saveDetailPages
(CmsObject cms, String rootPath, List<CmsDetailPageInfo> detailPages, CmsUUID newId) Saves a list of detail pages.void
CmsADEManager.saveFavoriteList
(CmsObject cms, List<CmsContainerElementBean> favoriteList) Saves the favorite list, user based.void
CmsADEManager.saveInheritedContainer
(CmsObject cms, String sitePath, String name, boolean newOrder, List<CmsContainerElementBean> elements) Saves the inheritance container information.void
CmsADEManager.saveInheritedContainer
(CmsObject cms, CmsResource pageResource, String name, boolean newOrder, List<CmsContainerElementBean> elements) Saves the inheritance container information.void
CmsADEManager.saveRecentList
(CmsObject cms, List<CmsContainerElementBean> recentList) Saves the favorite list, user based.void
CmsADEManager.setShowEditorHelp
(CmsObject cms, boolean showHelp) Sets the show editor help flag.protected void
CmsResourceTypeConfig.tryToUnlock
(CmsObject cms, String folderPath) Tries to remove a lock on an ancestor of a given path owned by the current user.ModifierConstructorDescriptionCmsADEConfigCacheState
(CmsObject cms, Map<CmsUUID, CmsADEConfigDataInternal> siteConfigurations, List<CmsADEConfigDataInternal> moduleConfigs, Map<CmsUUID, CmsElementView> elementViews, Map<CmsUUID, CmsSitePlugin> sitePlugins, Map<CmsUUID, CmsSitemapAttributeEditorConfiguration> attributeEditorConfigurations) Creates a new configuration cache state.CmsADEConfigDataInternal
(CmsObject cms, CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, CmsGalleryDisabledTypesMode galleryDisabledTypesMode, CmsGalleryDisabledTypesMode galleryDisabledFunctionsMode, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfigWithoutResource> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds, Set<CmsUUID> functionsToRemove, boolean removeAllPlugins, Set<CmsUUID> addedPlugins, Set<CmsUUID> removedPlugins, Boolean useFormatterKeys, CmsTypeOrderingMode orderingMode, CmsAddContentRestriction restriction, CmsUUID sharedSettingOverride, boolean removeSharedSettingOverrides, CmsUUID attributeEditorConfigId, Map<String, String> attributes) Creates a new configuration data instance.CmsADEManager
(CmsObject adminCms, CmsMemoryMonitor memoryMonitor, CmsSystemConfiguration systemConfiguration) Creates a new ADE manager.Creates a new configuration reader.Creates a new instance.CmsElementView
(CmsObject cms, CmsResource resource) Constructor.CmsGlobalConfigurationCacheEventHandler
(CmsObject onlineCms) Creates a new cache event handler. -
Uses of CmsObject in org.opencms.ade.configuration.formatters
ModifierConstructorDescriptionCmsFormatterBeanParser
(CmsObject cms, Map<CmsUUID, Map<CmsSharedSettingKey, CmsXmlContentProperty>> settingConfigs) Creates a new parser instance.CmsFormatterConfigurationCache
(CmsObject cms, String name) Creates a new formatter configuration cache instance. -
Uses of CmsObject in org.opencms.ade.configuration.plugins
Modifier and TypeMethodDescriptionstatic List<CmsTemplatePlugin>
CmsTemplatePlugin.parsePlugins
(CmsObject cms, I_CmsXmlContentLocation parent, String subName) Parses the template plugins.static CmsSitePlugin
CmsSitePlugin.read
(CmsObject cms, CmsResource res) Reads a site plugin from a file.static CmsSitePlugin
CmsSitePlugin.readSitePlugin
(CmsObject cms, CmsXmlContent content) Reads a list of plugins from the given XML content. -
Uses of CmsObject in org.opencms.ade.containerpage
Modifier and TypeMethodDescriptionboolean
I_CmsResourceTypeEnabledCheck.checkEnabled
(CmsObject cms, CmsADEConfigData config, I_CmsResourceType resType) Check whether the given type is enabled for a dialog.static CmsResource
CmsModelGroupHelper.createModelGroup
(CmsObject cms, CmsADEConfigData configData) Creates a new model group resource.static List<CmsModelResourceInfo>
CmsContainerpageService.generateModelResourceList
(CmsObject cms, String resourceType, List<CmsResource> modelResources, Locale contentLocale) Generates the model resource data list.static String
CmsDetailOnlyContainerUtil.getDetailContainerLocale
(CmsObject cms, String contentLocale, CmsResource resource) Returns the detail container resource locale appropriate for the given detail page.static CmsContainerPageBean
CmsDetailOnlyContainerUtil.getDetailOnlyPage
(CmsObject cms, javax.servlet.ServletRequest req, String pageRootPath) Returns the detail only container page bean ornull
if none available.static CmsContainerPageBean
CmsDetailOnlyContainerUtil.getDetailOnlyPage
(CmsObject cms, javax.servlet.ServletRequest req, String pageRootPath, boolean lookupContextFirst) Returns the detail only container page bean ornull
if none available.static com.google.common.base.Optional<CmsResource>
CmsDetailOnlyContainerUtil.getDetailOnlyPage
(CmsObject cms, CmsResource detailContent, String contentLocale) Gets the detail only page for a detail content.static String
CmsDetailOnlyContainerUtil.getDetailOnlyPageName
(CmsObject cms, CmsResource pageResource, String detailPath, String locale) Returns the site/root path to the detail only container page, for site/root path of the detail content.static com.google.common.base.Optional<CmsResource>
CmsDetailOnlyContainerUtil.getDetailOnlyResource
(CmsObject cms, String contentLocale, CmsResource detailContentRes, CmsResource pageRes) Gets the detail only resource for a given detail content and locale.static List<CmsResource>
CmsDetailOnlyContainerUtil.getDetailOnlyResources
(CmsObject cms, CmsResource resource) Returns a list of detail only container pages associated with the given resource.static I_CmsFormatterBean
CmsElementUtil.getFormatterForContainer
(CmsObject cms, CmsContainerElementBean element, CmsContainer container, CmsADEConfigData config, CmsADESessionCache cache) Returns the formatter bean for the given element and container.CmsElementUtil.getPageAndDetailOnlyIds
(CmsObject cms, CmsUUID pageId, CmsResource detailContent) Gets the ids for the current page and potentially detail-only containers.CmsAddDialogTypeHelper.getResourceTypes
(CmsObject cms, String folderRootPath, String createContextPath, String checkViewableReferenceUri, CmsElementView elementView, I_CmsResourceTypeEnabledCheck checkEnabled) Creates list of resource type beans for gallery or 'New' dialog.static String
CmsContainerpageService.getSerializedElementInfo
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsContainerElementBean elementBean, CmsContainerPageBean page) Returns the serialized element data.static boolean
CmsDetailOnlyContainerUtil.isDetailContainersPage
(CmsObject cms, String detailContainersPage) Checks whether the given resource path is of a detail containers page.static boolean
CmsContainerpageService.isEditingModelGroups
(CmsObject cms, CmsResource containerPage) Checks whether the current page is a model group page.void
CmsAddDialogTypeHelper.precomputeTypeLists
(CmsObject cms, String folderRootPath, String checkViewableReferenceUri, List<CmsElementView> views, I_CmsResourceTypeEnabledCheck check) Precomputes type lists for multiple views.static CmsResource
CmsDetailOnlyContainerUtil.readOrCreateDetailOnlyPage
(CmsObject cms, CmsUUID detailId, String detailOnlyRootPath) Creates an empty detail-only page for a content, or just reads the resource if the detail-only page already exists.static CmsTypeAnalyzer.State
CmsTypeAnalyzer.run
(CmsObject cms, String path, boolean skipDetailOnly, String excludeContainersStr, String templateRegex) Runs the type analysis and returns the state object with all the collected data.static CmsXmlContainerPage
CmsDetailOnlyContainerUtil.saveDetailOnlyPage
(CmsObject cms, CmsResource content, String locale, CmsContainerPageBean page) Saves a detail-only page for a content.static void
CmsContainerpageService.unlockPage
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Unlocks a page or set of pages if they are locked by the current user.static boolean
CmsModelGroupHelper.updateModelGroupResource
(CmsObject cms, CmsResource group, String baseContainerName) Updates a model group resource to the changed data structure.ModifierConstructorDescriptionCmsDetailOnlyContainerPageBuilder
(CmsObject cms, CmsADEConfigData config) Creates a new instance.CmsElementUtil
(CmsObject cms, String currentPageUri, CmsUUID detailContentId, String requestParameters, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Locale locale) Creates a new instance.CmsElementUtil
(CmsObject cms, String currentPageUri, CmsUUID detailContentId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Locale locale) Creates a new instance.CmsElementUtil
(CmsObject cms, String currentPageUri, CmsContainerPageBean containerPage, CmsUUID detailContentId, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean isDragMode, Locale locale) Creates a new instance.CmsModelGroupHelper
(CmsObject cms, CmsADEConfigData configData, CmsADESessionCache sessionCache, boolean isEditingModelGroups) Constructor.CmsTypeAnalyzer
(CmsObject cms, String siteRoot, String path, boolean skipDetailOnly, Set<String> excludedContainers, String templateRegex) Creates a new instance. -
Uses of CmsObject in org.opencms.ade.containerpage.inherited
Modifier and TypeMethodDescriptionstatic CmsResource
CmsInheritanceGroupUtils.getInheritanceGroupContentByName
(CmsObject cms, String name) Finds the inheritance group content with a given internal name.CmsInheritanceGroupUtils.getNamesOfGroupsContainingResource
(CmsObject cms, CmsResource inheritanceConfig, CmsResource target) Parses an inheritance group configuration C and returns the names of inheritance groups in C in which a given resource is defined as a new element.protected Map<String,
CmsXmlContentProperty> CmsContainerConfigurationWriter.getSettingConfiguration
(CmsObject cms, CmsResource resource) Gets the setting configuration of an element.protected void
CmsContainerConfigurationWriter.removeExistingEntry
(CmsObject cms, CmsXmlContent content, Locale locale, String name) Removes an existing inheritance container entry with a given name from the configuration file.void
CmsContainerConfigurationWriter.save
(CmsObject cms, String name, boolean newOrdering, CmsResource pageResource, List<CmsContainerElementBean> elements) Saves a list of container element beans to a file in the VFS.protected CmsXmlContent
CmsContainerConfigurationWriter.saveInContentObject
(CmsObject cms, CmsXmlContent content, Locale locale, String name, CmsContainerConfiguration configuration) Saves a single container configuration in an XML content object, but doesn't write it to the VFS.org.dom4j.Element
CmsContainerConfigurationWriter.serializeSingleConfiguration
(CmsObject cms, String name, CmsContainerConfiguration config, org.dom4j.Element parentElement) Serializes a single container configuration into an XML element.ModifierConstructorDescriptionCmsContainerConfigurationCache
(CmsObject cms, String name) Creates a new cache instance for inherited containers.Creates a new configuration parser.Creates a new parser instance. -
Uses of CmsObject in org.opencms.ade.contenteditor
Modifier and TypeMethodDescriptionCmsContentService.getCmsObject()
CmsContentTypeVisitor.getCmsObject()
Gets the CMS context.Modifier and TypeMethodDescriptionstatic List<CmsTabInfo>
CmsContentTypeVisitor.collectTabInfos
(CmsObject cms, CmsXmlContentDefinition definition, CmsMessages messages) Returns the tab informations for the given content definition.static CmsWidgetUtil.WidgetInfo
CmsWidgetUtil.collectWidgetInfo
(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, String path, CmsMessages messages, Locale overrideLocale) Collects widget information for a given content definition and content value path.static CmsWidgetUtil.WidgetInfo
CmsWidgetUtil.collectWidgetInfo
(CmsObject cms, I_CmsXmlContentValue value) Collects widget information for a given content value.static String
CmsContentService.defaultCreateResourceToEdit
(CmsObject cms, String newLink, Locale locale, String referenceSitePath, String modelFileSitePath, String mode, String postCreateHandler) Creates a new resource to edit, delegating to an edit handler if edit handler data is passed in.void
CmsDynamicCategoryFieldList.ensureFields
(CmsObject cms, CmsXmlContent content) Tries to add the collected fields to all locales of the given content.void
CmsDynamicCategoryFieldList.ensureFields
(CmsObject cms, CmsXmlContent content, Locale locale) Tries to add the collected fields to one locale of the given content.protected String
CmsContentService.getFileEncoding
(CmsObject cms, CmsResource file) Helper method to determine the encoding of the given file in the VFS, which must be set using the "content-encoding" property.static CmsAccessRestrictionInfo
CmsAccessRestrictionInfo.getRestrictionInfo
(CmsObject cms, CmsXmlContentDefinition contentDef) Gets the restriction info for the current user and content definition.CmsDelayedDefaultChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) CmsEditorChangeHandlerFormatterSelection.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.CmsEditorChangeHandlerProperty.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) ModifierConstructorDescriptionCmsContentTypeVisitor
(CmsObject cms, CmsFile file, Locale locale) Constructor. -
Uses of CmsObject in org.opencms.ade.detailpage
Modifier and TypeMethodDescriptionCmsDefaultDetailPageHandler.getAllDetailPages
(CmsObject cms, int resType) Gets the all detail pages.CmsPermissiveDetailPageHandler.getAllDetailPages
(CmsObject cms, int resType) I_CmsDetailPageHandler.getAllDetailPages
(CmsObject cms, int restype) Finds all detail pages for a given resource.CmsDetailPageUtil.getAllDetailPagesWithUrlName
(CmsObject cms, CmsResource res) Gets a list of detail page URIs for the given resource, with its URL name appended.static String
CmsDetailPageUtil.getBestUrlName
(CmsObject cms, CmsUUID id) Returns either the newest URL name for a structure id, or the structure id as a string if there is no URL name.CmsDefaultDetailPageHandler.getDetailPage
(CmsADEManager manager, CmsObject cms, String contentRootPath, String originPath, String targetDetailPage) Gets the detail page for a content element.CmsDefaultDetailPageHandler.getDetailPage
(CmsObject cms, String rootPath, String linkSource, String targetDetailPage) Gets the detail page to use for a detail resource.static String
CmsPermissiveDetailPageHandler.getDetailPage
(CmsADEManager manager, CmsObject cms, String pageRootPath, String originPath, String targetDetailPage) Gets the detail page for a content element.CmsPermissiveDetailPageHandler.getDetailPage
(CmsObject cms, String rootPath, String linkSource, String targetDetailPage) I_CmsDetailPageHandler.getDetailPage
(CmsObject cms, String rootPath, String linkSource, String targetDetailPage) Returns the detail page link for the given resource, or null if there is no detail page for the resource.void
CmsDefaultDetailPageHandler.initialize
(CmsObject offlineCms, CmsObject onlineCms) Initialize.void
CmsPermissiveDetailPageHandler.initialize
(CmsObject offlineCms, CmsObject onlineCms) void
I_CmsDetailPageHandler.initialize
(CmsObject offlineCms, CmsObject onlineCms) Initializes the detail page handler.CmsDetailPageResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) boolean
CmsDefaultDetailPageHandler.isValidDetailPage
(CmsObject cms, CmsResource page, CmsResource detailRes) Checks whether the given detail page is valid for the given resource.protected boolean
CmsDetailPageResourceHandler.isValidDetailPage
(CmsObject cms, CmsResource page, CmsResource detailRes) Checks whether the given detail page is valid for the given resource.boolean
CmsPermissiveDetailPageHandler.isValidDetailPage
(CmsObject cms, CmsResource page, CmsResource detailRes) Checks whether the given detail page is valid for the given resource.boolean
I_CmsDetailPageHandler.isValidDetailPage
(CmsObject cms, CmsResource page, CmsResource detailRes) Checks whether the given detail page is valid for the given resource.static CmsResource
CmsDetailPageUtil.lookupPage
(CmsObject cms, String uri) Looks up a page by URI (which may be a detail page URI, or a normal VFS uri).ModifierConstructorDescriptionCreates a new detail page configuration writer.CmsDetailPageFilter
(CmsObject cms, String rootPath) Creates a new instance based on the root path of a detail resource.CmsDetailPageFilter
(CmsObject cms, CmsResource resource) Creates a new instance based on an actual detail resource. -
Uses of CmsObject in org.opencms.ade.galleries
Modifier and TypeMethodDescriptionprotected CmsObject
CmsGalleryService.getSearchCms
(CmsGallerySearchBean searchObj) Gets an initialized CmsObject to be used for the actual search for a given search bean.Modifier and TypeMethodDescriptionprotected abstract T
A_CmsTreeTabDataPreloader.createEntry
(CmsObject cms, CmsResource resource) Creates a tree entry bean from a resource.static CmsVfsEntryBean
CmsGalleryService.generateVfsPreloadData
(CmsObject cms, CmsTreeOpenState vfsState, Set<String> folders) Generates the pre-loaded contents for the VFS tab of the gallery dialog.static String
CmsPreviewService.getPreviewContent
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsObject cms, CmsResource resource, Locale locale) Renders the preview content for the given resource and locale.Gets the replaced results for a specific resource type.CmsAddContentRestriction.TypeEntry.getResults
(CmsObject cms) Gets the results to be displayed in the 'add content' dialog.static CmsVfsEntryBean
CmsGalleryService.internalCreateVfsEntryBean
(CmsObject cms, CmsResource resource, String title, boolean isRoot, boolean isEditable, List<CmsVfsEntryBean> children, boolean isMatch) Creates the VFS entry bean for a resource.protected boolean
CmsGalleryService.isSitemapEntry
(CmsObject cms, CmsResource resource) Checks whether a given resource is a sitemap entry.A_CmsTreeTabDataPreloader.preloadData
(CmsObject cms, Set<CmsResource> openResources, Set<CmsResource> selectedResources) Creates the preload data for a collection of resources which correspond to "opened" tree items.static CmsAddContentRestriction
CmsAddContentRestriction.read
(CmsObject cms, I_CmsXmlContentLocation parent, String nodeName) Reads a content restriction from an XML content.CmsAddContentRestriction.readEntry
(CmsObject cms, I_CmsXmlContentValueLocation location) Reads the entry for a single type from the configuration.static CmsPoint
CmsPreviewService.readFocalPoint
(CmsObject cms, CmsResource resource) Reads the focal point from a resource.void
CmsPreviewService.readResourceInfo
(CmsObject cms, CmsResource resource, CmsResourceInfoBean resInfo, String locale) Retrieves the resource information and puts it into the provided resource info bean.ModifierConstructorDescriptionCmsGalleryFilteredNavTreeBuilder
(CmsObject cms, String rootPath) Creates a new navigation tree.Creates a new builder instance. -
Uses of CmsObject in org.opencms.ade.publish
Modifier and TypeFieldDescriptionprotected final CmsObject
CmsPublish.m_cms
The current cms context.Modifier and TypeMethodDescriptionstatic CmsObject
CmsPublishListHelper.adjustCmsObject
(CmsObject cms, boolean online) Initializes a CmsObject based on the given one, but with adjusted project information and configured, such that release and expiration date are ignored.CmsCollectorPublishListHelper.getCmsObject
(boolean online) Initializes a CmsObject.Modifier and TypeMethodDescriptionprotected void
CmsDirectPublishProject.addSubResources
(CmsObject cms, Set<CmsResource> resources) Adds contents of folders to a list of resources.static CmsObject
CmsPublishListHelper.adjustCmsObject
(CmsObject cms, boolean online) Initializes a CmsObject based on the given one, but with adjusted project information and configured, such that release and expiration date are ignored.CmsDummyRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) I_CmsPublishRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) Gets the set of additional related resources.protected static String
CmsPublish.getOuAwareName
(CmsObject cms, String name) Returns the simple name if the ou is the same as the current user's ou.CmsCurrentPageProject.getProjectBean
(CmsObject cms, Map<String, String> params) CmsDirectPublishProject.getProjectBean
(CmsObject cms, Map<String, String> params) CmsMyChangesProject.getProjectBean
(CmsObject cms, Map<String, String> params) CmsRealProjectVirtualWrapper.getProjectBean
(CmsObject cms, Map<String, String> params) I_CmsVirtualProject.getProjectBean
(CmsObject cms, Map<String, String> params) Gets the project bean.CmsPublishService.getPublishData
(CmsObject cms, HashMap<String, String> params, String workflowId, String projectParam, List<String> pathList, String closeLink, boolean confirm) Gets the publish data for the given parameters.CmsDefaultCollectorPublishListProvider.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) CmsCurrentPageProject.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) CmsDirectPublishProject.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) CmsMyChangesProject.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) CmsRealProjectVirtualWrapper.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) I_CmsVirtualProject.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) Returns an object that can be queried for 'related' resources specific to this virtual project.CmsRealProjectVirtualWrapper.getResources
(CmsObject cms, Map<String, String> params, String workflowId) Gets the resources of the virtual project.static String
CmsPublishService.wrapProjectName
(CmsObject cms, String name) Wraps the project name in a message string.ModifierConstructorDescriptionCmsCollectorPublishListHelper
(CmsObject cms, I_CmsContentLoadCollectorInfo collectorInfo, int collectorLimit) Creates a new instance.CmsPublish
(CmsObject cms) Creates a new instance.CmsPublish
(CmsObject cms, Map<String, String> params) Constructor with default options.CmsPublish
(CmsObject cms, CmsPublishOptions options) Constructor with options.CmsPublishRelationFinder
(CmsObject cms, Collection<CmsResource> resources, boolean keepOriginalUnchangedResources, I_CmsPublishRelatedResourceProvider relProvider) Creates a new instance. -
Uses of CmsObject in org.opencms.ade.sitemap
Modifier and TypeMethodDescriptionvoid
CmsVfsSitemapService.checkPermissions
(CmsObject cms) void
Clears the entry for a given site root, but only if the user from the given CMS context matches the user in the entry.Tries to update or create an entry for the given user/site root combination.ModifierConstructorDescriptionCreates a new helper object.CmsModelPageHelper
(CmsObject cms, CmsResource rootResource) Creates a new instance.CmsSitemapAttributeUpdater
(CmsObject cms, CmsXmlContent sitemapConfig) Creates a new instance.Initializes the session cache. -
Uses of CmsObject in org.opencms.ade.upload
Modifier and TypeMethodDescriptionstatic String
CmsUploadBean.getNewResourceName
(CmsObject cms, String fileName, String folder, boolean keepFileNames) Returns the VFS path for the given filename and folder.CmsDefaultUploadRestriction.getUploadRestrictionInfo
(CmsObject cms) I_CmsUploadRestriction.getUploadRestrictionInfo
(CmsObject cms) Gets the upload restriction information for the given CMS contextvoid
CmsDefaultUploadRestriction.setAdminCmsObject
(CmsObject adminCms) -
Uses of CmsObject in org.opencms.cache
Modifier and TypeMethodDescriptionCmsVfsMemoryObjectCache.getCachedObject
(CmsObject cms, String rootPath) Return an object from the cache.CmsVfsMemoryObjectCache.loadVfsObject
(CmsObject cms, String rootPath, org.apache.commons.collections.Transformer function) Uses a transformer for loading an object from a path if it has not already been cached, and then caches it.void
CmsVfsMemoryObjectCache.putCachedObject
(CmsObject cms, String rootPath, Object value) Puts an object into the cache. -
Uses of CmsObject in org.opencms.cmis
Modifier and TypeMethodDescriptionprotected CmsObject
CmsCmisRepository.getCmsObject
(CmsCmisCallContext context) Initializes a CMS context for the authentication data contained in a call context.Modifier and TypeMethodDescriptionstatic void
CmsCmisUtil.addDynamicProperties
(CmsObject cms, CmsCmisTypeManager typeManager, org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, CmsResource resource, Set<String> filter) Helper method to add the dynamic properties for a resource.protected org.apache.chemistry.opencmis.commons.data.Acl
CmsCmisRelationHelper.collectAcl
(CmsObject cms, CmsResource resource, boolean onlyBasic) Compiles the ACL for a relation.protected org.apache.chemistry.opencmis.commons.data.Acl
CmsCmisResourceHelper.collectAcl
(CmsObject cms, CmsResource resource, boolean onlyBasic) Compiles the ACL for a file or folder.protected org.apache.chemistry.opencmis.commons.data.AllowableActions
CmsCmisRelationHelper.collectAllowableActions
(CmsObject cms, CmsResource file, CmsRelation relation) Collects the allowable actions for a relation.protected org.apache.chemistry.opencmis.commons.data.AllowableActions
CmsCmisResourceHelper.collectAllowableActions
(CmsObject cms, CmsResource file) Compiles the allowable actions for a file or folder.protected org.apache.chemistry.opencmis.commons.data.ObjectData
CmsCmisRelationHelper.collectObjectData
(CmsCmisCallContext context, CmsObject cms, CmsResource resource, CmsRelation relation, Set<String> filter, boolean includeAllowableActions, boolean includeAcl) Fills in an ObjectData record.protected org.apache.chemistry.opencmis.commons.data.ObjectData
CmsCmisResourceHelper.collectObjectData
(CmsCmisCallContext context, CmsObject cms, CmsResource resource, Set<String> filter, String renditionFilter, boolean includeAllowableActions, boolean includeAcl, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships) Fills in an ObjectData record.protected org.apache.chemistry.opencmis.commons.data.Properties
CmsCmisRelationHelper.collectProperties
(CmsObject cms, CmsResource resource, CmsRelation relation, Set<String> orgfilter, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo) Gathers all base properties of a file or folder.protected org.apache.chemistry.opencmis.commons.data.Properties
CmsCmisResourceHelper.collectProperties
(CmsObject cms, CmsResource resource, Set<String> orgfilter, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo) Gathers all base properties of a file or folder.protected List<org.apache.chemistry.opencmis.commons.data.RenditionData>
CmsCmisResourceHelper.collectRenditions
(CmsObject cms, CmsResource resource, String renditionFilterString, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo) Collects renditions for a resource.static boolean
CmsCmisUtil.ensureLock
(CmsObject cms, CmsResource resource) Tries to lock a resource and throws an exception if it can't be locked.void
CmsCmisRelationHelper.RelationKey.fillRelation
(CmsObject cms) Reads the actual resource and relation data from the OpenCms VFS.protected String
A_CmsCmisRepository.getAcePrincipalName
(CmsObject cms, CmsUUID principalId) Gets a user-readable name for a principal id read from an ACE.static String
CmsCmisUtil.getAcePrincipalName
(CmsObject cms, CmsUUID principalId) Gets a user-readable name for a principal id read from an ACE.byte[]
I_CmsCmisRenditionProvider.getContent
(CmsObject cms, CmsResource resource) Gets the rendition content stream for the resource.I_CmsPropertyProvider.getPropertyValue
(CmsObject cms, CmsResource resource) Reads the property value.protected List<org.apache.chemistry.opencmis.commons.data.ObjectData>
CmsCmisRepository.getRelationshipObjectData
(CmsCmisCallContext context, CmsObject cms, CmsResource resource, org.apache.chemistry.opencmis.commons.enums.RelationshipDirection relationshipDirection, Set<String> filterSet, boolean includeAllowableActions) Gets the relationship data for a given resource.org.apache.chemistry.opencmis.commons.data.RenditionData
I_CmsCmisRenditionProvider.getRendition
(CmsObject cms, CmsResource resource) Gets the rendition data for a resource.static boolean
CmsCmisUtil.hasChildren
(CmsObject cms, CmsResource resource) Checks whether the given resource has any children.void
CmsCmisRepository.initializeCms
(CmsObject cms) void
I_CmsPropertyProvider.setPropertyValue
(CmsObject cms, CmsResource resource, String valueToSet) Writes the property value.ModifierConstructorDescriptionCmsCmisTypeManager
(CmsObject adminCms, List<I_CmsPropertyProvider> propertyProviders) Creates a new type manager instance. -
Uses of CmsObject in org.opencms.configuration
Modifier and TypeMethodDescriptionGets the string value with the maximal weight for the parameter with the given key.CmsParameterStore.getWeightedValue
(CmsObject cms, String key) Finds the value with the maximal weight for the given key.static Map<String,
CmsParameterStore.WeightedValue> Helper method for parsing a parameter file from a VFS resource.void
CmsConfigurationManager.setAdminCms
(CmsObject cms) Sets the admin CmsObject.void
I_CmsNeedsAdminCmsObject.setAdminCmsObject
(CmsObject adminCms) Sets the admin CmsObject.void
CmsSitesConfiguration.setCmsObject
(CmsObject cms) void
I_CmsXmlConfigurationWithUpdateHandler.setCmsObject
(CmsObject cms) Called during startup with a CmsObject with admin privileges. -
Uses of CmsObject in org.opencms.configuration.preferences
Modifier and TypeMethodDescriptionA_CmsPreference.getPropertyDefinition
(CmsObject cms) CmsElementViewPreference.getPropertyDefinition
(CmsObject cms) CmsLanguagePreference.getPropertyDefinition
(CmsObject cms) CmsProjectPreference.getPropertyDefinition
(CmsObject cms) CmsSitePreference.getPropertyDefinition
(CmsObject cms) CmsStartFolderPreference.getPropertyDefinition
(CmsObject cms) CmsStartGallleryPreference.getPropertyDefinition
(CmsObject cms) CmsStartViewPreference.getPropertyDefinition
(CmsObject cms) CmsUserDefinedPreference.getPropertyDefinition
(CmsObject cms) CmsWorkplaceModePreference.getPropertyDefinition
(CmsObject cms) CmsWrapperPreference.getPropertyDefinition
(CmsObject cms) I_CmsPreference.getPropertyDefinition
(CmsObject cms) Gets the metadata describing how the setting should be edited.static String
CmsSitePreference.getSiteSelectOptionsStatic
(CmsObject cms, Locale locale) Gets the options for the site selector.CmsStartViewPreference.getViewSelectOptions
(CmsObject cms, String value) Gets the select options for the view selector.boolean
A_CmsPreference.isDisabled
(CmsObject cms) boolean
CmsEditorPreference.isDisabled
(CmsObject cms) boolean
CmsStartViewPreference.isDisabled
(CmsObject cms) boolean
CmsWorkplaceModePreference.isDisabled
(CmsObject cms) boolean
CmsWrapperPreference.isDisabled
(CmsObject cms) boolean
I_CmsPreference.isDisabled
(CmsObject cms) Returns true if the preference is disabled. -
Uses of CmsObject in org.opencms.crypto
Modifier and TypeMethodDescriptionvoid
CmsAESTextEncryption.initialize
(CmsObject cms) void
I_CmsTextEncryption.initialize
(CmsObject cms) Initializes the encryption handler. -
Uses of CmsObject in org.opencms.db
Modifier and TypeMethodDescriptionboolean
CmsLoginManager.canLockBecauseOfInactivity
(CmsObject cms, CmsUser user) Checks whether a user account can be locked because of inactivity.protected CmsResource
CmsPublishList.checkContainsSubResources
(CmsObject cms, List<CmsResource> folders) Checks whether the publish list contains all sub-resources of a list of folders.protected void
CmsAliasManager.checkPermissionsForMassEdit
(CmsObject cms) Checks whether the current user has the permissions to mass edit the alias table, and throws an exception otherwise.protected boolean
CmsPublishList.containsSubResources
(CmsObject cms, CmsResource folder) Checks if the publish list contains all sub-resources of a given folder.protected void
CmsDriverManager.ensureSubResourcesOfMovedFoldersPublished
(CmsObject cms, CmsDbContext dbc, CmsPublishList pubList) Tries to add sub-resources of moved folders to the publish list and throws an exception if the publish list still does not contain some sub-resources of the moved folders.static String
CmsUserSettings.getAdditionalPreference
(CmsObject cms, String key, boolean useDefault) Gets a configured preference.CmsAliasManager.getAliasesForPath
(CmsObject cms, String siteRoot, String aliasPath) Gets the list of aliases for a path in a given site.CmsAliasManager.getAliasesForSite
(CmsObject cms, String siteRoot) Gets the list of aliases for a given site root.CmsAliasManager.getAliasesForStructureId
(CmsObject cms, CmsUUID structureId) Gets the aliases for a given structure id.long
CmsSubscriptionManager.getDateLastVisitedBy
(CmsObject cms, CmsUser user, String resourcePath) Returns the date when the resource was last visited by the user.long
CmsSubscriptionManager.getDateLastVisitedBy
(CmsObject cms, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.protected List<CmsResource>
CmsPublishList.getMissingSubResources
(CmsObject cms, List<CmsResource> folders) Gets the sub-resources of a list of folders which are missing from the publish list.protected List<CmsResource>
CmsPublishList.getMovedFolders
(CmsObject cms) Internal method to get the moved folders from the publish list.CmsAliasManager.getRewriteAliases
(CmsObject cms, String siteRoot) Reads the rewrite aliases for a given site root.CmsAliasManager.getRewriteAliasMatcher
(CmsObject cms, String siteRoot) Gets the rewrite alias matcher for the given site.CmsUserSettings.getStartGallery
(String galleryType, CmsObject cms) Returns the root site path to the start gallery of the user or the constant CmsPreferences.INPUT_DEFAULT.CmsPublishList.getTopMovedFolders
(CmsObject cms) Gets the list of moved folders which are not subfolders of other moved folders in the publish list.boolean
CmsAliasManager.hasPermissionsForMassEdit
(CmsObject cms, String siteRoot) Checks whether the current user has permissions for mass editing the alias table.protected CmsAliasImportResult
CmsAliasManager.importAlias
(CmsObject cms, String siteRoot, String aliasPath, String vfsPath, CmsAliasMode mode) Imports a single alias.CmsAliasManager.importAliases
(CmsObject cms, byte[] aliasData, String siteRoot, String separator) Imports alias CSV data.void
CmsImportFolder.importFolder
(String importFolderName, String importPath, CmsObject cms) Import that will read from the real file system.void
Import that will read from a ZIP file.void
CmsSubscriptionManager.initialize
(CmsObject cms) Initializes this subscription manager with the OpenCms system configuration.CmsUserTrackingResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) boolean
CmsLoginManager.isExcludedFromPasswordReset
(CmsObject cms, CmsUser user) Checks if the user should be excluded from password reset.boolean
CmsLoginManager.isPasswordReset
(CmsObject cms, CmsUser user) Checks if password has to be reset.void
CmsSubscriptionManager.markResourceAsVisitedBy
(CmsObject cms, String resourcePath, CmsUser user) Mark the given resource as visited by the user.void
CmsSubscriptionManager.markResourceAsVisitedBy
(CmsObject cms, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.protected CmsAliasImportResult
CmsAliasManager.processAliasImport
(CmsObject cms, String siteRoot, String aliasPath, String vfsPath, CmsAliasMode mode) Processes a single alias import operation which has already been parsed into fields.protected CmsAliasImportResult
CmsAliasManager.processAliasLine
(CmsObject cms, String siteRoot, String line, String separator) Processes a line from a CSV file containing the alias data to be imported.void
CmsDriverManager.publishJob
(CmsObject cms, CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Publishes the given publish job.void
CmsDriverManager.publishProject
(CmsObject cms, CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Publishes the resources of a specified publish list.CmsSecurityManager.publishProject
(CmsObject cms, CmsPublishList publishList, I_CmsReport report) Publishes the resources of a specified publish list.CmsSubscriptionManager.readAllSubscribedResources
(CmsObject cms, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsSubscriptionManager.readResourcesVisitedBy
(CmsObject cms, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsSubscriptionManager.readSubscribedDeletedResources
(CmsObject cms, CmsUser user, boolean includeGroups, String folderPath, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.CmsSubscriptionManager.readSubscribedResources
(CmsObject cms, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.void
CmsLoginManager.removeLoginMessage
(CmsObject cms) Removes the current login message.boolean
CmsLoginManager.requiresPasswordChange
(CmsObject cms, CmsUser user) Checks if a user is required to change his password now.boolean
CmsLoginManager.requiresUserDataCheck
(CmsObject cms, CmsUser user) Checks if a user is required to change his password now.void
Revives the publish list by populating the internal resource lists with
instances.CmsResource
void
Saves the changed settings of the user to the usersCmsUser.getAdditionalInfo()
map.void
CmsAliasManager.saveAliases
(CmsObject cms, CmsUUID structureId, List<CmsAlias> aliases) Saves the aliases for a given structure id, completely replacing any existing aliases for the same structure id.void
CmsAliasManager.saveRewriteAliases
(CmsObject cms, String siteRoot, List<CmsRewriteAlias> newAliases) Saves the rewrite alias for a given site root.static void
CmsUserSettings.setAdditionalPreference
(CmsObject cms, String key, String value) Sets a configured preference.void
CmsLoginManager.setBeforeLoginMessage
(CmsObject cms, CmsLoginMessage message) Sets the before login message to display on the login form.void
CmsLoginManager.setLoginMessage
(CmsObject cms, CmsLoginMessage message) Sets the login message to display if a user logs in.void
CmsSubscriptionManager.setSubscribedResourceAsDeleted
(CmsObject cms, CmsResource resource) Marks a subscribed resource as deleted.void
CmsSubscriptionFilter.setUserGroups
(CmsObject cms) Sets the groups of the user currently set in this filter as the list of groups to check subscribed resources for.void
CmsSubscriptionManager.subscribeResourceFor
(CmsObject cms, CmsPrincipal principal, String resourcePath) Subscribes the user or group to the resource.void
CmsSubscriptionManager.subscribeResourceFor
(CmsObject cms, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
CmsLoginManager.unlockUser
(CmsObject cms, CmsUser user) Unlocks a user who has exceeded his number of failed login attempts so that he can try to log in again.void
CmsSubscriptionManager.unsubscribeAllDeletedResources
(CmsObject cms, long deletedTo) Unsubscribes all deleted resources that were deleted before the specified time stamp.void
CmsSubscriptionManager.unsubscribeAllResourcesFor
(CmsObject cms, CmsPrincipal principal) Unsubscribes the user or group from all resources.void
CmsSubscriptionManager.unsubscribeResourceFor
(CmsObject cms, CmsPrincipal principal, String resourcePath) Unsubscribes the principal from the resource.void
CmsSubscriptionManager.unsubscribeResourceFor
(CmsObject cms, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsSubscriptionManager.unsubscribeResourceForAll
(CmsObject cms, String resourcePath) Unsubscribes all groups and users from the resource.void
CmsSubscriptionManager.unsubscribeResourceForAll
(CmsObject cms, CmsResource resource) Unsubscribes all groups and users from the resource.void
CmsAliasManager.updateAliases
(CmsObject cms, Collection<CmsAlias> toDelete, Collection<CmsAlias> toAdd) Updates the aliases in the database.ModifierConstructorDescriptionCmsImportFolder
(byte[] content, String importPath, CmsObject cms, boolean noSubFolder) Constructor for a new CmsImportFolder that will read from a ZIP file.CmsImportFolder
(String importFolderName, String importPath, CmsObject cms) Constructor for a new CmsImportFolder that will read from the real file system.Constructor, setting the user to the current user from the context.CmsSubscriptionFilter
(CmsObject cms, boolean addUserGroups) Constructor, setting the user to the current user from the context.CmsUserSettings
(CmsObject cms) Creates a user settings object with initialized settings of the current user.Constructor, setting the user to the current user from the context. -
Uses of CmsObject in org.opencms.file
Modifier and TypeMethodDescriptionprotected String
CmsLinkRewriter.getConfiguredEncoding
(CmsObject cms, CmsResource resource) Gets the encoding which is configured at the location of a given resource.CmsUser.getDisplayName
(CmsObject cms, Locale locale) static CmsResourceFilter
CmsResourceFilter.ignoreExpirationOffline
(CmsObject cms) Returns the DEFAULT filter in the Online project, and IGNORE_EXPIRATION otherwise.ModifierConstructorDescriptionCmsLinkRewriter
(CmsObject cms, String source, String target) Creates a link rewriter for use after a single copy operation.Creates a new link rewriter for a list of sources and corresponding targets.CmsLinkRewriter
(CmsObject cms, List<String> sources, String target) Creates a link rewriter for use after a multi-copy operation. -
Uses of CmsObject in org.opencms.file.collectors
Modifier and TypeMethodDescriptionprotected List<CmsResource>
CmsChangedResourceCollector.allChangedInFolderDate
(CmsObject cms, String param, boolean tree, boolean asc, int numResults) Returns a List of all changed resources in the folder pointed to by the parameter sorted by the date attributes specified in the parameter.protected List<CmsResource>
CmsDateResourceCollector.allInFolderDate
(CmsObject cms, String param, boolean tree, boolean asc, int numResults) Returns a List of all resources in the folder pointed to by the parameter sorted by the selected dates.protected List<CmsResource>
CmsDefaultResourceCollector.allInFolderDateReleasedDesc
(CmsObject cms, String param, boolean tree, int numResults) Returns a List of all resources in the folder pointed to by the parameter sorted by the release date, descending.protected List<CmsResource>
CmsDefaultResourceCollector.allInFolderNavPos
(CmsObject cms, String param, boolean readSubTree, int numResults) Collects all resources in a folder (or subtree) sorted by the NavPos property.protected List<CmsResource>
CmsPriorityResourceCollector.allInFolderPriorityDate
(CmsObject cms, String param, boolean tree, boolean asc, int numResults) Returns a list of all resource in a specified folder sorted by priority, then date ascending or descending.protected List<CmsResource>
CmsPriorityResourceCollector.allInFolderPriorityTitle
(CmsObject cms, String param, boolean tree, int numResults) Returns a list of all resource in a specified folder sorted by priority descending, then Title ascending.protected List<CmsResource>
CmsCategoryResourceCollector.allKeyValuePairFiltered
(CmsObject cms, String param, int numResults) Collects all resources for the given categories filtered and sorted by the given collector parameter.protected List<CmsResource>
CmsPriorityResourceCollector.allMappedToUriPriorityDate
(CmsObject cms, String param, boolean asc, int numResults) Returns a list of all resource from specified folder that have been mapped to the currently requested uri, sorted by priority, then date ascending or descending.static long
CmsDateResourceComparator.calculateDate
(CmsObject cms, CmsResource resource, List<String> dateIdentifiers, long defaultValue) Calculates the date to use for comparison of this resource based on the given date identifiers.static String
A_CmsResourceCollector.createResourceForCollector
(CmsObject cms, String newLink, Locale locale, String referenceResource, String modelFile, String mode, String postCreateHandler) Creates a new content collector resource.protected List<CmsResource>
CmsDefaultResourceCollector.getAllInFolder
(CmsObject cms, String param, boolean tree, int numResults) Returns all resources in the folder pointed to by the parameter.protected String
A_CmsResourceCollector.getCreateInFolder
(CmsObject cms, String param) Returns the link to create a new XML content item in the folder pointed to by the parameter.protected String
A_CmsResourceCollector.getCreateInFolder
(CmsObject cms, CmsCollectorData data) Returns the link to create a new XML content item in the folder pointed to by the parameter.A_CmsResourceCollector.getCreateLink
(CmsObject cms) CmsCategoryResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsChangedResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsPriorityResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsSolrCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsSubscriptionCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsTimeFrameCategoryCollector.getCreateLink
(CmsObject cms, String collectorName, String param) I_CmsResourceCollector.getCreateLink
(CmsObject cms) Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the default collector.I_CmsResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the named collector.A_CmsResourceCollector.getCreateParam
(CmsObject cms) CmsCategoryResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsChangedResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsPriorityResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsSolrCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsSubscriptionCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsTimeFrameCategoryCollector.getCreateParam
(CmsObject cms, String collectorName, String param) I_CmsResourceCollector.getCreateParam
(CmsObject cms) Returns the default parameter that must be passed to theI_CmsResourceCollector.getCreateLink(CmsObject, String, String)
method.I_CmsResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) Returns the parameter that must be passed to theI_CmsResourceCollector.getCreateLink(CmsObject, String, String)
method.int
A_CmsResourceCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
CmsDateResourceCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
CmsDefaultResourceCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
CmsPriorityResourceCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
CmsSolrCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
CmsTimeFrameCategoryCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) int
I_CmsResourceCollector.getCreateTypeId
(CmsObject cms, String collectorName, String param) Returns the id of the resource type for new collector items.A_CmsResourceCollector.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) I_CmsCollectorPublishListProvider.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) Gets the publish list for the collector.A_CmsResourceCollector.getResults
(CmsObject cms) CmsCategoryResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsCategoryResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsChangedResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsChangedResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsDateResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsDefaultResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsPriorityResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsPriorityResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsSolrCollector.getResults
(CmsObject cms, String collectorName, String param) CmsSolrCollector.getResults
(CmsObject cms, String name, String param, int numResults) CmsSubscriptionCollector.getResults
(CmsObject cms, String collectorName, String param) CmsSubscriptionCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsTimeFrameCategoryCollector.getResults
(CmsObject cms, String collectorName, String param) CmsTimeFrameCategoryCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) I_CmsResourceCollector.getResults
(CmsObject cms) Returns a list ofCmsResource
Objects that are gathered in the VFS using the default collector name and parameter.I_CmsResourceCollector.getResults
(CmsObject cms, String collectorName, String param) Returns a list ofCmsResource
Objects that are gathered in the VFS using the named collector.I_CmsResourceCollector.getResults
(CmsObject cms, String collectorName, String params, int numResults) Returns a list ofCmsResource
Objects that are gathered in the VFS using the named collector.protected List<CmsResource>
CmsDefaultResourceCollector.getSingleFile
(CmsObject cms, String param) Returns a List containing the resources pointed to by the parameter.protected List<CmsResource>
CmsSubscriptionCollector.getSubscribedDeletedResources
(CmsObject cms, String param, int numResults) Returns the subscribed deleted resources according to the collector parameter.protected List<CmsResource>
CmsSubscriptionCollector.getSubscribedResources
(CmsObject cms, String param, int numResults) Returns the subscribed resources according to the collector parameter.protected CmsSubscriptionFilter
CmsSubscriptionCollector.getSubscriptionFilter
(CmsObject cms, String param) Returns the configured subscription filter to use.protected CmsSubscriptionFilter
CmsSubscriptionCollector.getSubscriptionFilter
(CmsObject cms, Map<String, String> params) Returns the configured subscription filter to use.protected CmsVisitedByFilter
CmsSubscriptionCollector.getVisitedByFilter
(CmsObject cms, String param) Returns the configured visited by filter to use.protected List<CmsResource>
CmsSubscriptionCollector.getVisitedResources
(CmsObject cms, String param, int numResults) Returns the visited resources according to the collector parameter.void
CmsAddCategoriesPostCreateHandler.onCreate
(CmsObject cms, CmsResource createdResource, boolean copyMode) void
CmsAddCategoriesPostCreateHandler.onCreate
(CmsObject cms, CmsResource createdResource, boolean copyMode, String config) Adds the categories specified viaconfig
to the newly created resource iff not in copy mode.void
CmsDefaultPostCreateHandler.onCreate
(CmsObject cms, CmsResource createdResource, boolean copyMode) void
I_CmsCollectorPostCreateHandler.onCreate
(CmsObject cms, CmsResource createdResource, boolean copyMode) This is called after the new content has been created (and possibly already been filled with content).default void
I_CmsCollectorPostCreateHandler.onCreate
(CmsObject cms, CmsResource createdResource, boolean copyMode, String config) This is called after the new content has been created (and possibly already been filled with content).ModifierConstructorDescriptionCmsDateResourceComparator
(CmsObject cms, List<String> dateIdentifiers, boolean asc) Creates a new instance of this comparator key.CmsPriorityDateResourceComparator
(CmsObject cms, boolean asc) Creates a new instance of this comparator key.Creates a new instance of this comparator key.CmsPropertyResourceComparator
(CmsObject cms, String property, boolean asc) Creates a new instance of this comparator key. -
Uses of CmsObject in org.opencms.file.history
Modifier and TypeMethodDescriptionCmsHistoryProject.getGroupManagersName
(CmsObject cms) Returns the project manager group name.CmsHistoryProject.getGroupUsersName
(CmsObject cms) Returns the projects user group name.CmsHistoryProject.getOwnerName
(CmsObject cms) Returns the owner name.CmsHistoryProject.getPublishedByName
(CmsObject cms) Returns the publishers name.static CmsResource
CmsHistoryResourceHandler.getResourceWithHistory
(CmsObject cms, String resourceUri) Returns the correct resource for the given URI, taken into account historical versions marked by theversion
parameter.CmsHistoryFile.getUserCreatedName
(CmsObject cms) Returns the name of the user that created this resource.CmsHistoryFolder.getUserCreatedName
(CmsObject cms) Returns the name of the user that created this resource.CmsHistoryFile.getUserLastModifiedName
(CmsObject cms) Returns the name of the user that last modified this resource.CmsHistoryFolder.getUserLastModifiedName
(CmsObject cms) Returns the name of the user that last modified this resource.CmsHistoryResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) -
Uses of CmsObject in org.opencms.file.types
Modifier and TypeMethodDescriptionvoid
A_CmsResourceType.changeLock
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) void
I_CmsResourceType.changeLock
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) Changes the lock of a resource to the current user, that is "steals" the lock from another user.void
A_CmsResourceType.chflags
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int flags) void
I_CmsResourceType.chflags
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int flags) Changes the resource flags of a resource.void
A_CmsResourceType.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type) Deprecated.void
A_CmsResourceType.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, I_CmsResourceType type) void
A_CmsResourceTypeFolderBase.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource filename, int newType) void
CmsResourceTypeJsp.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type) void
CmsResourceTypePlain.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type) void
I_CmsResourceType.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type) Deprecated.void
I_CmsResourceType.chtype
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, I_CmsResourceType type) Changes the resource type of a resource.void
A_CmsResourceType.copyResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) void
A_CmsResourceTypeFolderBase.copyResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) void
I_CmsResourceType.copyResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.void
A_CmsResourceType.copyResourceToProject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) void
I_CmsResourceType.copyResourceToProject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) Copies a resource to the current project of the user.protected CmsResource
A_CmsResourceType.createRelations
(CmsObject cms, CmsSecurityManager securityManager, String resourceName, boolean updateSiblingState) Creates the relation information for the resource with the given resource name.A_CmsResourceType.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) A_CmsResourceTypeFolderBase.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) CmsResourceTypeImage.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) CmsResourceTypeXmlContainerPage.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) CmsResourceTypeXmlContent.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) CmsResourceTypeXmlPage.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) I_CmsResourceType.createResource
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.A_CmsResourceType.createSibling
(CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, List<CmsProperty> properties) I_CmsResourceType.createSibling
(CmsObject cms, CmsSecurityManager securityManager, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.void
A_CmsResourceType.deleteResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) void
CmsResourceTypeJsp.deleteResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) void
CmsResourceTypePlain.deleteResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) void
CmsResourceTypeXmlContent.deleteResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) void
I_CmsResourceType.deleteResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource given its name.protected List<CmsConfigurationCopyResource>
A_CmsResourceType.getCopyResources
(CmsObject cms, String resourcename, CmsMacroResolver resolver) Gets the actual copy resources to use when creating a resource.protected List<CmsConfigurationCopyResource>
CmsResourceTypeSubsitemapContentFolder.getCopyResources
(CmsObject cms, String resourcename, CmsMacroResolver resolver) static CmsImageScaler
CmsResourceTypeImage.getDownScaler
(CmsObject cms, String rootPath) Returns the image downscaler to use when writing an image resource to the given root path.CmsResourceTypeXmlContent.getEditHandler
(CmsObject cms) Returns the edit handler if configured.A_CmsResourceType.getFormattersForResource
(CmsObject cms, CmsResource res) CmsResourceTypeJsp.getFormattersForResource
(CmsObject cms, CmsResource res) CmsResourceTypeXmlContent.getFormattersForResource
(CmsObject cms, CmsResource resource) I_CmsResourceType.getFormattersForResource
(CmsObject cms, CmsResource resource) Returns the formatter configuration for the given resource.protected Locale
CmsResourceTypeLocaleIndependentXmlContent.getLocaleForNewContent
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, List<CmsProperty> properties) This overridden method ensures that configurations will always be created with an english locale node.protected Locale
CmsResourceTypeXmlAdeConfiguration.getLocaleForNewContent
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, List<CmsProperty> properties) This overridden method ensures that configurations will always be created with an english locale node.protected Locale
CmsResourceTypeXmlContent.getLocaleForNewContent
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, List<CmsProperty> properties) Gets the locale which should be used for creating an empty content.protected CmsMacroResolver
A_CmsResourceType.getMacroResolver
(CmsObject cms, String resourcename) Creates a macro resolver based on the current users OpenCms context and the provided resource name.static List<CmsResource>
CmsResourceTypeXmlContent.getModelFiles
(CmsObject cms, String currentFolder, String newResourceTypeName) Returns the possible model files for the new resource.CmsResourceTypeJsp.getReferencingStrongLinks
(CmsObject cms, CmsResource resource) Returns a set of root paths of files that are including the given resource using the 'link.strong' macro.CmsResourceTypePlain.getReferencingStrongLinks
(CmsObject cms, CmsResource resource) Returns a set of root paths of files that are including the given resource using the 'link.strong' macro.protected CmsLink
CmsResourceTypeXmlContent.getXsdLink
(CmsObject cms, CmsXmlContent xmlContent) Creates a new link object for the schema definition.A_CmsResourceType.importResource
(CmsObject cms, CmsSecurityManager securityManager, I_CmsReport report, String resourcename, CmsResource resource, byte[] content, List<CmsProperty> properties) CmsResourceTypeImage.importResource
(CmsObject cms, CmsSecurityManager securityManager, I_CmsReport report, String resourcename, CmsResource resource, byte[] content, List<CmsProperty> properties) I_CmsResourceType.importResource
(CmsObject cms, CmsSecurityManager securityManager, I_CmsReport report, String resourcename, CmsResource resource, byte[] content, List<CmsProperty> properties) Imports a resource to the OpenCms VFS.void
A_CmsResourceType.initialize
(CmsObject cms) void
CmsResourceTypeJsp.initialize
(CmsObject cms) void
CmsResourceTypePlain.initialize
(CmsObject cms) void
CmsResourceTypeXmlContent.initialize
(CmsObject cms) void
I_CmsResourceType.initialize
(CmsObject cms) Initializes this resource type.static boolean
CmsResourceTypeXmlContainerPage.isModelCopyGroup
(CmsObject cms, CmsResource resource) Checks whether the given resource is a model reuse group.void
A_CmsResourceType.lockResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsLockType type) void
I_CmsResourceType.lockResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsLockType type) Locks a resource.void
A_CmsResourceType.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) void
A_CmsResourceTypeFolderBase.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) void
CmsResourceTypeJsp.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) void
CmsResourceTypePlain.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) void
CmsResourceTypeXmlContent.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) void
I_CmsResourceType.moveResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, String destination) Moves a resource to the given destination.CmsResourceTypeJsp.parseLinks
(CmsObject cms, CmsFile file) CmsResourceTypeXmlContainerPage.parseLinks
(CmsObject cms, CmsFile file) CmsResourceTypeXmlContent.parseLinks
(CmsObject cms, CmsFile file) CmsResourceTypeXmlPage.parseLinks
(CmsObject cms, CmsFile file) protected void
A_CmsResourceType.processCopyResources
(CmsObject cms, String resourcename, CmsMacroResolver resolver) Processes the copy resources of this resource type.void
A_CmsResourceType.removeResourceFromProject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) void
I_CmsResourceType.removeResourceFromProject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) Removes a resource from the current project of the user.void
A_CmsResourceType.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
A_CmsResourceType.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, I_CmsResourceType type, byte[] content, List<CmsProperty> properties) void
A_CmsResourceTypeFolderBase.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
CmsResourceTypeImage.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
CmsResourceTypeJsp.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
CmsResourceTypePlain.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
I_CmsResourceType.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) void
I_CmsResourceType.replaceResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, I_CmsResourceType type, byte[] content, List<CmsProperty> properties) Replaces the content, type and properties of a resource.void
A_CmsResourceType.restoreResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int version) void
CmsResourceTypeJsp.restoreResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int version) void
CmsResourceTypePlain.restoreResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int version) void
I_CmsResourceType.restoreResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int version) Restores a resource in the current project with a version from the historical archive.void
A_CmsResourceType.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateExpired, boolean recursive) void
A_CmsResourceTypeFolderBase.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
CmsResourceTypeJsp.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateExpired, boolean recursive) void
CmsResourceTypePlain.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateExpired, boolean recursive) void
CmsResourceTypeXmlContent.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateExpired, boolean recursive) void
I_CmsResourceType.setDateExpired
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateExpired, boolean recursive) Changes the "expire" date of a resource.void
A_CmsResourceType.setDateLastModified
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
A_CmsResourceTypeFolderBase.setDateLastModified
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
CmsResourceTypeJsp.setDateLastModified
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
CmsResourceTypePlain.setDateLastModified
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
I_CmsResourceType.setDateLastModified
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) Changes the "last modified" date of a resource.void
A_CmsResourceType.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateReleased, boolean recursive) void
A_CmsResourceTypeFolderBase.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateLastModified, boolean recursive) void
CmsResourceTypeJsp.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateReleased, boolean recursive) void
CmsResourceTypePlain.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateReleased, boolean recursive) void
CmsResourceTypeXmlContent.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateReleased, boolean recursive) void
I_CmsResourceType.setDateReleased
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, long dateReleased, boolean recursive) Changes the "release" date of a resource.void
A_CmsResourceType.undelete
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, boolean recursive) void
A_CmsResourceTypeFolderBase.undelete
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, boolean recursive) void
I_CmsResourceType.undelete
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, boolean recursive) Undeletes a resource.void
A_CmsResourceType.undoChanges
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceUndoMode mode) void
A_CmsResourceTypeFolderBase.undoChanges
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceUndoMode mode) void
CmsResourceTypeJsp.undoChanges
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceUndoMode mode) void
CmsResourceTypePlain.undoChanges
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceUndoMode mode) void
I_CmsResourceType.undoChanges
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsResource.CmsResourceUndoMode mode) Undos all changes in the resource by restoring the version from the online project to the current offline project.void
A_CmsResourceType.unlockResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) void
I_CmsResourceType.unlockResource
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) Unlocks a resource.protected void
A_CmsResourceType.updateRelationForUndo
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource) Update the relations after an undo changes operation.A_CmsResourceType.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeFunctionConfig.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeImage.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeJsp.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypePlain.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeXmlContainerPage.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeXmlContent.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) CmsResourceTypeXmlPage.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) I_CmsResourceType.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) Writes a resource, including it's content.void
A_CmsResourceType.writePropertyObject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsProperty property) void
I_CmsResourceType.writePropertyObject
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, CmsProperty property) Writes a property for a specified resource.void
A_CmsResourceType.writePropertyObjects
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, List<CmsProperty> properties) void
I_CmsResourceType.writePropertyObjects
(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, List<CmsProperty> properties) Writes a list of properties for a specified resource. -
Uses of CmsObject in org.opencms.file.wrapper
Modifier and TypeMethodDescriptionstatic String
CmsResourceWrapperUtils.addFileExtension
(CmsObject cms, String resourcename, String extension) Adds a file extension to the resource name.A_CmsResourceWrapper.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperModules.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperModulesNonLazy.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperPropertyFile.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperSystemFolder.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperXmlPage.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) I_CmsResourceWrapper.addResourcesToFolder
(CmsObject cms, String resourcename, CmsResourceFilter filter) Here it is possible to add additional (virtual) child resources to those already existing in the VFS.boolean
A_CmsResourceExtensionWrapper.copyResource
(CmsObject cms, String source, String destination, CmsResource.CmsResourceCopyMode siblingMode) boolean
A_CmsResourceWrapper.copyResource
(CmsObject cms, String source, String destination, CmsResource.CmsResourceCopyMode siblingMode) boolean
CmsResourceWrapperXmlPage.copyResource
(CmsObject cms, String source, String destination, CmsResource.CmsResourceCopyMode siblingMode) boolean
I_CmsResourceWrapper.copyResource
(CmsObject cms, String source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.static CmsFile
CmsResourceWrapperUtils.createPropertyFile
(CmsObject cms, CmsResource res, String path) Creates a virtual CmsFile with the individual and shared properties as content.A_CmsResourceExtensionWrapper.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) A_CmsResourceWrapper.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperModules.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperModulesNonLazy.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperPreventCreateNameCI.createResource
(CmsObject cms, String resourcepath, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperPreventCreateNameRegex.createResource
(CmsObject cms, String resourcepath, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperPropertyFile.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperReplaceDeleted.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) CmsResourceWrapperXmlPage.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) I_CmsResourceWrapper.createResource
(CmsObject cms, String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.boolean
A_CmsResourceExtensionWrapper.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
A_CmsResourceWrapper.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
CmsResourceWrapperModules.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
CmsResourceWrapperModulesNonLazy.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
CmsResourceWrapperPropertyFile.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
CmsResourceWrapperXmlPage.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) boolean
I_CmsResourceWrapper.deleteResource
(CmsObject cms, String resourcename, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource given its name.A_CmsResourceExtensionWrapper.getLock
(CmsObject cms, CmsResource resource) A_CmsResourceWrapper.getLock
(CmsObject cms, CmsResource resource) CmsResourceWrapperModules.getLock
(CmsObject cms, CmsResource resource) CmsResourceWrapperModulesNonLazy.getLock
(CmsObject cms, CmsResource resource) CmsResourceWrapperPropertyFile.getLock
(CmsObject cms, CmsResource resource) CmsResourceWrapperXmlPage.getLock
(CmsObject cms, CmsResource resource) I_CmsResourceWrapper.getLock
(CmsObject cms, CmsResource resource) Returns the lock for the resource.protected String
CmsResourceWrapperXmlPage.getUriStyleSheet
(CmsObject cms, CmsResource res) Returns the OpenCms VFS uri of the style sheet of the resource.protected String
CmsResourceWrapperXmlPage.getUriTemplate
(CmsObject cms, CmsResource res) Returns the OpenCms VFS uri of the template of the resource.boolean
A_CmsResourceExtensionWrapper.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperModules.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperModulesNonLazy.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperPreventCreateNameCI.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperPreventCreateNameRegex.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperPropertyFile.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperReplaceDeleted.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperSystemFolder.isWrappedResource
(CmsObject cms, CmsResource res) boolean
CmsResourceWrapperXmlPage.isWrappedResource
(CmsObject cms, CmsResource res) boolean
I_CmsResourceWrapper.isWrappedResource
(CmsObject cms, CmsResource res) Is called to check if the given resource is handled by this wrapper.boolean
A_CmsResourceExtensionWrapper.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
A_CmsResourceWrapper.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
CmsResourceWrapperModules.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
CmsResourceWrapperModulesNonLazy.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
CmsResourceWrapperPropertyFile.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
CmsResourceWrapperXmlPage.lockResource
(CmsObject cms, String resourcename, boolean temporary) boolean
I_CmsResourceWrapper.lockResource
(CmsObject cms, String resourcename, boolean temporary) Locks a resource.boolean
A_CmsResourceExtensionWrapper.moveResource
(CmsObject cms, String source, String destination) boolean
A_CmsResourceWrapper.moveResource
(CmsObject cms, String source, String destination) boolean
CmsResourceWrapperPreventCreateNameCI.moveResource
(CmsObject cms, String source, String destination) boolean
CmsResourceWrapperPreventCreateNameRegex.moveResource
(CmsObject cms, String source, String destination) boolean
CmsResourceWrapperXmlPage.moveResource
(CmsObject cms, String source, String destination) boolean
I_CmsResourceWrapper.moveResource
(CmsObject cms, String source, String destination) Moves a resource to the given destination.protected String
CmsResourceWrapperXmlPage.prepareContent
(String content, CmsObject cms, CmsResource xmlPage, String path) Prepare the content of a xml page before returning.A_CmsResourceExtensionWrapper.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) A_CmsResourceWrapper.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperModules.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperModulesNonLazy.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperPropertyFile.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperXmlPage.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) I_CmsResourceWrapper.readFile
(CmsObject cms, String resourcename, CmsResourceFilter filter) Reads a file resource (including it's binary content) from the VFS, using the specified resource filter.A_CmsResourceExtensionWrapper.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) A_CmsResourceWrapper.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperModules.readResource
(CmsObject cms, String resourcepath, CmsResourceFilter filter) CmsResourceWrapperModulesNonLazy.readResource
(CmsObject cms, String resourcepath, CmsResourceFilter filter) CmsResourceWrapperPropertyFile.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperSystemFolder.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsResourceWrapperXmlPage.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) I_CmsResourceWrapper.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.static String
CmsResourceWrapperUtils.removeFileExtension
(CmsObject cms, String resourcename, String extension) Removes an added file extension from the resource name.A_CmsResourceExtensionWrapper.restoreLink
(CmsObject cms, String uri) A_CmsResourceWrapper.restoreLink
(CmsObject cms, String uri) CmsResourceWrapperPropertyFile.restoreLink
(CmsObject cms, String uri) CmsResourceWrapperXmlPage.restoreLink
(CmsObject cms, String uri) I_CmsResourceWrapper.restoreLink
(CmsObject cms, String uri) Returns the link to a existing resource in the VFS for the uri.A_CmsResourceExtensionWrapper.rewriteLink
(CmsObject cms, CmsResource res) A_CmsResourceWrapper.rewriteLink
(CmsObject cms, CmsResource res) CmsResourceWrapperXmlPage.rewriteLink
(CmsObject cms, CmsResource res) I_CmsResourceWrapper.rewriteLink
(CmsObject cms, CmsResource res) Returns the link how it is for the resource after using this resource wrapper.boolean
A_CmsResourceExtensionWrapper.unlockResource
(CmsObject cms, String resourcename) boolean
A_CmsResourceWrapper.unlockResource
(CmsObject cms, String resourcename) boolean
CmsResourceWrapperModules.unlockResource
(CmsObject cms, String resourcename) boolean
CmsResourceWrapperModulesNonLazy.unlockResource
(CmsObject cms, String resourcename) boolean
CmsResourceWrapperPropertyFile.unlockResource
(CmsObject cms, String resourcename) boolean
CmsResourceWrapperXmlPage.unlockResource
(CmsObject cms, String resourcename) boolean
I_CmsResourceWrapper.unlockResource
(CmsObject cms, String resourcename) Unlocks a resource.A_CmsResourceExtensionWrapper.wrapResource
(CmsObject cms, CmsResource res) A_CmsResourceWrapper.wrapResource
(CmsObject cms, CmsResource resource) CmsResourceWrapperXmlPage.wrapResource
(CmsObject cms, CmsResource res) I_CmsResourceWrapper.wrapResource
(CmsObject cms, CmsResource resource) Changes the given resource based on the implementation of this wrapper.Writes a resource, including it's content.static void
CmsResourceWrapperUtils.writePropertyFile
(CmsObject cms, String resourcename, byte[] content) Takes the content which should be formatted as a property file and set them as properties to the resource.ModifierConstructorDescriptionCmsObjectWrapper
(CmsObject cms, List<I_CmsResourceWrapper> wrappers) Constructor with the CmsObject to wrap and the resource wrappers to use. -
Uses of CmsObject in org.opencms.flex
Modifier and TypeMethodDescriptionCmsFlexController.getCmsObject()
Returns the wrapped CmsObject.static CmsObject
CmsFlexController.getCmsObject
(javax.servlet.ServletRequest req) Returns the wrapped CmsObject form the provided request, ornull
if the request is not running inside OpenCms.Modifier and TypeMethodDescriptionCmsFlexCache.getCachedKey
(String key, CmsObject cms) Returns the CmsFlexCacheKey data structure for a given key (i.e.CmsFlexCache.getCachedResources
(CmsObject cms) Returns a set of all cached resource names.CmsFlexCache.getCachedVariations
(String key, CmsObject cms) Returns all variations in the cache for a given resource name.void
CmsFlexCache.initializeCms
(CmsObject adminCms) Initializes the flex cache.static CmsFlexBucketConfiguration
CmsFlexBucketConfiguration.loadFromVfsFile
(CmsObject cms, String path) Loads a flex bucket configuration from the OpenCms VFS.ModifierConstructorDescriptionCmsFlexController
(CmsObject cms, CmsResource resource, CmsFlexCache cache, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean streaming, boolean top) Default constructor.CmsFlexController
(CmsObject cms, CmsFlexController base) Creates a new controller form the old one, exchanging just the provided OpenCms user context. -
Uses of CmsObject in org.opencms.gwt
Modifier and TypeMethodDescriptionCmsGwtService.getCmsObject()
Returns the current cms context.protected CmsObject
CmsTemplateFinder.getCmsObject()
Gets the CMS context to use.Modifier and TypeMethodDescriptionstatic CmsListInfoBean
CmsVfsService.addLockInfo
(CmsObject cms, CmsResource resource, CmsListInfoBean resourceInfo) Adds the lock state information to the resource info bean.static CmsListInfoBean
CmsVfsService.addPageInfo
(CmsObject cms, CmsResource resource, CmsListInfoBean listInfo) Gets page information of a resource and adds it to the given list info bean.static List<CmsCategoryTreeEntry>
CmsCoreService.buildCategoryTree
(CmsObject cms, List<CmsCategory> categories) Builds the tree structure for the given categories.void
CmsGwtService.checkPermissions
(CmsObject cms) Checks the permissions of the current user to match the required security level.CmsAliasHelper.exportAliasesAsCsv
(CmsObject cms) Returns the comma separated alias data.static String
CmsGwtActionElement.exportCommon
(CmsObject cms, CmsCoreData coreData) Returns the serialized data for the core provider wrapped into a script tag.static String
CmsVfsService.formatDateTime
(CmsObject cms, long date) Formats a date given the current user's workplace locale.static List<CmsCategoryTreeEntry>
CmsCoreService.getCategoriesForSitePathStatic
(CmsObject cms, String sitePath) Helper method for getting the category beans for the given site path.static List<CmsCategoryTreeEntry>
CmsCoreService.getCategoriesForSitePathStatic
(CmsObject cms, String sitePath, String localCategoryRepositoryPath) Helper method for getting the category beans for the given site path.static CmsRelationTargetListBean
CmsDefaultResourceStatusProvider.getContainerpageRelationTargets
(CmsObject cms, CmsUUID source, List<CmsUUID> additionalIds, boolean cancelIfChanged) Gets the relation targets for a resource.static CmsRelationTargetListBean
CmsDefaultResourceStatusProvider.getContainerpageRelationTargetsLimited
(CmsObject cms, CmsUUID source, List<CmsUUID> additionalIds, boolean cancelIfChanged) Gets the relation targets for a resource.static List<CmsContextMenuEntryBean>
CmsCoreService.getContextMenuEntries
(CmsObject cms, CmsUUID structureId, CmsCoreData.AdeContext context, Map<String, String> params) Returns the context menu entries for the given URI.static String
CmsIconUtil.getDisplayType
(CmsObject cms, CmsResource resource) Returns the resource type name used to display the resource icon.static String
CmsCoreService.getFileExplorerLink
(CmsObject cms, String siteRoot) Returns the file explorer link prefix.CmsDefaultResourceStatusProvider.getFormatterInfo
(CmsObject cms, I_CmsFormatterBean bean) Gets the additional information related to the formatter.static String
CmsVfsService.getNoPreviewReason
(CmsObject cms, CmsResource resource) Returns the no preview reason if there is any.static CmsListInfoBean
CmsVfsService.getPageInfo
(CmsObject cms, CmsResource res) Gets page information of a resource.static CmsListInfoBean
CmsVfsService.getPageInfoWithLock
(CmsObject cms, CmsResource resource) Returns a bean to display theorg.opencms.gwt.client.ui.CmsListItemWidget
including the lock state.static List<CmsQuickLaunchData>
CmsQuickLaunchProvider.getQuickLaunchData
(CmsObject cms, javax.servlet.http.HttpSession session, CmsQuickLaunchParams params) Gets the quick launch data for the current user and context.CmsDefaultResourceStatusProvider.getResourceStatus
(javax.servlet.http.HttpServletRequest request, CmsObject cms, CmsUUID structureId, String contentLocale, boolean includeTargets, CmsUUID detailContentId, List<CmsUUID> additionalStructureIds, Map<String, String> context) Collects all the data to display in the resource status dialog.protected com.google.gwt.user.server.rpc.SerializationPolicy
CmsGwtServiceContext.getSerializationPolicy
(CmsObject cms, String moduleBaseURL, String strongName) Returns the serialization policy for the service.protected List<CmsResourceStatusRelationBean>
CmsDefaultResourceStatusProvider.getSiblings
(CmsObject cms, String locale, CmsResource resource) Gets beans which represents the siblings of a resource.protected List<CmsResourceStatusRelationBean>
CmsDefaultResourceStatusProvider.getTargets
(CmsObject cms, String locale, CmsResource resource, List<CmsUUID> additionalStructureIds) Gets the list of relation targets for a resource.static String
CmsCoreService.getVaadinWorkplaceLink
(CmsObject cms, String resourceRootFolder) Returns the workplace link.static String
CmsCoreService.getVaadinWorkplaceLink
(CmsObject cms, CmsUUID structureId) Returns the workplace link.static CmsReturnLinkInfo
CmsCoreService.internalGetLinkForReturnCode
(CmsObject cms, String returnCode) Implementation method for getting the link for a given return code.protected boolean
CmsPropertyEditorHelper.isWritable
(CmsObject cms, CmsResource resource) Returns whether the current user has write permissions, the resource is lockable or already locked by the current user and is in the current project.static String
CmsVfsService.prepareFileNameForEditor
(CmsObject cms, CmsResource res, String pathWithMacros) Processes a file path, which may have macros in it, so it can be opened by the XML content editor.void
Sets the CMS object.void
Sets the current cms context.void
Sets the current cms context.void
CmsDefaultResourceStatusProvider.sortRelations
(CmsObject cms, CmsResourceStatusBean resStatus) Sorts relation beans from other sites by site order.static void
CmsPropertyEditorHelper.updateWysiwygConfig
(Map<String, CmsXmlContentProperty> propertyConfig, CmsObject cms, CmsResource resource) Updates the property configuration for properties using WYSIWYG widgets.CmsDefaultFormValidator.validate
(CmsObject cms, Map<String, CmsValidationQuery> queries, Map<String, String> values, String config) I_CmsFormValidator.validate
(CmsObject cms, Map<String, CmsValidationQuery> queries, Map<String, String> values, String config) Validates the form and returns the validation result.Validates a single form field value.ModifierConstructorDescriptionCreates a new broken link renderer instance.CmsClientUserSettingConverter
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates a new instance.Creates a new instance.Creates a new instance. -
Uses of CmsObject in org.opencms.i18n
Modifier and TypeFieldDescriptionprotected static CmsObject
CmsVfsResourceBundle.m_cms
The CMS context to use.Modifier and TypeMethodDescriptionCmsLocaleManager.getAvailableLocales
(CmsObject cms, String resourceName) Returns an array of available locale names for the given resource.CmsLocaleManager.getAvailableLocales
(CmsObject cms, CmsResource resource) Returns an array of available locale names for the given resource.CmsLocaleManager.getBestAvailableLocaleForXmlContent
(CmsObject cms, CmsResource resource, I_CmsXmlDocument content) Returns the best available locale present in the given XML content, or the default locale.CmsLocaleManager.getDefaultLocale
(CmsObject cms, String resourceName) Returns the "the" default locale for the given resource.CmsLocaleManager.getDefaultLocale
(CmsObject cms, CmsResource resource) Returns the "the" default locale for the given resource.CmsLocaleManager.getDefaultLocales
(CmsObject cms, String resourceName) Returns an array of default locales for the given resource.CmsLocaleManager.getDefaultLocales
(CmsObject cms, CmsResource resource) Returns an array of default locales for the given resource.static Locale
CmsLocaleManager.getMainLocale
(CmsObject cms, CmsResource res) Utility method to get the primary locale for a given resource.CmsLocaleGroupService.getPossibleLocales
(CmsObject cms, CmsResource currentResource) Helper method for getting the possible locales for a resource.static final String
CmsLocaleManager.getResourceEncoding
(CmsObject cms, CmsResource res) Returns the content encoding set for the given resource.void
CmsDefaultLocaleHandler.initHandler
(CmsObject cms) void
CmsSingleTreeLocaleHandler.initHandler
(CmsObject cms) void
I_CmsLocaleHandler.initHandler
(CmsObject cms) Will be called during system startup.void
CmsLocaleManager.initialize
(CmsObject cms) Initializes this locale manager with the OpenCms system configuration.CmsVfsBundleLoaderProperties.loadData
(CmsObject cms, CmsVfsBundleParameters params) CmsVfsResourceBundle.I_Loader.loadData
(CmsObject cms, CmsVfsBundleParameters params) Loads the data from the VFS.static CmsMessageToBundleIndex
Reads the bundle information for the whole system.static void
CmsVfsResourceBundle.setCmsObject
(CmsObject cms) Sets the CMS context used by this class.ModifierConstructorDescriptionCmsLocaleGroup
(CmsObject cms, CmsResource primaryResource, List<CmsResource> secondaryResources) Creates a new instance.Creates a new instance.Creates a new instance. -
Uses of CmsObject in org.opencms.i18n.tools
-
Uses of CmsObject in org.opencms.importexport
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsImport.m_cms
Deprecated.The cms context to do the import operations with.protected CmsObject
CmsImport.m_cms
The cms context.protected CmsObject
CmsImportVersion10.m_cms
The cms object.Modifier and TypeMethodDescriptionprotected CmsObject
CmsExport.getCms()
Returns the OpenCms context object this export was initialized with.CmsImportVersion10.getCms()
Returns the cms object.CmsImportVersion7.getCms()
Deprecated.Returns the cms object.Modifier and TypeMethodDescriptionstatic CmsXmlPage
CmsXmlPageConverter.convertToXmlPage
(CmsObject cms, byte[] content, Locale locale, String encoding) Deprecated.Converts the contents of a page into an xml page.void
CmsImportExportManager.exportData
(CmsObject cms, I_CmsImportExportHandler handler, I_CmsReport report) Checks if the current user has permissions to export Cms data of a specified export handler, and if so, triggers the handler to write the export.void
CmsVfsImportExportHandler.exportData
(CmsObject cms, I_CmsReport report) void
I_CmsImportExportHandler.exportData
(CmsObject cms, I_CmsReport report) Exports the data from the Cms.void
CmsImportExportManager.importData
(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.void
CmsImportExportManager.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Checks if the current user has permissions to import data into the Cms, and if so, creates a new import handler instance that imports the data.void
CmsImportResourceDataReader.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) void
CmsImportVersion10.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) void
CmsImportVersion2.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.void
CmsImportVersion3.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.void
CmsImportVersion4.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.void
CmsImportVersion5.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.void
CmsImportVersion7.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Deprecated.void
CmsVfsImportExportHandler.importData
(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.void
CmsVfsImportExportHandler.importData
(CmsObject cms, I_CmsReport report) void
I_CmsImport.importData
(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Imports the data.void
I_CmsImportExportHandler.importData
(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.void
I_CmsImportExportHandler.importData
(CmsObject cms, I_CmsReport report) Imports the data into the Cms.void
CmsImportVersion10.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
CmsImportVersion2.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
CmsImportVersion3.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
CmsImportVersion4.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
CmsImportVersion5.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
CmsImportVersion7.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.void
I_CmsImport.importResources
(CmsObject cms, String importPath, I_CmsReport report, File importResource, ZipFile importZip, org.dom4j.Document docXml) Deprecated.static void
CmsImportVersion10.parseLinks
(CmsObject cms, List<CmsResource> parseables, I_CmsReport report) Parses the links.ModifierConstructorDescriptionCmsExport
(CmsObject cms, I_CmsReport report) Constructs a new export.CmsImport
(CmsObject cms, I_CmsReport report) Constructs a new import object which imports the resources from an OpenCms export zip file or a folder in the "real" file system. -
Uses of CmsObject in org.opencms.jlan
Modifier and TypeMethodDescriptionvoid
CmsJlanRepository.initializeCms
(CmsObject cms) static void
CmsJlanUsers.setAdminCms
(CmsObject cms) Sets the CMS context. -
Uses of CmsObject in org.opencms.jsp
Modifier and TypeFieldDescriptionprotected CmsObject
CmsJspNavBuilder.m_cms
The current CMS context.protected CmsObject
CmsJspTagFormatter.m_cms
The CmsObject for the current user.protected CmsObject
CmsJspTagNavigation.m_cms
The CmsObject for the current user.protected CmsObject
CmsJspTagResourceLoad.m_cms
The CmsObject for the current user.protected CmsObject
CmsJspTagSearch.m_cms
The CmsObject for the current user.Modifier and TypeMethodDescriptionCmsJspBean.getCmsObject()
Returns the CmsObject from the wrapped request.CmsJspNavBuilder.getCmsObject()
Gets the CMS context used for building the navigation.CmsJspResourceWrapper.getCmsObject()
Returns the OpenCms user context this resource was initialized with.Modifier and TypeMethodDescriptionprotected void
CmsJspTagHeadIncludes.collectHeadIncludesForContainerElement
(CmsObject cms, javax.servlet.ServletRequest req, CmsJspStandardContextBean standardContext, CmsContainerPageBean containerPage, String includeType, Set<String> headincludes, Map<String, String> inline) Collects the head includes for a given container element.static String
CmsJspTagEdit.createResource
(CmsObject cmsObject, String newLink, Locale locale, String sitePath, String modelFileName, String mode, String postCreateHandler) Creates a new resource.static I_CmsFormatterBean
CmsJspTagContainer.ensureValidFormatterSettings
(CmsObject cms, CmsContainerElementBean element, CmsADEConfigData adeConfig, String containerName, String containerType, int containerWidth) Ensures the appropriate formatter configuration ID is set in the element settings.static Locale
CmsJspTagLink.getBaseUriLocale
(CmsObject cms, String baseUri) Tries to read the active locale for the given (site) path, or for its parent path if the path can't be read.protected String
CmsJspTagContainer.getContainerData
(CmsObject cms, int maxElements, boolean isDetailView, boolean isDetailOnly) Returns the serialized data of the given container.static String
CmsJspNavBuilder.getDefaultFile
(CmsObject cms, String folder) Deprecated.usereadDefaultFile(String)
insteadstatic I_CmsFormatterBean
CmsJspTagContainer.getFormatterConfigurationForElement
(CmsObject cms, CmsContainerElementBean element, CmsADEConfigData adeConfig, String containerName, String containerType, int containerWidth) Returns the formatter configuration for the given element.static List<CmsContainerElementBean>
CmsJspTagContainer.getGroupContainerElements
(CmsObject cms, CmsContainerElementBean element, javax.servlet.ServletRequest req, String containerType) Returns the element group elements.static List<CmsContainerElementBean>
CmsJspTagContainer.getInheritedContainerElements
(CmsObject cms, CmsContainerElementBean element) Reads elements from an inherited container.static String
Messages.getLocalizedMessage
(CmsMessageContainer container, CmsObject cms) Returns the String for the given CmsMessageContainer localized to the current user's locale if available or to the default locale else.static List<CmsJspNavElement>
CmsJspNavBuilder.getNavigationForFolder
(CmsObject cms, String folder) Deprecated.useCmsJspNavBuilder.getNavigationForFolder(String)
insteadstatic List<CmsJspNavElement>
CmsJspNavBuilder.getNavigationForFolder
(CmsObject cms, String folder, int level) Deprecated.static CmsJspNavElement
CmsJspNavBuilder.getNavigationForResource
(CmsObject cms, String resource) Deprecated.static List<CmsJspNavElement>
CmsJspNavBuilder.getNavigationTreeForFolder
(CmsObject cms, String folder, int startlevel, int endlevel) Deprecated.static String
CmsJspTagEdit.getNewLink
(CmsObject cms, I_CmsResourceType resType, String creationSitemap) Creates the String specifying where which type of resource has to be created.CmsJspTagSearch.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) CmsJspTagSimpleSearch.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) static Set<CmsResource>
CmsJspTagSearch.getPublishResourcesInternal
(CmsObject cms, I_CmsContentLoadCollectorInfo info) static Set<CmsResource>
CmsJspTagSimpleSearch.getPublishResourcesInternal
(CmsObject cms, I_CmsContentLoadCollectorInfo info) protected static String
CmsJspTagResourceLoad.getResourceName
(CmsObject cms, I_CmsResourceContainer contentContainer) Returns the resource name currently processed.static List<CmsJspNavElement>
CmsJspNavBuilder.getSiteNavigation
(CmsObject cms, String folder, int endLevel) Deprecated.static CmsJspImageBean
CmsJspTagScaleImage.imageTagAction
(CmsObject cms, String imageUri, CmsImageScaler targetScaler, List<String> hiDpiVariantList) Internal action method to create the scaled image bean.void
Initializes this bean.void
Initializes this bean.void
Initializes this bean.static boolean
CmsJspTagEdit.insertDirectEditStart
(CmsObject cms, javax.servlet.jsp.PageContext pageContext, CmsResource resource, boolean canCreate, boolean canDelete, String createType, String creationSitemap, String postCreateHandler, String binaryUploadFolder) Inserts the opening direct edit tag.protected boolean
CmsJspTagContainer.isEditable
(CmsObject cms) Returns if the container is editable by the current user.static boolean
CmsJspNavBuilder.isNavLevelFolder
(CmsObject cms, CmsResource resource) Returns whether the given resource is a folder and is marked to be a navigation level folder.protected static boolean
CmsJspTagUserTracking.isResourceSubscribed
(CmsObject cms, String fileName, boolean subFolder, CmsUser user, List<CmsGroup> groups, javax.servlet.http.HttpServletRequest req) Returns if the given resource is subscribed to the user or groups.protected static boolean
CmsJspTagUserTracking.isResourceVisited
(CmsObject cms, String fileName, boolean subFolder, CmsUser user, javax.servlet.http.HttpServletRequest req) Returns if the given resource was visited by the user.protected void
CmsJspTagContainer.printElementWrapperTagStart
(CmsObject cms, CmsContainerElementBean elementBean, CmsContainerPageBean page, boolean isGroupContainer) Prints the opening element wrapper tag for the container page editor if we are in Offline mode.void
CmsJspTagHeadIncludes.tagCssAction
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Action to include the CSS resources.void
CmsJspTagHeadIncludes.tagJSAction
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Action to include the java-script resources.static CmsJspResourceWrapper
CmsJspResourceWrapper.wrap
(CmsObject cms, CmsResource res) Factory method to create a newCmsJspResourceWrapper
instance from aCmsResource
.ModifierConstructorDescriptionDefault constructor.CmsJspNavBuilder
(CmsObject cms, Locale locale) Constructor for a version that reads properties according to a locale. -
Uses of CmsObject in org.opencms.jsp.decorator
Modifier and TypeMethodDescriptionCmsDecorationDefintion.createDecorationBundle
(CmsObject cms, Locale locale) Creates a CmsDecorationBundle of text decoration to be used by the decorator.CmsDecorationDefintion.getDecorationDefinitionNames
(CmsObject cms) Returns all different decoration configuration names (like "abbr" or "acronym") that are in the config file pointed to by module parameter "configfile".void
void
Initialises the configuration.void
Sets the cms.ModifierConstructorDescriptionCmsDecorationMap
(CmsObject cms, CmsResource res, CmsDecorationDefintion decDef) Constructor, creates a new CmsDecorationMap.Constructor, creates a new, empty CmsDecoratorConfiguration.CmsDecoratorConfiguration
(CmsObject cms, String configFile) Constructor, creates a new, CmsDecoratorConfiguration with a given config file.CmsDecoratorConfiguration
(CmsObject cms, String configFile, Locale locale) Constructor, creates a new, CmsDecoratorConfiguration with a given config file and locale.Constructor, creates a new, empty CmsHtmlDecorator.CmsHtmlDecorator
(CmsObject cms, I_CmsDecoratorConfiguration config) Constructor, creates a new CmsHtmlDecorator with a given configuration. -
Uses of CmsObject in org.opencms.jsp.parse
Modifier and TypeMethodDescriptionprotected CmsObject
A_CmsConfiguredHtmlParser.getCmsObject()
Returns the internal cms object for accessing core functionality.Modifier and TypeMethodDescriptionvoid
A_CmsConfiguredHtmlParser.setCmsObject
(CmsObject cmsObject) Sets the internal cms object for accessing core functionality. -
Uses of CmsObject in org.opencms.jsp.search.config
ModifierConstructorDescriptionConstructor to initialize the configuration object via a configuration parser. -
Uses of CmsObject in org.opencms.jsp.search.config.parser
Modifier and TypeMethodDescriptionCmsSimpleSearchConfigurationParser.createInstanceWithNoJsonConfig
(CmsObject cms, CmsConfigurationBean config) Creates an instance for an empty JSON configuration.protected String
Returns the configured Solr index, ornull
if no core is configured.CmsJSONSearchConfigurationParser.parseCommon
(CmsObject cms) CmsPlainQuerySearchConfigurationParser.parseCommon
(CmsObject cms) CmsXMLSearchConfigurationParser.parseCommon
(CmsObject cms) I_CmsSearchConfigurationParser.parseCommon
(CmsObject cms) Returns the common search configuration.ModifierConstructorDescriptionCmsSimpleSearchConfigurationParser
(CmsObject cms, CmsConfigurationBean config, String additionalParamJSON) Constructor. -
Uses of CmsObject in org.opencms.jsp.search.config.parser.simplesearch
Modifier and TypeMethodDescriptionstatic CmsConfigurationBean
CmsConfigParserUtils.parseListConfiguration
(CmsObject cms, CmsResource res) Parses the list configuration resource.static CmsXmlContent
CmsConfigParserUtils.updateBlackList
(CmsObject cms, CmsXmlContent content, CmsConfigurationBean configBean) Updates the black list entries in the provided xml content. -
Uses of CmsObject in org.opencms.jsp.search.config.parser.simplesearch.daterestrictions
-
Uses of CmsObject in org.opencms.jsp.search.controller
Modifier and TypeMethodDescriptionvoid
CmsSearchController.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerCommon.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerDidYouMean.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerFacetField.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerFacetQuery.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerFacetRange.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerFacetsField.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerFacetsRange.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerGeoFilter.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerHighlighting.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerPagination.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
CmsSearchControllerSorting.addQueryParts
(CmsSolrQuery query, CmsObject cms) void
I_CmsSearchController.addQueryParts
(CmsSolrQuery query, CmsObject cms) Generate the Solr query part specific for the controller, e.g., the part for a field facet. -
Uses of CmsObject in org.opencms.jsp.search.result
ModifierConstructorDescriptionCmsSearchResourceBean
(CmsSearchResource searchResource, CmsObject cms) Constructor taking the search resource to wrap.CmsSearchResultWrapper
(I_CmsSearchControllerMain controller, CmsSolrResultList resultList, CmsSolrQuery query, CmsObject cms, CmsSearchException exception) Constructor taking the main search form controller and the result list as normally returned. -
Uses of CmsObject in org.opencms.jsp.userdata
Modifier and TypeMethodDescriptionCalled by the user data request function JSP to handle the user data request logic.void
CmsDefaultUserDataDomain.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> users, org.jsoup.nodes.Element element) void
CmsUserDataHeader.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) void
I_CmsUserDataDomain.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) Appends the user data to the given HTML element.default void
I_CmsUserDataDomain.appendlInfoForEmail
(CmsObject cms, String email, List<String> searchStrings, org.jsoup.nodes.Element element) Writes additional information related to an email address which is not directly associated with a specific OpenCms user.boolean
CmsUserDataRequestManager.getInfoForEmail
(CmsObject cms, I_CmsUserDataDomain.Mode mode, String email, List<String> searchStrings, org.jsoup.nodes.Element root, I_CmsReport report) Gets the user data for an email address.boolean
CmsUserDataRequestManager.getInfoForUser
(CmsObject cms, I_CmsUserDataDomain.Mode mode, CmsUser user, org.jsoup.nodes.Element root, I_CmsReport report) Gets the user data for a specific OpenCms user.CmsUserDataRequestManager.getUsersByEmail
(CmsObject cms, String email) Gets all users with a given email address (maximum of 999).void
CmsDefaultUserDataDomain.initialize
(CmsObject cms) void
CmsUserDataHeader.initialize
(CmsObject cms) void
CmsUserDataRequestManager.initialize
(CmsObject cms) Initializes the manager.void
CmsUserDataRequestStore.initialize
(CmsObject adminCms) Initializes the store with an admin CMS object.void
I_CmsUserDataDomain.initialize
(CmsObject cms) Initializes the domain with an admin CmsObject.CmsUserDataResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) CmsUserDataRequestManager.loadConfig
(CmsObject cms, String path) Loads the user data request configuration from the given file.boolean
CmsDefaultUserDataDomain.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) boolean
CmsUserDataHeader.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) boolean
I_CmsUserDataDomain.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) Checks if the user matches the domain for the given user data request type.void
CmsUserDataRequestManager.startUserDataRequest
(CmsObject cms, CmsUserDataRequestConfig config, String email) Starts a user data request for the email case.void
CmsUserDataRequestManager.startUserDataRequest
(CmsObject cms, CmsUserDataRequestConfig config, CmsUser user) Starts a user data request for the single user case (with user name and password).ModifierConstructorDescriptionCmsUserDataRequestConfig
(CmsObject cms, CmsXmlContent content, Locale locale) Creates a new instance. -
Uses of CmsObject in org.opencms.jsp.util
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsJspValueWrapper.m_cms
The wrapped OpenCms user context.protected CmsObject
A_CmsJspValueWrapper.m_cms
The wrapped OpenCms user context.protected CmsObject
A_CmsJspValueWrapper.m_cms
The wrapped OpenCms user context.protected CmsObject
CmsDynamicFunctionBeanWrapper.m_cms
The internal CMS object to use.protected CmsObject
CmsJspContentLoadBean.m_cms
The OpenCms context of the current user.protected CmsObject
CmsJspLinkWrapper.m_cms
Stored CMS context.protected CmsObject
CmsJspNavigationBean.m_cms
The OpenCms user context.protected CmsObject
CmsJspResourceLoadBean.m_cms
The OpenCms context of the current user.protected CmsObject
CmsJspStandardContextBean.m_cms
OpenCms user context.protected CmsObject
CmsJspVfsAccessBean.m_cms
The OpenCms context of the current user.Modifier and TypeMethodDescriptionstatic CmsObject
CmsJspElFunctions.convertCmsObject
(Object input) Returns an OpenCms user context created from an Object.A_CmsJspCustomContextBean.getCmsObject()
Returns the cms object for the current context.CmsJspContentAccessBean.getCmsObject()
Returns the OpenCms user context this bean was initialized with.CmsJspContentLoadBean.getCmsObject()
Returns the OpenCms user context this bean was initialized with.CmsJspElementSettingValueWrapper.getCmsObject()
static CmsObject
CmsJspElFunctions.getCmsObject
(Object input) Returns the current OpenCms user context from the given page context.protected CmsObject
CmsJspImageBean.getCmsObject()
Returns the current OpenCms user context.CmsJspResourceAccessBean.getCmsObject()
Returns the OpenCms user context this bean was initialized with.CmsJspResourceLoadBean.getCmsObject()
Returns the OpenCms user context this bean was initialized with.protected CmsObject
CmsJspStandardContextBean.getCmsObject()
Accessor for the CmsObject.CmsJspVfsAccessBean.getCmsObject()
Returns the OpenCms user context this bean was initialized with.CmsJspStandardContextBean.getControllerCms()
Gets the CmsObject from the current Flex controller.CmsJspContentAccessValueWrapper.obtainCmsObject()
Deprecated.useA_CmsJspValueWrapper.getCmsObject()
insteadModifier and TypeMethodDescriptionstatic CmsResource
CmsJspElFunctions.convertRawResource
(CmsObject cms, Object input) Returns a resource created from an Object.static CmsJspResourceWrapper
CmsJspElFunctions.convertResource
(CmsObject cms, Object input) Returns a resource wrapper created from the input.static List<CmsJspContentAccessBean>
CmsJspContentLoadBean.convertResourceList
(CmsObject cms, List<CmsResource> resources) Converts a list ofCmsResource
objects to a list ofCmsJspContentAccessBean
objects, using the current request context locale.static List<CmsJspContentAccessBean>
CmsJspContentLoadBean.convertResourceList
(CmsObject cms, Locale locale, List<CmsResource> resources) Converts a list ofCmsResource
objects to a list ofCmsJspContentAccessBean
objects, using the given locale.static List<CmsJspResourceWrapper>
CmsJspElFunctions.convertResourceList
(CmsObject cms, List<CmsResource> list) Returns a list of resource wrappers created from the input list of resources.static CmsJspVfsAccessBean
Creates a new instance of the JSP VFS access utility bean.CmsJspContentAccessValueWrapper.createWrapper
(CmsObject cms, I_CmsXmlContentValue value, I_CmsXmlDocument content, String valueName, Locale locale) Factory method to create a new XML content value wrapper.CmsJspContentAccessValueWrapper.createWrapper
(CmsObject cms, I_CmsXmlContentValue value, I_CmsXmlContentValue parentValue, String valueName) Factory method to create a new XML content value wrapper.static CmsJspObjectValueWrapper
CmsJspObjectValueWrapper.createWrapper
(CmsObject cms, Object value) Factory method to create a new XML content value wrapper.CmsJspContentAttachmentsBean.getAttachmentLocales
(CmsObject cms, CmsResource content) Gets the list of locales for which attachments / detail-only containers are available.static CmsJspContentAttachmentsBean
CmsJspContentAttachmentsBean.getAttachmentsForCurrentPage
(CmsObject cms, CmsResource content) Gets the attachments / detail-only contents for the current page (i.e.static CmsJspContentAttachmentsBean
CmsJspContentAttachmentsBean.getAttachmentsForLocale
(CmsObject cms, CmsResource content, String locale) Loads the attachments for a given content.static CmsResource
CmsFunctionRenderer.getDefaultFunctionInstance
(CmsObject cms) Cached method for accessing the default function formatter.static CmsResource
CmsFunctionRenderer.getDefaultFunctionJsp
(CmsObject cms) Cached method for accessing the default function formatter JSP.static String
CmsJspStandardContextBean.getFunctionDetailLink
(CmsObject cms, String prefix, String functionName, boolean fullLink) Gets the link to a function detail page.static String
CmsJspStandardContextBean.getFunctionDetailLinkExact
(CmsObject cms, String functionName) Gets the link to a function detail page.static CmsMacroResolver
CmsFormatterInfoWrapper.getMacroResolverForFormatter
(CmsObject cms, I_CmsFormatterBean formatter) Prepares the macro resolver to use for formatter info / setting info beans.void
CmsJspContentAccessBean.init
(CmsObject cms, Locale locale, I_CmsXmlDocument content, CmsResource resource) Initialize this instance.void
CmsJspContentLoadBean.init
(CmsObject cms, Locale locale, List<CmsResource> content) Initialize this instance.protected void
CmsJspImageBean.init
(CmsObject cms, CmsResource imageRes, String scaleParams) Initializes this new image bean based on a VFS resource and optional scaler parameters.void
CmsJspResourceAccessBean.init
(CmsObject cms, CmsResource resource) Initialize this instance.void
CmsJspResourceLoadBean.init
(CmsObject cms, List<CmsResource> resources) Initialize this instance.void
CmsJspStandardContextBean.CmsContainerElementWrapper.initResource
(CmsObject cms) void
CmsJspStandardContextBean.CmsContainerElementWrapper.initSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> settingPresets) boolean
CmsJspStandardContextBean.CmsContainerElementWrapper.isGroupContainer
(CmsObject cms) boolean
CmsJspStandardContextBean.CmsContainerElementWrapper.isInheritedContainer
(CmsObject cms) static String
CmsStringTemplateRenderer.renderTemplate
(CmsObject cms, String template, CmsResource content, Map<String, Object> contextObjects) Renders the given string template.static String
CmsStringTemplateRenderer.renderTemplate
(CmsObject cms, String template, CmsResource content, Map<String, Object> contextObjects, String pathPrefix) Renders the given string template.static String
CmsStringTemplateRenderer.renderTemplate
(CmsObject cms, String template, CmsJspContentAccessBean content, Map<String, Object> contextObjects) Renders the given string template.static String
CmsStringTemplateRenderer.renderTemplate
(CmsObject cms, String template, CmsJspContentAccessValueWrapper contentValue, Map<String, Object> contextObjects) Renders the given string template.protected void
CmsJspImageBean.setCmsObject
(CmsObject cms) Sets the current OpenCms user context.protected void
CmsJspImageBean.setResource
(CmsObject cms, CmsResource resource) Sets the CmsResource for this image.void
CmsJspStandardContextBean.updateCmsObject
(CmsObject cms) Updates the internally stored OpenCms user context.static Map<String,
CmsJspObjectValueWrapper> CmsStringTemplateRenderer.wrapSettings
(CmsObject cms, Map<String, String> settings) Wraps the element settings with access wrappers.ModifierConstructorDescriptionCmsContainerTypeInfoWrapper
(CmsJspStandardContextBean context, CmsObject cms, CmsADEConfigData config, String type) Creates a new instance.CmsDynamicFunctionBeanWrapper
(CmsObject cms, CmsDynamicFunctionBean functionBean) Creates a new wrapper instance.Creates a new wrapper instance for a given format.CmsErrorBean
(CmsObject cms, Throwable throwable) Constructs a new error bean.CmsFormatterInfoWrapper
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatter) Creates a new instance.CmsJspCategoryAccessBean
(CmsObject cms, CmsResource resource) Default constructor.CmsJspContentAccessBean
(CmsObject cms, Locale locale, CmsResource resource) Creates a content access bean based on a Resource.CmsJspContentAccessBean
(CmsObject cms, Locale locale, I_CmsXmlDocument content) Creates a content access bean based on an XML content object.CmsJspContentAccessBean
(CmsObject cms, CmsResource resource) Creates a content access bean based on a Resource, using the current request context locale.CmsJspContentAttachmentsBean
(CmsObject cms, CmsResource pageResource) Initializes this bean with the contents of a detail-only page.CmsJspContentLoadBean
(CmsObject cms, List<CmsResource> content) Creates a new context bean using the OpenCms context of the current user.CmsJspContentLoadBean
(CmsObject cms, Locale locale, List<CmsResource> content) Creates a new context bean using the OpenCms context of the current user with the given locale.CmsJspImageBean
(CmsObject cms, String imageUri) Initializes a new image bean based on a string pointing to a VFS resource that may contain appended scaling parameters.CmsJspImageBean
(CmsObject cms, String imageUri, CmsImageScaler initScaler) Initializes a new image bean based on a VFS input string and applies additional re-scaling.CmsJspImageBean
(CmsObject cms, CmsResource imageRes, String scaleParams) Initializes a new image bean based on a VFS resource and optional scaler parameters.CmsJspLinkMacroResolver
(CmsObject cms, String jspRootPath, boolean forRfs) Default constructor.CmsJspLinkWrapper
(CmsObject cms, String link) Creates a new link wrapper.CmsJspLinkWrapper
(CmsObject cms, String link, boolean allowEmpty) Creates a new link wrapper.CmsJspNavigationBean
(CmsObject cms, CmsJspTagNavigation.Type type, int startLevel, int endLevel, String resource, String param) Base constructor.CmsJspNavigationBean
(CmsObject cms, CmsJspTagNavigation.Type type, int startLevel, int endLevel, String resource, String param, Locale locale) Base constructor.CmsJspResourceAccessBean
(CmsObject cms, CmsResource resource) Creates a content access bean based on a Resource.CmsJspResourceLoadBean
(CmsObject cms, List<CmsResource> resources) Creates a new context bean using the OpenCms context of the current user.CmsLocalePropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search) Default constructor.Constructor.CmsPropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search) Creates a new property loading Transformer.CmsPropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search, Locale locale) Creates a new property loading Transformer.CmsResourceTypeInfoWrapper
(CmsJspStandardContextBean context, CmsObject cms, CmsADEConfigData config, I_CmsResourceType type) Creates a new instance.CmsSchemaInfo
(CmsObject cms, CmsXmlContentDefinition contentDef) Creates a new instance.CmsSettingDefinitionWrapper
(CmsObject cms, CmsXmlContentProperty settingDef, CmsMacroResolver resolver) Creates a new instance.CmsTemplatePluginWrapper
(CmsObject cms, CmsTemplatePlugin plugin) Creates a new wrapper. -
Uses of CmsObject in org.opencms.loader
Modifier and TypeMethodDescriptionbyte[]
CmsDumpLoader.dump
(CmsObject cms, CmsResource resource, String element, Locale locale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsJspLoader.dump
(CmsObject cms, CmsResource file, String element, Locale locale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsMacroFormatterLoader.dump
(CmsObject cms, CmsResource resource, String element, Locale selectedLocale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsPointerLoader.dump
(CmsObject cms, CmsResource resource, String element, Locale locale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsRedirectLoader.dump
(CmsObject cms, CmsResource resource, String element, Locale locale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
I_CmsResourceLoader.dump
(CmsObject cms, CmsResource resource, String element, Locale locale, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Dumps the processed content of the the requested file (and it's sub-elements) to a byte array.I_CmsResourceStringDumpLoader.dumpAsString
(CmsObject cms, CmsResource resource, String element, Locale locale, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) Dumps the processed content of the the requested file (and it's sub-elements) to a String.byte[]
CmsDumpLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsJspLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsMacroFormatterLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsPointerLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
CmsRedirectLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) byte[]
I_CmsResourceLoader.export
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Static exports the contents of the requested file and it's sub-elements.CmsResourceManager.getAllowedContextMap
(CmsObject cms) Gets the map of forbidden contexts for resource types.CmsTemplateContextManager.getContextInfoBean
(CmsObject cms, javax.servlet.http.HttpServletRequest request) Creates a bean with information about the current template context, for use in the client-side code.protected CmsFlexController
CmsJspLoader.getController
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean streaming, boolean top) Delivers a Flex controller, either by creating a new one, or by re-using an existing one.protected CmsFlexController
CmsRedirectLoader.getController
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean streaming, boolean top) Delivers a Flex controller, either by creating a new one, or by re-using an existing one.CmsDefaultFileNameGenerator.getCopyFileName
(CmsObject cms, String parentFolder, String baseName) I_CmsFileNameGenerator.getCopyFileName
(CmsObject cms, String parentFolder, String baseName) Returns a unique copy filename for the given base name and the parent folder.CmsDefaultTemplateContextProvider.getEditorStyleSheet
(CmsObject cms, String editedResourcePath) CmsTransformerTemplateProvider.getEditorStyleSheet
(CmsObject cms, String editedResourcePath) I_CmsTemplateContextProvider.getEditorStyleSheet
(CmsObject cms, String editedResourcePath) Returns the style sheet to be used for the editor.CmsTransformerTemplateProvider.getFunctionsForGallery
(CmsObject cms, String templateContext) I_CmsTemplateContextProvider.getFunctionsForGallery
(CmsObject cms, String templateContext) Returns a set of structure ids of dynamic functions that are allowed to appear in the gallery dialog search results, or null if the dynamic function results should not be restricted.CmsDefaultFileNameGenerator.getNewFileName
(CmsObject cms, String namePattern, int defaultDigits) CmsDefaultFileNameGenerator.getNewFileName
(CmsObject userCms, String namePattern, int defaultDigits, boolean explorerMode) Returns a new resource name based on the provided OpenCms user context and name pattern.I_CmsFileNameGenerator.getNewFileName
(CmsObject cms, String namePattern, int defaultDigits) Generates a new file name based on the provided OpenCms user context and name pattern.I_CmsFileNameGenerator.getNewFileName
(CmsObject cms, String namePattern, int defaultDigits, boolean explorerMode) Generates a new file name based on the provided OpenCms user context and name pattern.void
CmsJspLoader.getReferencingStrongLinks
(CmsObject cms, CmsResource resource, Set<String> referencingPaths) Returns a set of root paths of files that are including the given resource using the 'link.strong' macro.protected CmsFile
CmsImageLoader.getScaledImage
(CmsObject cms, CmsResource resource, CmsImageScaler scaler) Returns a scaled version of the given OpenCms VFS image resource.CmsDefaultTemplateContextProvider.getTemplateContext
(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource) CmsTemplateContextManager.getTemplateContext
(String providerName, CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource) Gets the template context to use.CmsTransformerTemplateProvider.getTemplateContext
(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource) I_CmsTemplateContextProvider.getTemplateContext
(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource) Determines the template context from the current CMS context, request, and resource.CmsTemplateContextManager.getTemplateContextProvider
(CmsObject cms, String path) Gets the template context provider for a given path.CmsResourceManager.getTemplateLoaderFacade
(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource, String templateProperty) Returns a template loader facade for the given file.CmsResourceManager.getTemplateLoaderFacade
(CmsObject cms, CmsResource resource, String templateProperty) Returns a template loader facade for the given file.protected CmsTemplateLoaderFacade
CmsSeoFileLoader.getTemplateLoaderFacade
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req) CmsDefaultFileNameGenerator.getUniqueFileName
(CmsObject cms, String parentFolder, String baseName) I_CmsFileNameGenerator.getUniqueFileName
(CmsObject cms, String parentFolder, String baseName) Returns a unique filename for the given base name and the parent folder.void
CmsDefaultTemplateContextProvider.initialize
(CmsObject cms, String config) void
CmsResourceManager.initialize
(CmsObject cms) Initializes all additional resource types stored in the modules.void
CmsTransformerTemplateProvider.initialize
(CmsObject cms, String config) void
I_CmsTemplateContextProvider.initialize
(CmsObject cms, String config) Initializes the context provider using a CMS object.void
CmsDumpLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsImageLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsJspLoader.load
(CmsObject cms, CmsResource file, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsMacroFormatterLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsPointerLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsRedirectLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
CmsXmlContainerPageLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
I_CmsResourceLoader.load
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Basic top-page processing method for a I_CmsResourceLoader, this method is called if the page is called as a sub-element on a page not already loaded with a I_CmsResourceLoader.void
CmsResourceManager.loadResource
(CmsObject cms, CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Loads the requested resource and writes the contents to the response stream.CmsDefaultTemplateContextProvider.readCommonProperty
(CmsObject cms, String propertyName, String fallbackValue) CmsTransformerTemplateProvider.readCommonProperty
(CmsObject cms, String propertyName, String fallbackValue) I_CmsTemplateContextProvider.readCommonProperty
(CmsObject cms, String propertyName, String fallbackValue) Gets the value which should be used instead of a property which was read from the template resource.CmsTemplateContextManager.readPropertyFromTemplate
(CmsObject cms, CmsResource res, String propertyName, String fallbackValue) Utility method which either reads a property from the template used for a specific resource, or from the template context provider used for the resource if available.void
CmsDumpLoader.service
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) void
CmsJspLoader.service
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) void
CmsMacroFormatterLoader.service
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) void
CmsPointerLoader.service
(CmsObject cms, CmsResource file, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) void
CmsRedirectLoader.service
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) void
I_CmsResourceLoader.service
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) Does the job of including the requested resource, this method is called directly if the element is called as a sub-element from another I_CmsResourceLoader.void
CmsDefaultFileNameGenerator.setAdminCms
(CmsObject cms) default void
I_CmsFileNameGenerator.setAdminCms
(CmsObject cms) Initializes this instance with an admin CMS context.boolean
CmsTransformerTemplateProvider.shouldShowContextMenuOption
(CmsObject cms) default boolean
I_CmsTemplateContextProvider.shouldShowContextMenuOption
(CmsObject cms) Checks if the context menu option for switching the template should be shown for the given user context.boolean
CmsTransformerTemplateProvider.shouldShowElementTemplateContextSelection
(CmsObject cms) default boolean
I_CmsTemplateContextProvider.shouldShowElementTemplateContextSelection
(CmsObject cms) Controls whether template context select options should be shown in the element settings dialog.protected void
CmsJspLoader.showSource
(CmsObject cms, CmsResource file, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Delivers the plain uninterpreted resource with escaped XML.protected I_CmsXmlDocument
CmsSeoFileLoader.unmarshalXmlDocument
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) protected CmsXmlContainerPage
CmsXmlContainerPageLoader.unmarshalXmlDocument
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) protected I_CmsXmlDocument
CmsXmlContentLoader.unmarshalXmlDocument
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) protected I_CmsXmlDocument
CmsXmlPageLoader.unmarshalXmlDocument
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) ModifierConstructorDescriptionCmsImageScaler
(CmsObject cms, CmsResource res) Creates a new image scaler by reading the property
from the given resource.CmsPropertyDefinition.PROPERTY_IMAGE_SIZE
Creates a new instance. -
Uses of CmsObject in org.opencms.lock
Modifier and TypeMethodDescriptionstatic CmsLockActionRecord
CmsLockUtil.ensureLock
(CmsObject cms, CmsResource resource) Static helper method to lock a resource.static CmsLockActionRecord
CmsLockUtil.ensureLock
(CmsObject cms, CmsResource resource, boolean shallow) Static helper method to lock a resource.boolean
CmsLock.isDirectlyOwnedInProjectBy
(CmsObject cms) Returnstrue
if this is an exclusive, temporary exclusive, or directly inherited lock, and the current user is the owner of this lock, checking also the project of the lock.static CmsLockUtil.LockedFile
CmsLockUtil.LockedFile.lockResource
(CmsObject cms, CmsResource resource) Lock and read a file.static void
CmsLockUtil.tryUnlock
(CmsObject cms, CmsResource resource) Tries to unlock the given resource.static AutoCloseable
CmsLockUtil.withLockedResources
(CmsObject cms, boolean shallow, CmsResource... resources) Utility method for locking and unlocking a set of resources conveniently with the try-with syntax from Java 1.7.static AutoCloseable
CmsLockUtil.withLockedResources
(CmsObject cms, CmsResource... resources) Utility method for locking and unlocking a set of resources conveniently with the try-with syntax from Java 1.7. -
Uses of CmsObject in org.opencms.mail
ModifierConstructorDescriptionCmsVfsDataSource
(CmsObject cms, CmsResource resource) Creates a new data source for the given VFS resource. -
Uses of CmsObject in org.opencms.main
Modifier and TypeMethodDescriptionCmsUIServlet.getCmsObject()
Returns the current cms context.protected CmsObject
OpenCmsSolrHandler.getCmsObject
(javax.servlet.http.HttpServletRequest req) Returns the CMS object.protected CmsObject
OpenCmsSpellcheckHandler.getCmsObject
(javax.servlet.http.HttpServletRequest req) Returns the CMS object.static CmsObject
OpenCms.initCmsObject
(String user) Returns an initialized CmsObject (OpenCms user context) with the user initialized as provided, with the "Online" project selected and "/" set as the current site root.static CmsObject
OpenCms.initCmsObject
(CmsObject cms) Returns an independent copy of the provided CmsObject.static CmsObject
OpenCms.initCmsObject
(CmsObject adminCms, CmsContextInfo contextInfo) Returns an initialized CmsObject with the user and context initialized as provided.protected CmsObject
OpenCmsCore.initCmsObject
(String user) Returns an initialized CmsObject with the user initialized as provided, with the "Online" project selected and "/" set as the current site root.protected CmsObject
OpenCmsCore.initCmsObject
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean allowPrivilegedLogin) Handles the user authentification for each request sent to OpenCms.protected CmsObject
OpenCmsCore.initCmsObject
(CmsObject cms) Returns an independent copy of the provided CmsObject.protected CmsObject
OpenCmsCore.initCmsObject
(CmsObject adminCms, CmsContextInfo contextInfo) Returns an initialized CmsObject with the user and context initialized as provided.protected CmsObject
A_CmsAuthorizationHandler.initCmsObjectFromSession
(javax.servlet.http.HttpServletRequest request) Initializes a new cms object from the session data of the request.protected CmsObject
OpenCmsCore.initCmsObjectFromSession
(javax.servlet.http.HttpServletRequest req) Initializes a new cms object from the session data of the request.protected CmsObject
A_CmsAuthorizationHandler.registerSession
(javax.servlet.http.HttpServletRequest request, CmsObject cms) Registers the current session with OpenCms.protected CmsObject
OpenCmsCore.updateContext
(javax.servlet.http.HttpServletRequest request, CmsObject cms) This method updates the request context information.Modifier and TypeMethodDescriptionCmsSystemInfo.getConfigFilePath
(CmsObject cms, String configFile) Returns the path to a configuration file.CmsProtectedStaticFileHandler.getLink
(CmsObject cms, CmsResource resource) static CmsObject
OpenCms.initCmsObject
(CmsObject cms) Returns an independent copy of the provided CmsObject.static CmsObject
OpenCms.initCmsObject
(CmsObject adminCms, CmsContextInfo contextInfo) Returns an initialized CmsObject with the user and context initialized as provided.protected CmsObject
OpenCmsCore.initCmsObject
(CmsObject cms) Returns an independent copy of the provided CmsObject.protected CmsObject
OpenCmsCore.initCmsObject
(CmsObject adminCms, CmsContextInfo contextInfo) Returns an initialized CmsObject with the user and context initialized as provided.protected void
CmsSessionManager.initialize
(I_CmsSessionStorageProvider sessionStorageProvider, CmsObject adminCms) Sets the storage provider.CmsAliasResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) CmsPermalinkResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) CmsProtectedStaticFileHandler.initResource
(CmsResource origRes, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) I_CmsResourceInit.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Possibility to modify or change the CmsFile with the CmsObject.static CmsResource
OpenCms.initResource
(CmsObject cms, String resourceName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Reads the requested resource from the OpenCms VFS, and in case a directory name is requested, the default files of the directory will be looked up and the first match is returned.protected CmsResource
OpenCmsCore.initResource
(CmsObject cms, String resourceName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Reads the requested resource from the OpenCms VFS, in case a directory name is requested, the default files of the directory will be looked up and the first match is returned.void
I_CmsShellCommands.initShellCmsObject
(CmsObject cms, CmsShell shell) Provides access to the shell CmsObject and the shell itself.void
CmsSessionManager.killSession
(CmsObject cms, CmsUser user) Kills all sessions for the given user.void
CmsSessionManager.killSession
(CmsObject cms, CmsUUID sessionid) Destroys a session given the session id.protected CmsObject
A_CmsAuthorizationHandler.registerSession
(javax.servlet.http.HttpServletRequest request, CmsObject cms) Registers the current session with OpenCms.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message) Deprecated.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, boolean repeat) Deprecated.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, boolean repeat, CmsBroadcast.ContentMode mode) Sends a broadcast to all sessions of all currently authenticated users.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, String sessionId) Deprecated.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, String sessionId, boolean repeat) Deprecated.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, String sessionId, boolean repeat, CmsBroadcast.ContentMode mode) Sends a broadcast to the specified user session.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, String sessionId, CmsBroadcast.ContentMode mode) Sends a broadcast to the specified user session.void
CmsSessionManager.sendBroadcast
(CmsObject cms, String message, CmsBroadcast.ContentMode mode) Sends a broadcast to all sessions of all currently authenticated users.void
CmsProtectedStaticFileHandler.setAdminCmsObject
(CmsObject adminCms) void
Sets the current cms context.void
Called after everything else in the system has been initialized.CmsSessionManager.switchUser
(CmsObject cms, javax.servlet.http.HttpServletRequest req, CmsUser user) Switches the current user to the given user.CmsSessionManager.switchUserFromSession
(CmsObject cms, javax.servlet.http.HttpServletRequest req, CmsUser user, CmsSessionInfo sessionInfo) Switches the current user to the given user.protected CmsObject
OpenCmsCore.updateContext
(javax.servlet.http.HttpServletRequest request, CmsObject cms) This method updates the request context information.void
CmsSessionManager.updateSessionInfo
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Updates the the OpenCms session data used for quick authentication of users.void
CmsSessionManager.updateSessionInfo
(CmsObject cms, javax.servlet.http.HttpServletRequest req, boolean isHeartBeatRequest) Updates the the OpenCms session data used for quick authentication of users.void
CmsSessionManager.updateSessionInfo
(CmsObject cms, javax.servlet.http.HttpSession session) Updates the the OpenCms session data used for quick authentication of users.void
CmsSessionManager.updateSessionInfos
(CmsObject cms) Updates all session info objects, so that invalid projects are replaced by the Online project.ModifierConstructorDescriptionCmsShell
(CmsObject cms, String prompt, List<I_CmsShellCommands> additionalShellCommands, PrintStream out, PrintStream err) Creates a new CmsShell. -
Uses of CmsObject in org.opencms.module
Modifier and TypeMethodDescriptionstatic void
CmsModule.addCalculatedModuleResources
(List<CmsResource> result, CmsObject cms, List<CmsResource> moduleResources, List<String> excludeResources) Determines the resources that are: accessible with the providedCmsObject
, part of themoduleResources
(or in a folder of these resources) and not contained inexcludedResources
(or a folder of these resources). and adds the toresult
void
Adds a new module to the module manager.CmsModule.calculateModuleResourceNames
(CmsObject cms, CmsModule module) Calculates the resources belonging to the module, taking excluded resources and readability of resources into account, and returns site paths of the module resources.static List<CmsResource>
CmsModule.calculateModuleResources
(CmsObject cms, CmsModule module) Calculates and returns the resources belonging to the module, taking excluded resources and readability of resources into account.void
CmsModule.checkResources
(CmsObject cms) Checks if all resources of the module are present.boolean
CmsModuleImportData.checkUpdatable
(CmsObject cms) Checks if the installed module is updatable with the version from the import zip file.CmsResourceImportData.computeRootPath
(CmsObject cms) Computes the root path.static Optional<CmsModuleUpdater>
CmsModuleUpdater.create
(CmsObject cms, String importFile, I_CmsReport report) Tries to create a new updater instance.protected CmsProject
CmsModuleUpdater.createAndSetModuleImportProject
(CmsObject cms, CmsModule module) Creates the project used to import module resources and sets it on the CmsObject.protected void
CmsModuleUpdater.deleteConflictingResources
(CmsObject cms, CmsModule module, Map<CmsUUID, CmsUUID> conflictingIds) Deletes and publishes resources with ID conflicts.void
CmsModuleManager.deleteModule
(CmsObject cms, String moduleName, boolean replace, boolean preserveLibs, I_CmsReport report) Deletes a module from the configuration.void
CmsModuleManager.deleteModule
(CmsObject cms, String moduleName, boolean replace, I_CmsReport report) Deletes a module from the configuration.void
CmsModuleImportExportHandler.exportData
(CmsObject cms, I_CmsReport report) static CmsModuleImportExportHandler
CmsModuleImportExportHandler.getExportHandler
(CmsObject cms, CmsModule module, String handlerDescription) Gets the module export handler containing all resources used in the module export.void
CmsModuleImportExportHandler.importData
(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.void
CmsModuleImportExportHandler.importData
(CmsObject cms, I_CmsReport report) void
CmsModuleUpdater.importRelations
(CmsObject cms) Update relations for all imported resources.void
A_CmsModuleAction.initialize
(CmsObject adminCms, CmsConfigurationManager configurationManager, CmsModule module) protected void
CmsModule.initialize
(CmsObject cms) Initializes this module, also freezing the module configuration.void
CmsModuleImportExportRepository.initialize
(CmsObject adminCms) Initializes the CMS context.void
CmsModuleManager.initialize
(CmsObject cms, CmsConfigurationManager configurationManager) Initializes all module instance classes managed in this module manager.void
I_CmsModuleAction.initialize
(CmsObject adminCms, CmsConfigurationManager configurationManager, CmsModule module) Will be called by the OpenCms system during server startup.protected void
CmsModuleUpdater.parseLinks
(CmsObject cms) Parses links for XMLContents etc.protected void
CmsModuleUpdater.processDeletions
(CmsObject cms, List<CmsResource> toDelete) Handles the file deletions.protected void
CmsModuleUpdater.processImportResource
(CmsObject cms, CmsResourceImportData resData, int index) Processes single resource from module import data.void
A_CmsModuleAction.publishProject
(CmsObject cms, CmsPublishList publishList, int publishTag, I_CmsReport report) void
I_CmsModuleAction.publishProject
(CmsObject cms, CmsPublishList publishList, int publishTag, I_CmsReport report) Will be called during a the publish process after the resources have been published, but before the publish event is fired.static CmsModuleImportData
CmsModuleUpdater.readModuleData
(CmsObject cms, String importFile, I_CmsReport report) Reads the module data from an import zip file.CmsModuleManager.replaceModule
(CmsObject cms, String importFile, I_CmsReport report) Replaces an existing module with the one read from an import ZIP file.protected void
CmsModuleUpdater.runImportScript
(CmsObject cms, CmsModule module) Runs the module import script.void
Sets the CMS object.boolean
CmsModule.shouldIncrementVersionBasedOnResources
(CmsObject cms) Determines if the version should be incremented based on the module resources' modification dates.boolean
CmsModuleUpdater.updateAcls
(CmsObject cms, CmsResourceImportData resData, CmsResource resource) Updates the access control list fr a resource.void
CmsModuleManager.updateModule
(CmsObject cms, CmsModule module) Updates a already configured module with new values. -
Uses of CmsObject in org.opencms.monitor
-
Uses of CmsObject in org.opencms.newsletter
Modifier and TypeMethodDescriptionvoid
CmsNewsletter.addAttachment
(CmsObject cms, CmsResource resource) void
I_CmsNewsletter.addAttachment
(CmsObject cms, CmsResource resource) Adds a OpenCms resource as an attachment to the newsletter.void
CmsNewsletterDistributor.distribute
(CmsObject cms, List<I_CmsNewsletterRecipient> recipients, I_CmsNewsletter newsletter) Sends aI_CmsNewsletter
to a list ofI_CmsNewsletterRecipient
objects.org.apache.commons.mail.Email
CmsNewsletter.getEmail
(CmsObject cms, I_CmsNewsletterRecipient recipient) Returns the e-mail for the newsletter.org.apache.commons.mail.Email
I_CmsNewsletter.getEmail
(CmsObject cms, I_CmsNewsletterRecipient recipient) Returns the newsletter as an e-mail to be sent. -
Uses of CmsObject in org.opencms.notification
Modifier and TypeMethodDescriptionModifierConstructorDescriptionA_CmsNotification
(CmsObject cms, CmsUser receiver) Creates a new A_CmsNotification.Collects all resources that will expire in short time, or will become valid, or are not modified since a long time.CmsNotificationMacroResolver
(CmsObject cms, CmsUser receiver) public constructor.CmsPublishNotification
(CmsObject cms, CmsUser receiver, I_CmsReport report) Creates a new CmsPublishNotification. -
Uses of CmsObject in org.opencms.pdftools
Modifier and TypeMethodDescriptionbyte[]
CmsPdfConverter.convertXhtmlToPdf
(CmsObject cms, byte[] xhtmlData, String uri) Converts XHTML data to a PDF document.static byte[]
CmsPdfFormatterUtils.executeJsp
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content) Executes a JSP with a given content as input and returns the output of the JSP.protected void
CmsPdfResourceHandler.handlePdfLink
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String uri) Handles a link for generating a PDF.CmsPdfResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) ModifierConstructorDescriptionCmsPdfLink
(CmsObject cms, String link) Creates a PDF link object by parsing it from a link string.CmsPdfLink
(CmsObject cms, CmsResource formatter, CmsResource content, String filename) Creates a new PDF link object based on the formatter and content resources and the locale of the current CMS context.CmsPdfThumbnailLink
(CmsObject cms, String link, String options) Parses a thumbnail link object from the given link path and options.CmsPdfThumbnailLink
(CmsObject cms, CmsResource pdfResource, int width, int height, String format) Creates a new thumbnail link for the given resource and options.CmsPdfUserAgent
(CmsObject cms) Creates a new instance. -
Uses of CmsObject in org.opencms.publish
Modifier and TypeMethodDescriptionprotected CmsObject
CmsPublishJobInfoBean.getCmsObject()
Returns the cms object, will be set tonull
after publishing.Modifier and TypeMethodDescriptionvoid
CmsPublishManager.abortPublishJob
(CmsObject cms, CmsPublishJobEnqueued publishJob, boolean removeJob) Aborts the given publish job.int
CmsPublishManager.cleanupPublishHistory
(CmsObject cms) Cleans up all unreferenced publish history entries except for the ones with a history id provided by the special history id providers.int
CmsPublishManager.cleanupPublishHistory
(CmsObject cms, List<CmsUUID> exceptions) Cleans up all unreferenced publish history entries except for the ones with a history id from the given list of exceptions.int
CmsPublishManager.cleanupPublishHistory
(CmsObject cms, CmsUUID historyId) Removes publish history entries for the given history id.void
CmsPublishEngine.enqueuePublishJob
(CmsObject cms, CmsPublishList publishList, I_CmsReport report) Enqueues a new publish job with the given information in publish queue.CmsPublishManager.getPublishList
(CmsObject cms) Returns a publish list with all new/changed/deleted resources of the current (offline) project that actually get published.CmsPublishManager.getPublishList
(CmsObject cms, List<CmsResource> directPublishResources, boolean directPublishSiblings) Returns a publish list with all new/changed/deleted resources of the current (offline) project that actually get published for a direct publish of a List of resources.CmsPublishManager.getPublishList
(CmsObject cms, List<CmsResource> directPublishResources, boolean directPublishSiblings, boolean publishSubResources) Returns a publish list with all new/changed/deleted resources of the current (offline) project that actually get published for a direct publish of a List of resources.CmsPublishManager.getPublishList
(CmsObject cms, CmsResource directPublishResource, boolean directPublishSiblings) Returns a publish list with all new/changed/deleted resources of the current (offline) project that actually get published for a direct publish of a single resource.CmsPublishManager.getPublishListAll
(CmsObject cms, List<CmsResource> directPublishResources, boolean directPublishSiblings, boolean isUserPublishList) Returns a publish list with all the given resources, filtered only by state.CmsPublishManager.getRelatedResourcesToPublish
(CmsObject cms, CmsPublishList publishList) Returns a new publish list that contains the unpublished resources related to all resources in the given publish list, the related resources exclude all resources in the given publish list and also locked (by other users) resources.CmsPublishJobBase.getUserName
(CmsObject cms) Returns the name of the user who initialized this publish job.CmsPublishManager.getUsersPubList
(CmsObject cms) Returns the current user's publish list.protected void
CmsPublishEngine.initialize
(CmsObject adminCms, boolean publishQueuePersistance, int publishQueueShutdowntime) Initializes the publish engine.void
CmsPublishManager.initialize
(CmsObject cms) Initializes the publish manager and the publish engine finally.protected void
CmsPublishQueue.initialize
(CmsObject adminCms, boolean revive) Initializes the internal FIFO queue with publish jobs from the database.CmsPublishManager.mergePublishLists
(CmsObject cms, CmsPublishList pubList1, CmsPublishList pubList2) Returns a new publish list that contains all resources of both given publish lists.CmsPublishManager.publishProject
(CmsObject cms) Publishes the current project, printing messages to a shell report.CmsPublishManager.publishProject
(CmsObject cms, I_CmsReport report) Publishes the current project.CmsPublishManager.publishProject
(CmsObject cms, I_CmsReport report, CmsPublishList publishList) Publishes the resources of a specified publish list.CmsPublishManager.publishProject
(CmsObject cms, I_CmsReport report, CmsResource directPublishResource, boolean directPublishSiblings) Direct publishes a specified resource.CmsPublishManager.publishResource
(CmsObject cms, String resourcename) Publishes a single resource, printing messages to a shell report.CmsPublishManager.publishResource
(CmsObject cms, String resourcename, boolean publishSiblings, I_CmsReport report) Publishes a single resource.void
CmsPublishManager.removeResourceFromUsersPubList
(CmsObject cms, Collection<CmsUUID> structureIds) Removes the given resource to the given user's publish list.void
CmsPublishJobInfoBean.revive
(CmsObject adminCms, CmsPublishList publishList) Revives this publish job.CmsPublishManager.validateRelations
(CmsObject cms, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources.ModifierConstructorDescriptionprotected
CmsPublishJobInfoBean
(CmsObject cms, CmsPublishList publishList, I_CmsReport report) The Default constructor. -
Uses of CmsObject in org.opencms.relations
Modifier and TypeMethodDescriptionvoid
CmsCategoryService.addResourceToCategory
(CmsObject cms, String resourceName, String categoryPath) Adds a resource identified by the given resource name to the category identified by the given category path.void
CmsCategoryService.addResourceToCategory
(CmsObject cms, String resourceName, CmsCategory category) Adds a resource identified by the given resource name to the given category.void
CmsLink.checkConsistency
(CmsObject cms) Checks and updates the structure id or the path of the target.static boolean
Checks if the given url is valid.void
CmsCategoryService.clearCategoriesForResource
(CmsObject cms, String resourcePath) Removes the given resource from all categories.void
CmsCategoryService.copyCategories
(CmsObject cms, CmsResource fromResource, String toResourceSitePath) Adds all categories from one resource to another, skipping categories that are not available for the resource copied to.CmsCategoryService.createCategory
(CmsObject cms, CmsCategory parent, String name, String title, String description, String referencePath) Creates a new category.void
CmsCategoryService.deleteCategory
(CmsObject cms, String categoryPath, String referencePath) Deletes the category identified by the given path.CmsCategoryService.getCategory
(CmsObject cms, String categoryRootPath) Creates a category from the given category root path.CmsCategoryService.getCategory
(CmsObject cms, CmsResource resource) Creates a category from the given resource.CmsCategoryService.getCategoryRepositories
(CmsObject cms, String referencePath) Returns all category repositories for the given reference path.Returns the processed link.Deprecated.useCmsLink.getLink(CmsObject)
instead, the process editor option is set using the OpenCms request context attributesI_CmsCustomLinkRenderer.getLink
(CmsObject cms, CmsResource resource) Returns the link for the given link resource.Returns the link for the given link object.CmsCategoryService.getRepositoryBaseFolderName
(CmsObject cms) Returns the category repositories base folder name.CmsLink.getSitePath
(CmsObject cms) Returns the path of the link target relative to the current site.CmsRelation.getSource
(CmsObject cms, CmsResourceFilter filter) Returns the source resource when possible to read with the given filter.CmsRelation.getTarget
(CmsObject cms, CmsResourceFilter filter) Returns the target resource when possible to read with the given filter.This method is called by the cron scheduler.CmsCategoryService.localizeCategories
(CmsObject cms, List<CmsCategory> categories, Locale locale) Localizes a list of categories by reading locale-specific properties for their title and description, if possible.CmsCategoryService.localizeCategory
(CmsObject cms, CmsCategory category, Locale locale) Localizes a single category by reading its locale-specific properties for title and description, if possible.void
CmsCategoryService.moveCategory
(CmsObject cms, String oldCatPath, String newCatPath, String referencePath) Renames/Moves a category from the old path to the new one.I_CmsLinkParseable.parseLinks
(CmsObject cms, CmsFile file) Returns a list of all links from the specified file.CmsCategoryService.readCategories
(CmsObject cms, String parentCategoryPath, boolean includeSubCats, String referencePath) Returns all categories given some search parameters.CmsCategoryService.readCategoriesForRepositories
(CmsObject cms, String parentCategoryPath, boolean includeSubCats, List<String> repositories) Returns all categories given some search parameters.CmsCategoryService.readCategoriesForRepositories
(CmsObject cms, String parentCategoryPath, boolean includeSubCats, List<String> repositories, boolean includeRepositories) Returns all categories given some search parameters.CmsCategoryService.readCategory
(CmsObject cms, String categoryPath, String referencePath) Reads all categories identified by the given category path for the given reference path.CmsCategoryService.readCategoryResources
(CmsObject cms, String categoryPath, boolean recursive, String referencePath) Reads the resources for a category identified by the given category path.CmsCategoryService.readCategoryResources
(CmsObject cms, String categoryPath, boolean recursive, String referencePath, CmsResourceFilter resFilter) Reads the resources for a category identified by the given category path.CmsCategoryService.readResourceCategories
(CmsObject cms, String resourceName) Reads the categories for a resource identified by the given resource name.CmsCategoryService.readResourceCategories
(CmsObject cms, CmsResource resource) Reads the categories for a resource.void
CmsCategoryService.removeResourceFromCategory
(CmsObject cms, String resourceName, String categoryPath) Removes a resource identified by the given resource name from the category identified by the given category path.void
CmsCategoryService.removeResourceFromCategory
(CmsObject cms, String resourceName, CmsCategory category) Removes a resource identified by the given resource name from the given category.void
CmsCategoryService.repairRelations
(CmsObject cms, String resourceName) Repairs broken category relations.void
CmsCategoryService.repairRelations
(CmsObject cms, CmsResource resource) Repairs broken category relations.void
CmsExternalLinksValidator.validateLinks
(CmsObject cms) Validate all links.ModifierConstructorDescriptionCmsInternalLinksValidator
(CmsObject cms, List<String> resourceNames) Creates a new helper object.CmsRelationDeleteValidator
(CmsObject cms, List<String> resourceNames, boolean includeSiblings) Creates a new helper object.CmsRelationPublishValidator
(CmsObject cms, CmsPublishList publishList) Creates a new helper object. -
Uses of CmsObject in org.opencms.report
Modifier and TypeMethodDescriptionprotected CmsObject
A_CmsReportThread.getCms()
Returns the OpenCms context object this Thread is initialized with.ModifierConstructorDescriptionprotected
A_CmsReportThread
(CmsObject cms, String name) Constructs a new report Thread with the given name. -
Uses of CmsObject in org.opencms.repository
Modifier and TypeMethodDescriptionvoid
CmsRepository.initializeCms
(CmsObject cms) void
CmsRepositoryManager.initializeCms
(CmsObject cms) Initializes repositories using an admin CMS object.void
I_CmsRepository.initializeCms
(CmsObject cms) Initializes this repository with an admin CMS object. -
Uses of CmsObject in org.opencms.scheduler
Modifier and TypeMethodDescriptionvoid
CmsScheduleManager.initialize
(CmsObject adminCms) Initializes the OpenCms scheduler.This method will be called when this scheduled job is executed.void
CmsScheduleManager.scheduleJob
(CmsObject cms, CmsScheduledJobInfo jobInfo) Adds a new job to the scheduler.CmsScheduleManager.unscheduleJob
(CmsObject cms, String jobId) Removes a currently scheduled job from the scheduler. -
Uses of CmsObject in org.opencms.scheduler.jobs
Modifier and TypeMethodDescription -
Uses of CmsObject in org.opencms.search
Modifier and TypeFieldDescriptionprotected CmsObject
CmsSearchManager.m_adminCms
The administrator OpenCms user context to access OpenCms VFS resources.protected CmsObject
CmsSearch.m_cms
The cms object.protected CmsObject
CmsVfsIndexer.m_cms
The OpenCms user context to use when reading resources from the VFS during indexing.Modifier and TypeMethodDescriptionCmsVfsIndexer.getCms()
Returns the OpenCms user context used by this indexer.Modifier and TypeMethodDescriptionprotected List<CmsPublishedResource>
CmsSearchManager.addAdditionallyAffectedResources
(CmsObject adminCms, List<CmsPublishedResource> updateResources) Collects the resources whose indexed document depends on one of the updated resources.protected Collection<CmsPublishedResource>
CmsSearchManager.addIndexContentRelatedResources
(CmsObject adminCms, Collection<CmsPublishedResource> updateResources, Collection<CmsPublishedResource> updateResourcesToCheck) Collects the resources whose indexed document depends on one of the updated resources.protected org.apache.lucene.search.BooleanQuery.Builder
CmsSearchIndex.appendCategoryFilter
(CmsObject cms, org.apache.lucene.search.BooleanQuery.Builder filter, List<String> categories) Appends the a category filter to the given filter clause that matches all given categories.protected org.apache.lucene.search.BooleanQuery.Builder
CmsSearchIndex.appendPathFilter
(CmsObject cms, org.apache.lucene.search.BooleanQuery.Builder filter, List<String> roots) Appends the a VFS path filter to the given filter clause that matches all given root paths.protected org.apache.lucene.search.BooleanQuery.Builder
CmsSearchIndex.appendResourceTypeFilter
(CmsObject cms, org.apache.lucene.search.BooleanQuery.Builder filter, List<String> resourceTypes) Appends the a resource type filter to the given filter clause that matches all given resource types.boolean
A_CmsSearchIndex.checkConfiguration
(CmsObject cms) boolean
I_CmsSearchIndex.checkConfiguration
(CmsObject cms) Checks is this index has been configured correctly.CmsSearchUtil.computeScopeFolders
(CmsObject cms, CmsGallerySearchParameters params) Computes the search root folders for the given search parameters based on the search scope.protected I_CmsSearchDocument
CmsIndexingThread.createIndexDocument
(CmsObject cms, CmsResource res, I_CmsSearchIndex index, int count, I_CmsReport report) Creates the search index document.boolean
A_CmsSearchIndex.excludeFromIndex
(CmsObject cms, CmsResource resource) Checks if the provided resource should be excluded from this search index.boolean
I_CmsSearchIndex.excludeFromIndex
(CmsObject cms, CmsResource resource) Checks if the provided resource should be excluded from this search index.protected Collection<CmsPublishedResource>
CmsSearchManager.findRelatedContainerPages
(CmsObject adminCms, Collection<CmsPublishedResource> updateResources, Collection<CmsPublishedResource> updateResourcesToCheck) Collects the related containerpages to the resources that have been published.static final CmsSolrIndex
CmsSearchManager.getIndexSolr
(CmsObject cms, Map<String, String[]> params) Returns the Solr index configured with the parameters name.A_CmsSearchIndex.getLocaleForResource
(CmsObject cms, CmsResource resource, List<Locale> availableLocales) Returns the language locale for the given resource in this index.CmsSearchIndex.getLocaleForResource
(CmsObject cms, CmsResource resource, List<Locale> availableLocales) Returns the language locale for the given resource in this index.I_CmsSearchIndex.getLocaleForResource
(CmsObject cms, CmsResource resource, List<Locale> availableLocales) Returns the language locale for the given resource in this index.protected CmsResource
CmsSearchIndex.getResource
(CmsObject cms, I_CmsSearchDocument doc) Checks if the OpenCms resource referenced by the result document can be read by the user of the given OpenCms context.protected CmsResource
CmsSearchIndex.getResource
(CmsObject cms, I_CmsSearchDocument doc, CmsResourceFilter filter) Checks if the OpenCms resource referenced by the result document can be read by the user of the given OpenCms context.protected boolean
CmsSearchIndex.hasReadPermission
(CmsObject cms, I_CmsSearchDocument doc) Checks if the OpenCms resource referenced by the result document can be read be the user of the given OpenCms context.void
Initializes the bean with the cms object.void
CmsSearchManager.initialize
(CmsObject cms) Initializes the search manager.void
CmsSearchManager.initSpellcheckIndex
(CmsObject adminCms) Initializes the spell check index.Updates the indexes from as a scheduled job.CmsVfsIndexer.newInstance
(CmsObject cms, I_CmsReport report, I_CmsSearchIndex index) I_CmsIndexer.newInstance
(CmsObject cms, I_CmsReport report, I_CmsSearchIndex index) Creates and initializes a new instance of this indexer implementation.CmsSearchIndex.search
(CmsObject cms, CmsSearchParameters params) Performs a search on the index within the given fields.protected void
CmsSearchManager.updateAllIndexes
(CmsObject adminCms, List<CmsPublishedResource> updateResources, I_CmsReport report) Incrementally updates all indexes that have their rebuild mode set to"auto"
.protected void
CmsSearchManager.updateAllIndexes
(CmsObject adminCms, CmsUUID publishHistoryId, I_CmsReport report) Incrementally updates all indexes that have their rebuild mode set to"auto"
after resources have been published.protected void
CmsSearchManager.updateIndexCompletely
(CmsObject cms, I_CmsSearchIndex index, I_CmsReport report) The method updates all OpenCms documents that are indexed.protected void
CmsSearchManager.updateIndexIncremental
(CmsObject cms, I_CmsSearchIndex index, I_CmsReport report, List<CmsPublishedResource> resourcesToIndex) Incrementally updates the given index.ModifierConstructorDescriptionCmsIndexingThread
(CmsObject cms, CmsResource res, I_CmsSearchIndex index, int count, I_CmsReport report) Create a new indexing thread. -
Uses of CmsObject in org.opencms.search.documents
Modifier and TypeMethodDescriptionA_CmsVfsDocument.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Creates the Lucene Document for the given VFS resource and the given search index.CmsDocumentContainerPage.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Generates a new lucene document instance from contents of the given resource for the provided index.CmsDocumentXmlContent.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) I_CmsDocumentFactory.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Creates the Lucene Document for the given VFS resource and the given search index.CmsDocumentContainerPage.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a VFS resource of typeCmsResourceTypeContainerPage
.CmsDocumentGeneric.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Just returns an empty extraction result since the content can't be extracted form a generic resource.CmsDocumentHtml.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given VFS resource containing HTML data.CmsDocumentMsOfficeOLE2.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing MS Word data.CmsDocumentMsOfficeOOXML.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing MS Word data.CmsDocumentOpenOffice.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing MS Word data.CmsDocumentPdf.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing Adobe PDF data.CmsDocumentPlainText.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing plain text data.CmsDocumentRtf.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource containing RTF data.CmsDocumentXmlContent.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given VFS resource of typeCmsResourceTypeXmlContent
.CmsDocumentXmlPage.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a given vfs resource of typeCmsResourceTypeXmlPage
.I_CmsSearchExtractor.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Extracts the content of a given index resource according to the resource file type and the configuration of the given index.static CmsDocumentDependency
CmsDocumentDependency.load
(CmsObject cms, CmsPublishedResource pubRes) Loads or creates a dependency object for the given parameters.static CmsDocumentDependency
CmsDocumentDependency.load
(CmsObject cms, CmsResource res) Loads or creates a dependency object for the given parameters.static CmsDocumentDependency
CmsDocumentDependency.load
(CmsObject cms, CmsResource res, List<CmsResource> resources) Loads or creates a dependency object for the given parameters.void
CmsDocumentDependency.readDependencies
(CmsObject cms) Reads all dependencies that exist for this main resource in the OpenCms VFS.void
CmsDocumentDependency.readDependencies
(CmsObject cms, List<CmsResource> folderContent) Reads all dependencies that exist for this main resource in provided list of resources.protected CmsFile
A_CmsVfsDocument.readFile
(CmsObject cms, CmsResource resource) Upgrades the given resource to aCmsFile
with content.protected static void
CmsDocumentDependency.removeFromContext
(CmsObject cms, CmsPublishedResource pubRes) Removes the dependency object for a published resource from the OpenCms runtime context.void
CmsDocumentDependency.storeInContext
(CmsObject cms) Stores this dependency object for a published resource in the OpenCms runtime context.CmsDocumentDependency.toDependencyString
(CmsObject cms) Creates the String representation of this dependency object.Returns a JSON object describing this dependency document. -
Uses of CmsObject in org.opencms.search.fields
Modifier and TypeMethodDescriptionprotected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendAdditionalValuesToDcoument
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Overriding this method allows to append some 'extra' values/fields to a document without overriding theCmsSearchFieldConfiguration.createDocument(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.I_CmsSearchIndex, org.opencms.search.extractors.I_CmsExtractionResult)
method itself.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendCategories
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by resource category information based on properties.protected I_CmsSearchDocument
CmsSearchFieldConfigurationOldCategories.appendCategories
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by resource category information based on properties.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendContentBlob
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by a field that contains the extracted content blob.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendDates
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by fields for date of creation, content and last modification.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendFieldMapping
(I_CmsSearchDocument document, CmsSearchField field, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by the mappings for the given field.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendFieldMappings
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by the configured field mappings.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendFileSize
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by the "size" field.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendLocales
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by the "res_locales" field.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendPath
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by fields for VFS path lookup.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendProperties
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Appends all direct properties, that are not empty or white space only to the document.protected I_CmsSearchDocument
CmsSearchFieldConfiguration.appendType
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by a field that contains the resource type name.CmsSearchFieldConfiguration.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, I_CmsExtractionResult extraction) Creates the Lucene Document with this field configuration for the provided VFS resource, search index and content.I_CmsSearchFieldConfiguration.createDocument
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, I_CmsExtractionResult extractionResult) Creates the document to index.CmsGeoCoordinateFieldMapping.getStringValue
(int depth, CmsGeoMappingConfiguration mappingConfig, CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult) Gets the mapped value.CmsGeoCoordinateFieldMapping.getStringValue
(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) CmsMacroResolvingSearchFieldMapping.getStringValue
(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Calls the super method and resolves macros in the returned value.CmsMacroSearchFieldMapping.getStringValue
(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) CmsSearchFieldMapping.getStringValue
(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) I_CmsSearchFieldMapping.getStringValue
(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Returns the String value extracted form the provided data according to the rules of this mapping type. -
Uses of CmsObject in org.opencms.search.galleries
Modifier and TypeFieldDescriptionprotected CmsObject
CmsGallerySearch.m_cms
The OpenCms object used for the search.Modifier and TypeMethodDescriptionReturns a CmsSolrQuery representation of this class.void
Initializes the bean with the provided OpenCms context object.protected void
CmsGallerySearchResult.initializeMissingFieldsFromVfs
(CmsObject cms, CmsUUID structureId) Initializes missing fields by reading the information from the VFS.boolean
CmsGallerySearchResult.isReleaseAndNotExpired
(CmsObject cms) Returns if the related resource is released and not expired.static CmsGallerySearchResult
CmsGallerySearch.searchById
(CmsObject cms, CmsUUID structureId, Locale locale) Searches by structure id.static CmsGallerySearchResult
CmsGallerySearch.searchByPath
(CmsObject cms, String rootPath, Locale locale) Searches by structure id.void
CmsGallerySearch.setIndexForProject
(CmsObject cms) Sets the index name according to the current project.ModifierConstructorDescriptionCmsGalleryNameMacroResolver
(CmsObject cms, A_CmsXmlDocument content, Locale locale) Creates a new instance.CmsGallerySearchResult
(CmsObject cms, CmsResource res, String title) Creates a fake gallery search result by reading the necessary data from a VFS resource.CmsGallerySearchResult
(I_CmsSearchDocument doc, CmsObject cms, int score, Locale locale) Creates a new gallery search result. -
Uses of CmsObject in org.opencms.search.solr
Modifier and TypeMethodDescriptionvoid
CmsSolrDocument.addDocumentDependency
(CmsObject cms, CmsDocumentDependency resDeps) Adds the given document dependency to this document.protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendAdditionalValuesToDcoument
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendDates
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendFieldMapping
(I_CmsSearchDocument document, CmsSearchField sfield, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendFieldMappings
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendFieldMappingsFromElementsOnThePage
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, List<String> systemFields) Adds search fields from elements on a container page to a container page's document.protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendLocales
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) protected I_CmsSearchDocument
CmsSolrFieldConfiguration.appendProperties
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) static void
CmsSolrDocumentXmlContent.collectSchemaXpathsForSimpleValues
(CmsObject cms, CmsXmlContentDefinition def, String path, Set<String> result) Collects a list of all possible XPaths for a content definition.boolean
CmsSolrIndex.excludeFromIndex
(CmsObject cms, CmsResource resource) CmsSolrDocumentContainerPage.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Returns the raw text content of a VFS resource of typeCmsResourceTypeContainerPage
.CmsSolrDocumentContainerPage.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, Locale forceLocale) Extracts the content of a given index resource according to the resource file type and the configuration of the given index.CmsSolrDocumentXmlContent.extractContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) static CmsExtractionResult
CmsSolrDocumentXmlContent.extractXmlContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index) Extracts the content of a single XML content resource.static CmsExtractionResult
CmsSolrDocumentXmlContent.extractXmlContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, Locale forceLocale) Extracts the content of a single XML content resource.static CmsExtractionResult
CmsSolrDocumentXmlContent.extractXmlContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, Locale forceLocale, Set<CmsUUID> alreadyExtracted) Extracts the content of a single XML content resource.static CmsExtractionResult
CmsSolrDocumentXmlContent.extractXmlContent
(CmsObject cms, CmsResource resource, I_CmsSearchIndex index, Locale forceLocale, Set<CmsUUID> alreadyExtracted, Consumer<A_CmsXmlDocument> contentConsumer) Extracts the content of a single XML content resource.CmsSolrIndex.gallerySearch
(CmsObject cms, CmsGallerySearchParameters params) Performs a search with according to the gallery search parameters.CmsSolrFieldConfiguration.getContentLocales
(CmsObject cms, CmsResource resource, I_CmsExtractionResult extraction) Retrieves the locales for an content, that is whether an XML content nor an XML page.CmsSolrIndex.getLocaleForResource
(CmsObject cms, CmsResource resource, List<Locale> availableLocales) Returns the language locale for the given resource in this index.static final String
Returns the resource type for the given root path.protected Set<CmsSearchField>
CmsSolrFieldConfiguration.getXSDMappings
(CmsObject cms, CmsResource resource) Returns the search field mappings declared within the XSD.protected Set<CmsSearchField>
CmsSolrFieldConfiguration.getXSDMappingsForPage
(CmsObject cms, CmsResource resource) Returns the search field mappings declared within the XSD that should be applied to the container page.protected boolean
CmsSolrIndex.hasPermissions
(CmsObject cms, CmsSolrDocument doc, CmsResourceFilter filter) Check, if the current user has permissions on the document's resource.org.apache.solr.common.SolrDocument
CmsSolrLinkProcessor.process
(CmsObject cms, CmsResource resource, org.apache.solr.common.SolrInputDocument document) org.apache.solr.common.SolrDocument
I_CmsSolrPostSearchProcessor.process
(CmsObject searchCms, CmsResource resource, org.apache.solr.common.SolrInputDocument document) Performs the post processing.Performs a search.Default search method.CmsSolrIndex.search
(CmsObject cms, CmsSearchParameters params) Deprecated.CmsSolrIndex.search
(CmsObject cms, CmsSolrQuery query) Default search method.CmsSolrIndex.search
(CmsObject cms, CmsSolrQuery query, boolean ignoreMaxRows) Performs a search.CmsSolrIndex.search
(CmsObject cms, CmsSolrQuery query, boolean ignoreMaxRows, javax.servlet.ServletResponse response, boolean ignoreSearchExclude, CmsResourceFilter filter) Performs the actual search.CmsSolrIndex.search
(CmsObject cms, CmsSolrQuery query, boolean ignoreMaxRows, javax.servlet.ServletResponse response, boolean ignoreSearchExclude, CmsResourceFilter filter, int maxNumResults) Performs the actual search.CmsSolrIndex.search
(CmsObject cms, CmsSolrQuery query, boolean ignoreMaxRows, CmsResourceFilter filter) LikeCmsSolrIndex.search(CmsObject, CmsSolrQuery, boolean)
, but additionally a resource filter can be specified.void
CmsSolrIndex.select
(javax.servlet.ServletResponse response, CmsObject cms, CmsSolrQuery query, boolean ignoreMaxRows) Writes the response into the writer.void
CmsSolrIndex.spellCheck
(javax.servlet.ServletResponse res, CmsObject cms, CmsSolrQuery q) Executes a spell checking Solr query and returns the Solr query response.ModifierConstructorDescriptionCmsSolrQuery
(CmsObject cms, Map<String, String[]> queryParams) Public constructor. -
Uses of CmsObject in org.opencms.search.solr.spellchecking
Modifier and TypeMethodDescriptionvoid
CmsSolrSpellchecker.getSpellcheckingResult
(javax.servlet.http.HttpServletResponse res, javax.servlet.ServletRequest servletRequest, CmsObject cms) Performs spellchecking using Solr and returns the spellchecking results using JSON.void
CmsSolrSpellchecker.parseAndAddDictionaries
(CmsObject cms) Parses and adds dictionaries to the Solr index.static void
CmsSpellcheckDictionaryIndexer.parseAndAddDictionaries
(org.apache.solr.client.solrj.SolrClient client, CmsObject cms) Adds all dictionaries that are available in the default directory.static void
CmsSpellcheckDictionaryIndexer.parseAndAddZippedDictionaries
(org.apache.solr.client.solrj.SolrClient client, CmsObject cms) static boolean
CmsSpellcheckDictionaryIndexer.updatingIndexNecessesary
(CmsObject cms) Checks whether a built of the indices is necessary. -
Uses of CmsObject in org.opencms.security
Modifier and TypeMethodDescriptionprotected CmsObject
CmsDefaultAuthorizationHandler.checkBasicAuthorization
(javax.servlet.http.HttpServletRequest req) Checks if the current request contains HTTP basic authentication information in the headers, if so the user is tried to log in with this data, and on success a session is generated.I_CmsAuthorizationHandler.I_PrivilegedLoginAction.doLogin
(javax.servlet.http.HttpServletRequest request, String principal) Performs a privileged login action and returns a cms object initialized for the principal.Returns a cms object initialized for the passed principal.I_CmsAuthorizationHandler.I_PrivilegedLoginAction.getCmsObject()
Returns the cms object.CmsDefaultAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request) CmsDefaultAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request, String userName, String pwd) CmsDefaultAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request, I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction) CmsPersistentLoginAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request, I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction) I_CmsAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request) Creates a new cms object from the given request object.I_CmsAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request, String userName, String pwd) Authenticates the current request with additional user information.I_CmsAuthorizationHandler.initCmsObject
(javax.servlet.http.HttpServletRequest request, I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction) Creates a new cms object from the given request object.CmsPersistentLoginAuthorizationHandler.initCmsObjectFromToken
(javax.servlet.http.HttpServletRequest request, I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction) Tries to initialize the CmsObject from a login token given as a cookie in the request.Modifier and TypeMethodDescriptionvoid
CmsOrgUnitManager.addResourceToOrgUnit
(CmsObject cms, String ouFqn, String resourceName) Adds a resource to the given organizational unit.void
CmsRoleManager.addUserToRole
(CmsObject cms, CmsRole role, String username) Adds a user to the given role.void
Checks if the user of this OpenCms context is a member of the given role for the given organizational unit.void
CmsRoleManager.checkRoleForResource
(CmsObject cms, CmsRole role, String resourceName) Checks if the user of this OpenCms context is a member of the given role for the given resource.protected static boolean
Checks if the authenticated user matches a user specification string.long
CmsOrgUnitManager.countUsers
(CmsObject cms, CmsUserSearchParameters params) Counts the users which fit the given search criteria.CmsOrgUnitManager.createOrganizationalUnit
(CmsObject cms, String ouFqn, String description, int flags, String resourceName) Creates a new organizational unit.CmsPersistentLoginTokenHandler.createToken
(CmsObject cms) Generates a new login token for a given user and registers the token in the user's additional info.void
CmsOrgUnitManager.deleteOrganizationalUnit
(CmsObject cms, String ouFqn) Deletes an organizational unit.CmsOrgUnitManager.getAllAccessibleProjects
(CmsObject cms, String ouFqn, boolean includeSubOus) Returns all accessible projects of the given organizational unit.CmsOrgUnitManager.getAllManageableProjects
(CmsObject cms, String ouFqn, boolean includeSubOus) Returns all manageable projects of the given organizational unit.CmsPrincipal.getDisplayName
(CmsObject cms, Locale locale) Returns the display name of this principal including the organizational unit.CmsPrincipal.getDisplayName
(CmsObject cms, Locale locale, I_CmsGroupNameTranslation translation) Returns the translated display name of this principal if it is a group and the display name otherwise.CmsRole.getDisplayName
(CmsObject cms, Locale locale) Returns the display name of this role including the organizational unit.CmsRoleAsPrincipal.getDisplayName
(CmsObject cms, Locale locale) CmsRoleAsPrincipal.getDisplayName
(CmsObject cms, Locale locale, I_CmsGroupNameTranslation translation) Returns all groups of the given organizational unit.CmsRoleManager.getManageableGroups
(CmsObject cms, String ouFqn, boolean includeSubOus) Returns all groups of organizational units for which the current user has theCmsRole.ACCOUNT_MANAGER
role.CmsRoleManager.getManageableOrgUnits
(CmsObject cms, String ouFqn, boolean includeSubOus, boolean includeWebusers) Returns a list of those organizational units whose members can be managed by the current user.CmsRoleManager.getManageableResources
(CmsObject cms, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsRoleManager.getManageableUsers
(CmsObject cms, String ouFqn, boolean includeSubOus) Returns all users of organizational units for which the current user has theCmsRole.ACCOUNT_MANAGER
role.CmsRoleManager.getManageableUsers
(CmsObject cms, String ouFqn, boolean includeSubOus, boolean includeWebusers) Returns all users of organizational units for which the current user has theCmsRole.ACCOUNT_MANAGER
role.CmsOrgUnitManager.getOrganizationalUnits
(CmsObject cms, String ouFqn, boolean includeChildren) Returns all child organizational units of the given parent organizational unit including hierarchical deeper organization units if needed.CmsOrgUnitManager.getOrgUnitsForResource
(CmsObject cms, String rootPath) Gets all organizational units x such that x and all of its ancestor org.CmsRoleManager.getOrgUnitsForRole
(CmsObject cms, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsOrgUnitManager.getResourcesForOrganizationalUnit
(CmsObject cms, String ouFqn) Returns all resources of the given organizational unit.CmsRoleManager.getRoleGroups
(CmsObject cms, CmsRole role, boolean directUsersOnly) Returns the groups which constitute a given role, i.e.Returns all roles, in the given organizational unit.CmsRoleManager.getRolesForResource
(CmsObject cms, String userFqn, String resourceName) Returns all roles the given user has over the given resource.CmsRoleManager.getRolesForResource
(CmsObject cms, CmsUser user, CmsResource resource) Returns all roles the given user has over the given resource.CmsRoleManager.getRolesOfUser
(CmsObject cms, String username, String ouFqn, boolean includeChildOus, boolean directRolesOnly, boolean recursive) Returns all roles the given user belongs to, in the given organizational unit.Returns all users of the given organizational unit.CmsRoleManager.getUsersOfRole
(CmsObject cms, CmsRole role, boolean includeOtherOuUsers, boolean directUsersOnly) Returns all direct users of a given role, in the given organizational unit.CmsOrgUnitManager.getUsersWithoutAdditionalInfo
(CmsObject cms, String ouFqn, boolean recursive) Returns all users of the given organizational unit, without their additional info.boolean
Checks if the given user has the given role in the given organizational unit.boolean
Checks if the given context user has the given role in the given organizational unit.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, String userName, CmsRole role, String resourceName) Checks if the given context user has the given role for the given resource.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, CmsRole role, String resourceName) Checks if the given context user has the given role for the given resource.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, CmsRole role, CmsResource resource) Checks if the given context user has the given role for the given resource.void
CmsOrgUnitManager.initialize
(CmsObject cms) Initializes the organizational units.static void
Logs a successful login.static void
CmsUserLog.logLoginFailure
(CmsObject cms, String user) Logs a login failure.static void
Logs a successful logout.static void
CmsUserLog.logPasswordChange
(CmsObject cms, String user) Logs a password change.static void
CmsUserLog.logPasswordChangeForRequestedReset
(CmsObject cms, String user) Logs a password change originally requested through the 'reset password' button.static void
CmsUserLog.logPasswordResetRequest
(CmsObject cms, String user) Logs a password reset request.static void
CmsUserLog.logSetForceResetPassword
(CmsObject cms, String user) Logs that the 'force reset password' status was set on a user.static void
CmsUserLog.logSwitchUser
(CmsObject cms, String name) Logs a user switch.CmsOrgUnitManager.readOrganizationalUnit
(CmsObject cms, String ouFqn) Reads an organizational Unit based on its fully qualified name.static I_CmsPrincipal
CmsPrincipal.readPrefixedPrincipal
(CmsObject cms, String name) Utility function to read a prefixed principal from the OpenCms database using the provided OpenCms user context.static I_CmsPrincipal
CmsPrincipal.readPrincipal
(CmsObject cms, String name) Utility function to read a principal by its id from the OpenCms database using the provided OpenCms user context.static I_CmsPrincipal
CmsPrincipal.readPrincipal
(CmsObject cms, String type, String name) Utility function to read a principal of the given type from the OpenCms database using the provided OpenCms user context.static I_CmsPrincipal
CmsPrincipal.readPrincipal
(CmsObject cms, CmsUUID id) Utility function to read a principal by its id from the OpenCms database using the provided OpenCms user context.static I_CmsPrincipal
CmsPrincipal.readPrincipalIncludingHistory
(CmsObject cms, CmsUUID id) Utility function to read a principal by its id from the OpenCms database using the provided OpenCms user context.void
CmsOrgUnitManager.removeResourceFromOrgUnit
(CmsObject cms, String ouFqn, String resourceName) Removes a resource from the given organizational unit.void
CmsRoleManager.removeUserFromRole
(CmsObject cms, CmsRole role, String username) Removes a user from a role, in the given organizational unit.CmsOrgUnitManager.searchUsers
(CmsObject cms, CmsUserSearchParameters params) Searches users which fit the given search parameters.static void
CmsPersistentLoginTokenHandler.setAdminCms
(CmsObject adminCms) Static method used to give this class access to an admin cms context.void
I_CmsAuthorizationHandler.I_PrivilegedLoginAction.setCmsObject
(CmsObject cms) Used to provide an initial cms object.void
CmsOrgUnitManager.setUsersOrganizationalUnit
(CmsObject cms, String ouFqn, String userName) Moves an user to the given organizational unit.protected boolean
CmsDefaultAuthorizationHandler.shouldUseStartSettingsForHttpBasicAuth
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Checks whether start settings should be used after HTTP Basic authentication.void
CmsOrgUnitManager.writeOrganizationalUnit
(CmsObject cms, CmsOrganizationalUnit organizationalUnit) Writes an already existing organizational unit.ModifierConstructorDescriptionCmsPasswordInfo
(CmsObject cms) Use this Constructor if you need to check the old password of the current logged in user. -
Uses of CmsObject in org.opencms.security.twofactor
Modifier and TypeMethodDescriptionboolean
CmsTwoFactorAuthenticationUserPolicy.shouldUseTwoFactorAuthentication
(CmsObject cms, CmsUser user) Checks whether the given user should use two-factor-authentication according to this policy.ModifierConstructorDescriptionCmsTwoFactorAuthenticationHandler
(CmsObject adminCms, CmsTwoFactorAuthenticationConfig config) Creates a new instance.UserCheckContext
(CmsObject cms, CmsUser user) Creates a new instance. -
Uses of CmsObject in org.opencms.site
Modifier and TypeMethodDescriptionvoid
Adds a site.CmsSiteManagerImpl.getAvailableCorruptedSites
(CmsObject cms, boolean workplaceMode) Returns all wrong configured sites.CmsSiteManagerImpl.getAvailableSites
(CmsObject cms, boolean workplaceMode) Returns a list of all sites available (visible) for the current user.CmsSiteManagerImpl.getAvailableSites
(CmsObject cms, boolean workplaceMode, boolean showShared, String ouFqn) Returns a list of allCmsSite
instances that are compatible to the given organizational unit.CmsSiteManagerImpl.getAvailableSites
(CmsObject cms, boolean workplaceMode, boolean showShared, String ouFqn, CmsSSLMode filterMode) Returns a list of allCmsSite
instances that are compatible to the given organizational unit.CmsSiteManagerImpl.getAvailableSites
(CmsObject cms, boolean workplaceMode, String ouFqn) Returns a list of allCmsSite
instances that are compatible to the given organizational unit.CmsSiteManagerImpl.getAvailableSites
(CmsObject cms, boolean workplaceMode, CmsSSLMode filterMode) Returns a list of all sites available (visible) for the current user.CmsSiteManagerImpl.getCurrentSite
(CmsObject cms) Returns the current site for the provided OpenCms user context object.CmsSite.getServerPrefix
(CmsObject cms, String resourceName) Returns the server prefix for the given resource in this site, used to distinguish between secure (https) and non-secure (http) sites.CmsSite.getServerPrefix
(CmsObject cms, CmsResource resource) Returns the server prefix for the given resource in this site, used to distinguish between secure (https) and non-secure (http) sites.CmsSiteManagerImpl.getSiteTitle
(CmsObject cms, CmsResource resource) Returns the site title.CmsSiteManagerImpl.getWorkplaceServer
(CmsObject cms) Gets the first configured workplace server that matches the host from the current CmsRequestContext, or the first configured workplace server if there is no match.void
CmsSiteManagerImpl.initialize
(CmsObject cms) Initializes the site manager with the OpenCms system configuration.boolean
CmsSiteManagerImpl.isMatchingCurrentSite
(CmsObject cms, CmsSiteMatcher matcher) Returnstrue
if the given site matcher matches the current site.void
CmsSiteManagerImpl.removeSite
(CmsObject cms, CmsSite site) Removes a site from the list of configured sites.void
CmsSiteManagerImpl.updateGeneralSettings
(CmsObject cms, String defaultUri, List<String> workplaceServersList, String sharedFolder) Method for backward compability reasons.void
CmsSiteManagerImpl.updateGeneralSettings
(CmsObject cms, String defaulrUri, Map<String, CmsSSLMode> workplaceServers, String sharedFolder) Updates the general settings.void
CmsSiteManagerImpl.updateSite
(CmsObject cms, CmsSite oldSite, CmsSite newSite) Updates or creates a site. -
Uses of CmsObject in org.opencms.site.xmlsitemap
Modifier and TypeFieldDescriptionprotected CmsObject
CmsXmlSitemapGenerator.m_guestCms
A CMS context with guest privileges.protected CmsObject
CmsXmlSitemapGenerator.m_siteGuestCms
A guest user CMS object with the site root of the base folder. -
Uses of CmsObject in org.opencms.staticexport
Modifier and TypeMethodDescriptionprotected List<CmsPublishedResource>
A_CmsStaticExportHandler.addMovedLinkSources
(CmsObject cms, List<CmsPublishedResource> publishedResources) Add the link sources of moved resources to the list of published resources.CmsDefaultLinkSubstitutionHandler.addVfsPrefix
(CmsObject cms, String vfsName, CmsSite targetSite, String parameters) Adds the VFS prefix to the VFS name and potentially adjusts request parametersCmsLocalePrefixLinkSubstitutionHandler.addVfsPrefix
(CmsObject cms, String vfsName, CmsSite targetSite, String parameters) int
CmsStaticExportManager.export
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, CmsObject cms, CmsStaticExportData data) Exports the requested uri and at the same time writes the uri to the response output stream if required.protected boolean
CmsAfterPublishStaticExportHandler.exportNonTemplateResources
(CmsObject cms, List<CmsPublishedResource> publishedResources, I_CmsReport report) Exports all non template resources found in a list of published resources.protected void
CmsAfterPublishStaticExportHandler.exportTemplateResources
(CmsObject cms, List<String> publishedTemplateResources, I_CmsReport report) Exports all template resources found in a list of published resources.protected String
CmsDefaultLinkSubstitutionHandler.generateCacheKey
(CmsObject cms, String sourceSiteRoot, String targetSiteRoot, String detailPagePart, String absoluteLink) Generates the cache key for Online links.protected String
CmsLocalePrefixLinkSubstitutionHandler.generateCacheKey
(CmsObject cms, String sourceSiteRoot, String targetSiteRoot, String detailPagePart, String absoluteLink) CmsAfterPublishStaticExportHandler.getAllResources
(CmsObject cms) Returns all resources within the current OpenCms site that are not marked as internal.CmsStaticExportManager.getExportData
(javax.servlet.http.HttpServletRequest request, CmsObject cms) Returns the export data for the request, if null is returned no export is required.CmsStaticExportExportRule.getExportResources
(CmsObject cms) Returns a set of
objects containing all resources specified by theCmsPublishedResource
<export-resources>
node of this rule.CmsAdvancedLinkSubstitutionHandler.getLink
(CmsObject cms, String link, String siteRoot, boolean forceSecure) CmsDefaultLinkSubstitutionHandler.getLink
(CmsObject cms, String link, String siteRoot, boolean forceSecure) Returns the resource root path in the OpenCms VFS for the given link, ornull
in case the link points to an external site.CmsDefaultLinkSubstitutionHandler.getLink
(CmsObject cms, String link, String siteRoot, String targetDetailPage, boolean forceSecure) I_CmsLinkSubstitutionHandler.getLink
(CmsObject cms, String link, String siteRoot, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
andsiteRoot
, for use on web pages.I_CmsLinkSubstitutionHandler.getLink
(CmsObject cms, String link, String siteRoot, String targetDetailPage, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
andsiteRoot
, for use on web pages.static String
CmsLinkManager.getLinkSubsite
(CmsObject cms, String link) Gets the absolute path for the subsite a link links to.CmsLinkManager.getOnlineLink
(CmsObject cms, String resourceName) Returns the online link for the given resource, with full server prefix.CmsLinkManager.getOnlineLink
(CmsObject cms, String resourceName, boolean forceSecure) Returns the online link for the given resource, with full server prefix.CmsLinkManager.getOnlineLink
(CmsObject cms, String resourceName, String targetDetailPage, boolean forceSecure) Returns the online link for the given resource, with full server prefix.CmsLinkManager.getPermalink
(CmsObject cms, String resourceName) Returns the perma link for the given resource.CmsLinkManager.getPermalink
(CmsObject cms, String resourceName, CmsUUID detailContentId) Returns the perma link for the given resource and optional detail content.<p<CmsLinkManager.getPermalinkForCurrentPage
(CmsObject cms) Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p<protected List<CmsPublishedResource>
CmsAfterPublishStaticExportHandler.getRelatedResources
(CmsObject cms, List<CmsPublishedResource> publishedResources) Creates a list of
objects containing all related resources of the VFS tree.CmsPublishedResource
CmsStaticExportExportRule.getRelatedResources
(CmsObject cms, CmsPublishedResource publishedResource) Returns a set of
objects specified by theCmsPublishedResource
<export-resources>
node of this rule, if the publishedResource matches a modified Resource regular expression.protected CmsStaticExportData
CmsStaticExportManager.getRfsExportData
(CmsObject cms, String uri) Returns the export data for a requested resource, if null is returned no export is required.CmsStaticExportManager.getRfsName
(CmsObject cms, String vfsName) Returns the static export rfs name for a given vfs resource.CmsStaticExportManager.getRfsName
(CmsObject cms, String vfsName, String parameters, String targetDetailPage) Returns the static export rfs name for a given vfs resource where the link to the resource includes request parameters.protected String
CmsStaticExportManager.getRfsNameWithExportName
(CmsObject cms, String vfsName) Returns the rfs name for a given vfs name with consideration of the export name.CmsAdvancedLinkSubstitutionHandler.getRootPath
(CmsObject cms, String targetUri, String basePath) CmsDefaultLinkSubstitutionHandler.getRootPath
(CmsObject cms, String targetUri, String basePath) CmsLinkManager.getRootPath
(CmsObject cms, String targetUri) Returns the resource root path in the OpenCms VFS for the given target URI link, ornull
in case the link points to an external site.CmsLinkManager.getRootPath
(CmsObject cms, String targetUri, String basePath) Returns the resource root path in the OpenCms VFS for the given target URI link, ornull
in case the link points to an external site.I_CmsLinkSubstitutionHandler.getRootPath
(CmsObject cms, String targetUri, String basePath) Returns the resource root path in the OpenCms VFS for the given target URI link, ornull
in case the link points to an external site.protected String
CmsDefaultLinkSubstitutionHandler.getRootPathForSite
(CmsObject cms, String path, String siteRoot, boolean isRootPath) Returns the root path for given site.protected String
CmsLocalePrefixLinkSubstitutionHandler.getRootPathForSite
(CmsObject cms, String path, String siteRoot, boolean isRootPath) CmsLinkManager.getServerLink
(CmsObject cms, String resourceName) Returns the link for the given resource in the current project, with full server prefix.CmsLinkManager.getServerLink
(CmsObject cms, String resourceName, boolean forceSecure) Returns the link for the given resource in the current project, with full server prefix.protected Set<CmsPublishedResource>
CmsAfterPublishStaticExportHandler.getSiblings
(CmsObject cms, CmsPublishedResource pubResource) Returns all siblings of the published resource as list ofCmsPublishedResource
.A_CmsStaticExportHandler.getSiblingsList
(CmsObject cms, String resPath) Returns a list containing the root paths of all siblings of a resource.protected String
CmsDefaultLinkSubstitutionHandler.getSimpleRootPath
(CmsObject cms, String targetUri, String basePath) Gets the root path without taking into account detail page links.static String
CmsLinkManager.getSitePath
(CmsObject cms, String basePath, String targetUri) Deprecated.useCmsLinkManager.getRootPath(CmsObject, String, String)
instead, obtain the link manager withOpenCms.getLinkManager()
CmsStaticExportManager.getVfsExportData
(CmsObject cms, String vfsName) Returns the export data for a requested resource, if null is returned no export is required.CmsStaticExportManager.getVfsName
(CmsObject cms, String rfsName) Returns the VFS name for the given RFS name, being the exact reverse of
.CmsStaticExportManager.getRfsName(CmsObject, String)
CmsStaticExportManager.getVfsNameInternal
(CmsObject cms, String rfsName) Returns the VFS name from a given RFS name.CmsLinkManager.getWorkplaceLink
(CmsObject cms, String resourceName, boolean forceSecure) Returns the link for the given workplace resource.void
CmsStaticExportManager.initialize
(CmsObject cms) Initializes the static export manager with the OpenCms system configuration.protected boolean
CmsDefaultLinkSubstitutionHandler.isDetailPageLinkSecure
(CmsObject cms, String detailPage, CmsResource detailContent, CmsSite targetSite, boolean secureRequest) Checks whether a link to a detail page should be secure.protected boolean
CmsAdvancedLinkSubstitutionHandler.isExcluded
(CmsObject cms, String path) Returns if the given path starts with an exclude prefix.boolean
CmsStaticExportManager.isExportLink
(CmsObject cms, String vfsName) Checks if the static export is required for the given VFS resource.protected boolean
CmsDefaultLinkSubstitutionHandler.isSecureLink
(CmsObject cms, String vfsName, CmsSite targetSite, boolean secureRequest) Checks if the link target is a secure link.<pboolean
CmsStaticExportManager.isSecureLink
(CmsObject cms, String vfsName) Returnstrue
if the given VFS resource should be transported through a secure channel.boolean
CmsStaticExportManager.isSecureLink
(CmsObject cms, String vfsName, boolean fromSecure) Returnstrue
if the given VFS resource should be transported through a secure channel.boolean
CmsStaticExportManager.isSecureLink
(CmsObject cms, String vfsName, String siteRoot) Returnstrue
if the given VFS resource that is located under the given site root should be transported through a secure channel.boolean
CmsStaticExportManager.isSecureLink
(CmsObject cms, String vfsName, String siteRoot, boolean fromSecure) Returnstrue
if the given VFS resource should be transported through a secure channel.protected String
CmsDefaultLinkSubstitutionHandler.prepareExportParameters
(CmsObject cms, String vfsName, String parameters) Prepares the request parameters for the given resource.protected String
CmsLocalePrefixLinkSubstitutionHandler.prepareExportParameters
(CmsObject cms, String vfsName, String parameters) protected boolean
CmsAfterPublishStaticExportHandler.readNonTemplateResourcesToExport
(CmsObject cms, List<CmsPublishedResource> publishedResources, List<CmsStaticExportData> resourcesToExport) Returns all non template resources found in a list of published resources.protected CmsStaticExportData
CmsStaticExportManager.readResource
(CmsObject cms, String uri) Reads the resource with the given URI.protected void
A_CmsStaticExportHandler.scrubResource
(CmsObject cms, CmsPublishedResource res, Set<String> scrubbedFolders, Set<String> scrubbedFiles) Scrub a single file or folder.void
CmsLinkManager.setLinkSubstitutionHandler
(CmsObject cms, I_CmsLinkSubstitutionHandler linkSubstitutionHandler) Sets the internal link substitution handler.CmsLinkManager.substituteLink
(CmsObject cms, String link) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
in the current site, for use on web pages.CmsLinkManager.substituteLink
(CmsObject cms, String link, String siteRoot) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
andsiteRoot
, for use on web pages.CmsLinkManager.substituteLink
(CmsObject cms, String link, String siteRoot, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
andsiteRoot
, for use on web pages, using the configured link substitution handler.CmsLinkManager.substituteLink
(CmsObject cms, String link, String siteRoot, String targetDetailPage, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the givenlink
andsiteRoot
, for use on web pages, using the configured link substitution handler.CmsLinkManager.substituteLink
(CmsObject cms, CmsResource resource) Returns a link from the URI stored in the provided OpenCms user context to the given VFS resource, for use on web pages.CmsLinkManager.substituteLinkForRootPath
(CmsObject cms, String rootPath) Returns a link from the URI stored in the provided OpenCms user context to the VFS resource indicated by the given root path, for use on web pages.CmsLinkManager.substituteLinkForUnknownTarget
(CmsObject cms, String link) Returns a link from the URI stored in the provided OpenCms user context to the givenlink
, for use on web pages.CmsLinkManager.substituteLinkForUnknownTarget
(CmsObject cms, String link, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the givenlink
, for use on web pages.CmsLinkManager.substituteLinkForUnknownTarget
(CmsObject cms, String link, String targetDetailPage, boolean forceSecure) Returns a link from the URI stored in the provided OpenCms user context to the givenlink
, for use on web pages.ModifierConstructorDescriptionCmsLinkProcessor
(CmsObject cms, CmsLinkTable linkTable, String encoding, String relativePath) Creates a new link processor. -
Uses of CmsObject in org.opencms.synchronize
Modifier and TypeMethodDescriptionvoid
CmsSynchronizeSettings.checkValues
(CmsObject cms) Performs a check if the values that have been set are valid.void
I_CmsSynchronizeModification.modifyFs
(CmsObject cms, CmsResource vfsRes, File fsFile) Possibility to modify a resource after it has benn exported or updated to the FS.void
I_CmsSynchronizeModification.modifyVfs
(CmsObject cms, CmsResource vfsRes, File fsFile) Possibility to modify a resource after it has been imported or updated into the VFS.Translates the resource name.ModifierConstructorDescriptionCmsSynchronize
(CmsObject cms, CmsSynchronizeSettings settings, I_CmsReport report) Creates a new CmsSynchronize object which automatically start the synchronization process. -
Uses of CmsObject in org.opencms.ugc
Modifier and TypeMethodDescriptionCmsUgcSession.getCmsObject()
Gets the CMS context used by this session.Modifier and TypeMethodDescriptionstatic void
CmsUgcSessionSecurityUtil.checkCreateContent
(CmsObject cms, CmsUgcConfiguration config) Checks whether a new XML content may be created and throws an exception if this is not the case.static void
CmsUgcSessionSecurityUtil.checkCreateUpload
(CmsObject cms, CmsUgcConfiguration config, String name, long size) Checks whether an uploaded file can be created in the VFS, and throws an exception otherwise.void
CmsUgcEditService.checkPermissions
(CmsObject cms) CmsUgcSessionFactory.createSession
(CmsObject cms, javax.servlet.http.HttpServletRequest request, String sitePath) Creates a new editing session.CmsUgcSessionFactory.createSession
(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsUgcConfiguration config) Creates a new editing session.CmsUgcSessionFactory.createSessionForFile
(CmsObject cms, javax.servlet.http.HttpServletRequest request, String configPath, String fileName) Creates a new session for a given file.static void
CmsUgcSessionFactory.setAdminCms
(CmsObject adminCms) Sets the admin CmsObject instance.ModifierConstructorDescriptionCreates a new instance.protected
CmsUgcSession
(CmsObject cms) Constructor.CmsUgcSession
(CmsObject adminCms, CmsObject cms, CmsUgcConfiguration configuration) Constructor.CmsUgcSession
(CmsObject cms, CmsUgcConfiguration configuration) Constructor. -
Uses of CmsObject in org.opencms.ui
Modifier and TypeMethodDescriptionA_CmsDialogContext.getCms()
I_CmsDialogContext.getCms()
Gets the CMS context to be used for dialog operations.static CmsObject
A_CmsUI.getCmsObject()
Returns the current cms context.Modifier and TypeMethodDescriptionvoid
CmsUserIconHelper.deleteUserImage
(CmsObject cms) Deletes the user image of the current user.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getAvailableGroupsContainerWithout
(CmsObject cms, String ouFqn, String propCaption, String propIcon, String propOu, List<CmsGroup> blackList, Function<CmsGroup, CmsCssIcon> iconProvider) Get all groups with blacklist.static List<CmsProject>
CmsVaadinUtils.getAvailableProjects
(CmsObject cms) Returns the available projects.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getAvailableSitesContainer
(CmsObject cms, String captionPropertyName) Builds an IndexedContainer containing the sites selectable by the current user.static LinkedHashMap<String,
String> CmsVaadinUtils.getAvailableSitesMap
(CmsObject cms) Gets available sites as a LinkedHashMap, with site roots as keys and site labels as values.CmsUserIconHelper.getBigIconPath
(CmsObject cms, CmsUser user) Returns the big ident-icon path for the given user.static String
CmsVaadinUtils.getBootstrapScript
(CmsObject cms, String elementId, String servicePath) Returns the Javascript code to use for initializing a Vaadin UI.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getGroupsOfUser
(CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, com.google.common.base.Function<CmsGroup, CmsCssIcon> iconProvider) Gets container with alls groups of a certain user.static com.vaadin.v7.ui.ComboBox
CmsVaadinUtils.getOUComboBox
(CmsObject cms, String baseOu, org.apache.commons.logging.Log log) Creates the ComboBox for OU selection.static com.vaadin.v7.ui.ComboBox
CmsVaadinUtils.getOUComboBox
(CmsObject cms, String baseOu, org.apache.commons.logging.Log log, boolean includeWebOU) Creates the ComboBox for OU selection.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getPrincipalContainer
(CmsObject cms, List<? extends I_CmsPrincipal> list, String captionID, String descID, String iconID, String ouID, String icon, List<com.vaadin.server.FontIcon> iconList) Get container for principal.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getProjectsContainer
(CmsObject cms, String captionPropertyName) Returns the selectable projects container.static LinkedHashMap<CmsUUID,
String> CmsVaadinUtils.getProjectsMap
(CmsObject cms) Gets the available projects for the current user as a map, wth project ids as keys and project names as values.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getRoleContainerForUser
(CmsObject cms, CmsUser user, String captionPropertyName) Returns the roles available for a given user.CmsUserIconHelper.getSmallIconPath
(CmsObject cms, CmsUser user) Returns the small ident-icon path for the given user.CmsUserIconHelper.getTinyIconPath
(CmsObject cms, CmsUser user) Returns the tiny ident-icon path for the given user.boolean
CmsUserIconHelper.handleImageUpload
(CmsObject cms, List<String> uploadedFiles) Handles a user image upload.boolean
CmsUserIconHelper.handleImageUpload
(CmsObject cms, CmsUser user, String uploadedFile) Handles a user image upload.void
CmsUserIconHelper.setUserImage
(CmsObject cms, CmsUser user, String rootPath) Sets the user image for the given user. -
Uses of CmsObject in org.opencms.ui.actions
Modifier and TypeMethodDescriptionA_CmsEditFileAction.getVisibility
(CmsObject cms, List<CmsResource> resources) A_CmsGalleryDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) A_CmsToolbarAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsAvailabilityDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsCategoriesDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsChangeTypeDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsContextMenuActionItem.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsCopyDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsCopyPageDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsCopyToProjectDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsDeleteDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsDirectPublishDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsDisplayAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditCodeDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditPageAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditPointerAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditPropertyAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditSmallElementsAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsEditUserDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsFavoriteDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsFormEditDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsHistoryDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsLinkLocaleVariantAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsLockAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsLockedResourcesAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsLogoutAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsMoveDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsPermissionDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsPrefillPageAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsPreviewAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsPropertiesDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsPublishScheduledDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsReindexDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsRenameAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsReplaceDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsResourceInfoAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsRestoreDeletedAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSecureExportDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSelectElementViewAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSeoAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsShowLocaleAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSitemapAliasAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSitemapAttributeEditorAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSitemapEditConfigAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSitemapOpenParentAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsSitemapRefreshAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsStealLockAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsTemplateContextsAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsTouchDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUndeleteDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUndoDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUnlinkLocaleVariantAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUnlockAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUnusedContentFinderAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsUserInfoDialogAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsViewInExplorerAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsViewOnlineAction.getVisibility
(CmsObject cms, List<CmsResource> resources) CmsWorkplaceAction.getVisibility
(CmsObject cms, List<CmsResource> resources) -
Uses of CmsObject in org.opencms.ui.apps
Modifier and TypeMethodDescriptionA_CmsWorkplaceApp.getOfflineCmsObject
(CmsObject cms) Gets an offline version of the cms object.Modifier and TypeMethodDescriptionstatic com.vaadin.ui.Component
CmsDefaultAppButtonProvider.createAppButton
(CmsObject cms, I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app.static com.vaadin.ui.Component
CmsDefaultAppButtonProvider.createAppFolderButton
(CmsObject cms, CmsAppCategoryNode node, Locale locale) Creates a properly styled button for the given app.<T extends I_CmsAppSettings>
TCmsWorkplaceAppManager.getAppSettings
(CmsObject cms, Class<T> type) Returns the user app setting of the given type.CmsWorkplaceAppManager.getEditorForResource
(CmsObject cms, CmsResource resource, boolean plainText) Returns the editor for the given resource.static String
CmsEditor.getEditStateForNew
(CmsObject cms, I_CmsResourceType resourceType, String contextPath, String modelFilePath, boolean plainText, String backLink) Returns the edit state for the given resource structure id.A_CmsWorkplaceApp.getOfflineCmsObject
(CmsObject cms) Gets an offline version of the cms object.CmsQuickLaunchLocationCache.getPageEditorLocation
(CmsObject cms, String siteRoot) Returns the page editor location for the given site root.CmsWorkplaceAppManager.getQuickLaunchConfigurations
(CmsObject cms) Gets the configured quick launch apps which are visible for the current user.protected List<I_CmsWorkplaceAppConfiguration>
CmsWorkplaceAppManager.getUserQuickLauchConfigurations
(CmsObject cms) Returns the quick launch apps set for the current user.A_CmsWorkplaceAppConfiguration.getVisibility
(CmsObject cms) CmsEditorConfiguration.getVisibility
(CmsObject cms) CmsLegacyAppConfiguration.getVisibility
(CmsObject cms) CmsPageEditorConfiguration.getVisibility
(CmsObject cms) CmsSitemapEditorConfiguration.getVisibility
(CmsObject cms) I_CmsFolderAppCategory.getVisibility
(CmsObject cms) Returns the visibility status of the app for the given user context.I_CmsWorkplaceAppConfiguration.getVisibility
(CmsObject cms) Returns the visibility status of the app for the given user context.void
CmsQuickLaunchLocationCache.setPageEditorResource
(CmsObject cms, String siteRoot, CmsResource resource) Sets the latest page editor location for the given site.protected void
CmsWorkplaceAppManager.setUserQuickLaunchApps
(CmsObject cms, List<String> apps) Writes the user quick launch apps setting to the user additional info.void
CmsWorkplaceAppManager.storeAppSettings
(CmsObject cms, Class<? extends I_CmsAppSettings> type, I_CmsAppSettings appSettings) Stores the given app setting within the users additional info.void
CmsFileExplorer.updateResourceInTree
(CmsObject cms, CmsUUID id) Updates the give tree item. -
Uses of CmsObject in org.opencms.ui.apps.cacheadmin
Modifier and TypeMethodDescriptionCmsImageCacheHelper.getSingleSize
(CmsObject cms, String resPath) Reads the size of a single image.CmsCacheFolder.getVisibility
(CmsObject cms) ModifierConstructorDescriptionCmsImageCacheHelper
(CmsObject cms, boolean withVariations, boolean showSize, boolean statsOnly) Default constructor. -
Uses of CmsObject in org.opencms.ui.apps.datesearch
Modifier and TypeMethodDescriptionvoid
CmsDateSearchComposite.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) CmsDateSearchConfiguration.getVisibility
(CmsObject cms) -
Uses of CmsObject in org.opencms.ui.apps.dbmanager
Modifier and TypeFieldDescriptionprotected CmsObject
CmsDbExportView.m_cms
Copy of current CmsObject.protected CmsObject
CmsDbSynchronizationView.m_cms
Root CmsObject.Modifier and TypeMethodDescriptionprotected CmsObject
CmsPropertyDeleteDialog.getCms()
Gets a copy of the cms object set to root site.protected CmsObject
A_CmsImportForm.getCmsObject()
Returns a cms object set to the site corresponding to siteselector.protected CmsObject
CmsResourceTypeStatsView.getCmsObject()
Sets the cms object to selected site and returns it.ModifierConstructorDescriptionCmsRemovePropertyFromResourcesThread
(CmsObject cms, String propName) Public constructor.CmsRemovePubLocksThread
(CmsObject cms, List<String> resources) Creates an Thread to remove the publish locks.Creates a static export Thread.Creates the synchronize Thread. -
Uses of CmsObject in org.opencms.ui.apps.filehistory
ModifierConstructorDescriptionCmsHistoryClearThread
(CmsObject cms, int keepV, int keepD, long date) Creates the history clear Thread. -
Uses of CmsObject in org.opencms.ui.apps.git
-
Uses of CmsObject in org.opencms.ui.apps.linkvalidation
Modifier and TypeMethodDescriptionvoid
A_CmsLinkValidator.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) CmsLinkValidationFolder.getVisibility
(CmsObject cms) ModifierConstructorDescriptionCmsExternalLinksValidatorThread
(CmsObject cms, Runnable finRun) Constructor, creates a new CmsExternLinkValidationThread. -
Uses of CmsObject in org.opencms.ui.apps.lists
Modifier and TypeMethodDescriptionvoid
CmsListManager.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) protected void
CmsResultTable.fillItem
(CmsObject cms, CmsResource resource, Locale locale) -
Uses of CmsObject in org.opencms.ui.apps.modules
ModifierConstructorDescriptionCmsModuleImportThread
(CmsObject cms, CmsModule module, String path) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.apps.modules.edit
Modifier and TypeMethodDescriptionstatic com.vaadin.v7.data.util.IndexedContainer
CmsEditModuleForm.getModuleSiteContainer
(CmsObject cms, String captionPropertyName, String prevValue) Builds the container used for the module site selector.void
CmsModuleResourceSelectField.setCmsObject
(CmsObject cms) -
Uses of CmsObject in org.opencms.ui.apps.projects
-
Uses of CmsObject in org.opencms.ui.apps.publishqueue
-
Uses of CmsObject in org.opencms.ui.apps.search
ModifierConstructorDescriptionCmsSearchReplaceThread
(javax.servlet.http.HttpSession session, CmsObject cms, CmsSearchReplaceSettings settings) Creates a replace html tag Thread.CmsSearchReplaceThread
(javax.servlet.http.HttpSession session, CmsObject cms, CmsSearchReplaceSettings settings, I_CmsReport report) Creates a replace html tag Thread. -
Uses of CmsObject in org.opencms.ui.apps.searchindex
ModifierConstructorDescriptionCmsIndexingReportThread
(CmsObject cms, List<String> indexNames) Creates an indexing Thread for full update. -
Uses of CmsObject in org.opencms.ui.apps.sessions
-
Uses of CmsObject in org.opencms.ui.apps.shell
Modifier and TypeMethodDescriptionprotected void
Sets up given CmsObject with currently set Project and Site.ModifierConstructorDescriptionCmsShellScriptThread
(CmsObject cms, String script) public constructor. -
Uses of CmsObject in org.opencms.ui.apps.sitemanager
Modifier and TypeMethodDescriptionprotected CmsObject
CmsSiteManager.getRootCmsObject()
Returns the root cms object.Modifier and TypeMethodDescriptionstatic boolean
CmsSiteManager.isFolderWithMacros
(CmsObject cms, String folderPathRoot) Method to check if a folder under given path contains a bundle for macro resolving.void
CmsSiteManager.updateGeneralSettings
(CmsObject cms, String defaultUri, Map<String, CmsSSLMode> workplaceServers, String sharedFolder) Updates the general settings.ModifierConstructorDescriptionprotected
CmsCreateSiteThread
(CmsObject cms, I_CmsCRUDApp<CmsSite> manager, CmsSite site, CmsSite oldSite, String source, String template, boolean createOU, String parentOU, String selectedOU, ByteArrayOutputStream os, Map<String, String> bundle, Runnable finished) Constructor for Class.CmsEditSiteForm
(CmsObject cms, CmsSiteManager manager) Constructor.CmsEditSiteForm
(CmsObject cms, CmsSiteManager manager, String siteRoot) Constructor.CmsExportSiteForm
(CmsObject cms, CmsSiteManager manager, String siteRoot) Creates a new instance.CmsSitesWebserverThread
(CmsObject cms, String targetPath, String templatePath, String scriptPath, String filePrefix, String loggingDir, String secureTemplate) Public constructor. -
Uses of CmsObject in org.opencms.ui.apps.unusedcontentfinder
Modifier and TypeMethodDescriptionCmsUnusedContentFinderConfiguration.getVisibility
(CmsObject cms) -
Uses of CmsObject in org.opencms.ui.apps.user
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsEditUserGroupRoleDialog.m_cms
CmsObject.protected CmsObject
CmsAccountsApp.m_cms
CmsObject.protected CmsObject
CmsMoveUserToOU.m_cms
CmsObject.protected CmsObject
CmsOUEditDialog.m_cms
CmsObject.Modifier and TypeMethodDescriptionprotected CmsObject
CmsShowResourceTable.getCms()
Gets CmsObject.Modifier and TypeMethodDescriptionCmsImportExportUserDialog.addExportAllUsers
(CmsObject cms, String ou, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromGroups
(CmsObject cms, List<String> groups, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromRoles
(CmsObject cms, String ou, List<String> roles, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.com.vaadin.v7.data.util.IndexedContainer
CmsAccountsApp.getAvailableGroupsContainerWithout
(CmsObject cms, String ouFqn, String propCaption, String propIcon, String propOu, List<CmsGroup> groupsOfUser, Function<CmsGroup, CmsCssIcon> iconProvider) Gets a data container for the groups available to be added to a user, excluding some groups.CmsOUHandler.getManagableOUs
(CmsObject cms) Gets List of managable OU names for the current user.CmsAccountsApp.getUsersWithoutAdditionalInfo
(CmsObject cms, I_CmsOuTreeType type, String ou, boolean recursive) Gets list of users for organizational unit.protected static void
CmsUserEditDialog.iniRole
(CmsObject cms, String ou, com.vaadin.ui.ComboBox<CmsRole> roleComboBox, org.apache.commons.logging.Log log) Initialized the role ComboBox.protected static void
CmsUserEditDialog.iniRole
(CmsObject cms, String ou, com.vaadin.v7.ui.ComboBox roleComboBox, org.apache.commons.logging.Log log) Initialized the role ComboBox (vaadin-v7-version).protected static void
CmsUserEditDialog.iniRole
(CmsObject cms, String ou, com.vaadin.v7.ui.ComboBox roleComboBox, org.apache.commons.logging.Log log, boolean includeNoRoleEntry) Initialized the role ComboBox (vaadin-v7-version).void
Init method.boolean
CmsOuTreeType.isValidForOu
(CmsObject cms, String ou) boolean
I_CmsOuTreeType.isValidForOu
(CmsObject cms, String ou) Checks if the tree type is available for a given OU.static void
CmsOUTable.openImportExportDialog
(CmsObject cms, String ou) Opens the import/export dialog for a specific OU.CmsAccountsApp.readGroupsForOu
(CmsObject cms, String ou, I_CmsOuTreeType type, boolean subOus) Reads the list of groups for an organizational unit.protected static void
CmsUserEditDialog.sendMail
(CmsObject cms, String password, CmsUser user, boolean newUser, boolean changePassword) Sends an email to the user.protected static void
CmsUserEditDialog.sendMail
(CmsObject cms, String password, CmsUser user, String ou, boolean newUser, boolean changePassword) Sends an email to the user.ModifierConstructorDescriptionA_CmsEditUserGroupRoleDialog
(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsAdditionalInfosDialog
(CmsObject cms, CmsUUID userID, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsCurrentRoleOrPrincipalTable
(A_CmsEditUserGroupRoleDialog dialog, CmsObject cms, CmsPrincipal principal) public constructor.CmsDeleteMultiplePrincipalDialog
(CmsObject cms, Set<String> context, com.vaadin.ui.Window window, CmsAccountsApp app) Public constructor.CmsDeleteOUDialog
(CmsObject cms, String ouName, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor used for OUs.CmsGroupEditDialog
(CmsObject cms, com.vaadin.ui.Window window, String ou, CmsAccountsApp app) Constructor for dialog for new groups.CmsGroupEditDialog
(CmsObject cms, CmsUUID groupId, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.protected
CmsImportUserThread
(CmsObject cms, String ou, List<CmsUser> userList, List<String> groups, List<CmsRole> roles, boolean sendmail) public constructor.CmsMoveUserToOU
(CmsObject cms, CmsUUID userID, com.vaadin.ui.Window window, CmsAccountsApp app) Public constructor.CmsNewElementDialog
(CmsObject cms, String ou, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsOUEditDialog
(CmsObject cms, com.vaadin.ui.Window window, String ou, CmsAccountsApp app) public constructor.CmsOUEditDialog
(CmsObject cms, String ou, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsOUHandler
(CmsObject cms) Public constructor.CmsOuTree
(CmsObject cms, CmsAccountsApp app, String baseOU) constructor.Public constructor.CmsSendPasswordNotification
(CmsObject cms, String password, CmsUser receiver, String ou, CmsUser adminUser, boolean newUser, boolean tempPassword) Public constructor.CmsSendPasswordNotification
(CmsObject cms, String password, CmsUser receiver, String ou, CmsUser adminUser, String link, boolean newUser, boolean tempPassword) Deprecated.CmsShowResourceTable
(CmsObject cms, CmsUUID principalID, CmsShowResourcesDialog.DialogType type) public constructor.CmsUserEditDialog
(CmsObject cms, com.vaadin.ui.Window window, String ou, CmsAccountsApp app) public constructor for new user case.CmsUserEditDialog
(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsUserEditGroupsDialog
(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor.CmsUserEditRoleDialog
(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app) public constructor. -
Uses of CmsObject in org.opencms.ui.apps.userdata
Modifier and TypeMethodDescriptionprotected CmsObject
CmsUserDataAppPanel.getCmsObjectForReport()
Prepares the CmsObject to use for the report.ModifierConstructorDescriptionCmsUserDataReportThread
(CmsObject cms, Consumer<I_CmsReport> action) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.components
Modifier and TypeMethodDescriptionCmsFolderSelector.getCmsObject()
Returns the CMS object of this folder selector.Modifier and TypeMethodDescriptionvoid
CmsResourceTable.I_ResourcePropertyProvider.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Adds the property values to the given item.void
CmsResultFacets.displayFacetResult
(CmsSolrResultList solrResultList, Map<String, Boolean> checkedCategoryFacets, Map<String, Boolean> checkedDateFacets, Map<String, Boolean> checkedFolderFacets, CmsObject cms) Displays the result facets.protected void
CmsResourceTable.fillItem
(CmsObject cms, CmsResource resource, Locale locale) Fills the file item data.static void
CmsResourceTable.fillItemDefault
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Static helper method to initialize the 'standard' properties of a data item from a given resource.void
CmsResourceTable.fillTable
(CmsObject cms, List<CmsResource> resources) Fills the resource table.void
CmsResourceTable.fillTable
(CmsObject cms, List<CmsResource> resources, boolean clearFilter) Fills the resource table.void
CmsResourceTable.fillTable
(CmsObject cms, List<CmsResource> resources, boolean clearFilter, boolean sort) Fills the resource table.void
CmsResourceTable.fillTable
(CmsObject cms, List<CmsResource> resources, boolean clearFilter, boolean sort, boolean distinctResources) Fills the resource table.static String
CmsResourceIcon.getDefaultFileOrDetailType
(CmsObject cms, CmsResource resource) Returns the default file type or detail type for the given resource.static String
CmsResourceIcon.getDetailType
(CmsObject cms, CmsResource detailPage, CmsResource parentFolder) Returns the detail content type for container pages that may be detail pages.CmsExtendedSiteSelector.getExplorerSiteSelectorOptions
(CmsObject cms, boolean addSubsites) Builds a list of site selector option that also includes subsites with the 'include in site selector' option enabled in their configuration.static com.vaadin.server.Resource
CmsResourceIcon.getSitemapResourceIcon
(CmsObject cms, CmsResource resource, CmsResourceIcon.IconMode iconMode) Gets the resource icon for a resource for use in a CmsResourceInfo widget when used in a sitemap context.void
CmsExtendedSiteSelector.initOptions
(CmsObject cms, boolean addSubsites) Initializes the select options.void
Store fields to given user.void
Store fields to given user.ModifierConstructorDescriptionCmsLockedResourcesList
(CmsObject cms, List<CmsResource> resources, String message, Runnable nextAction, Runnable cancelAction) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.components.categoryselect
-
Uses of CmsObject in org.opencms.ui.components.fileselect
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsFileSelectField.m_cms
CmsObject instance, doesn't have to be set.protected CmsObject
CmsResourceSelectDialog.m_currentCms
The CMS context.Modifier and TypeMethodDescriptionvoid
CmsResourceTreeContainer.addTreeItem
(CmsObject cms, CmsResource resource, CmsUUID parentId) Adds an item to the folder tree.protected CmsResourceTreeTable
CmsResourceSelectDialog.createTree
(CmsObject cms, CmsResource root) Creates the resource tree for the given root.protected void
CmsResourceTreeContainer.fillProperties
(CmsObject cms, com.vaadin.v7.data.Item resourceItem, CmsResource resource, CmsUUID parentId) Fills the properties of a tree item.protected String
CmsResourceTreeContainer.getName
(CmsObject cms, CmsResource resource, CmsUUID parentId) Gets the name to display for the given resource.void
CmsResourceTreeContainer.initRoot
(CmsObject cms, CmsResource root) Initializes the root level of the tree.void
CmsResourceTreeContainer.readTreeLevel
(CmsObject cms, CmsUUID parentId) Reads the given tree level.void
A_CmsFileSelectField.setCmsObject
(CmsObject cms) Method to set cms object to make it possible to user other site context.void
CmsResourceTreeContainer.update
(CmsObject cms, CmsUUID id, CmsResourceFilter filter) Updates the item for the given structure id.protected void
CmsResourceSelectDialog.updateRoot
(CmsObject rootCms, CmsResource siteRootResource) Updates the current site root resource.ModifierConstructorDescriptionCmsNavigationFilter
(CmsObject cms, CmsResource root) Creates a new instance.CmsResourceSelectDialog
(CmsResourceFilter filter, CmsObject cms) public constructor with given CmsObject.CmsResourceSelectDialog
(CmsResourceFilter filter, CmsObject cms, CmsResourceSelectDialog.Options options) public constructor.CmsResourceTreeTable
(CmsObject cms, CmsResource root, CmsResourceFilter filter) Creates a new instance.CmsResourceTreeTable
(CmsObject cms, CmsResource root, CmsResourceTreeContainer container) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.dialogs
Modifier and TypeMethodDescriptionCmsEmbeddedDialogContext.getCms()
CmsGalleryOptimizeDialog.getCms()
Returns the CMS object of this dialog.Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<CmsResource,
CmsResource> CmsDeleteDialog.getBrokenLinks
(CmsObject cms, List<CmsResource> selectedResources, boolean includeSiblings) Gets the broken links.static com.google.common.collect.Multimap<CmsResource,
CmsResource> CmsDeleteDialog.getBrokenLinks
(CmsObject cms, List<CmsResource> selectedResources, boolean includeSiblings, boolean reverse) Gets the broken links.static void
CmsPublishScheduledDialog.setAdminCms
(CmsObject cms) Sets the admin cms object. -
Uses of CmsObject in org.opencms.ui.dialogs.embedded
Modifier and TypeMethodDescriptionCmsDataViewParams.createViewInstance
(CmsObject cms, Locale locale) Creates the data view instance.CmsDataViewAction.getVisibility
(CmsObject cms, List<CmsResource> resources) -
Uses of CmsObject in org.opencms.ui.dialogs.history
Modifier and TypeMethodDescriptionvoid
CmsHistoryDialog.actionRestore
(CmsObject cms, CmsUUID structureId, Integer version) Restores a resource's state to the given version, but asks the user for confirmation beforehand. -
Uses of CmsObject in org.opencms.ui.dialogs.history.diff
Modifier and TypeMethodDescriptioncom.vaadin.ui.Button
CmsShowVersionButtons.createButton
(CmsObject cms, CmsHistoryResourceBean version) Creates a 'show version' button.com.google.common.base.Optional<com.vaadin.ui.Component>
A_CmsAttributeDiff.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) com.google.common.base.Optional<com.vaadin.ui.Component>
CmsImageDiff.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) com.google.common.base.Optional<com.vaadin.ui.Component>
CmsShowVersionButtons.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) com.google.common.base.Optional<com.vaadin.ui.Component>
CmsTextDiff.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) com.google.common.base.Optional<com.vaadin.ui.Component>
CmsValueDiff.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) com.google.common.base.Optional<com.vaadin.ui.Component>
I_CmsDiffProvider.diff
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) Optionally returns a comparison component to display for the given resource versions.static String
CmsValueCompareBean.formatContentValueForDiffTable
(CmsObject cms, CmsElementComparison comparison, String origValue) Formats an xml content value string for display in the value comparison table.abstract List<CmsAttributeComparison>
A_CmsAttributeDiff.getDifferences
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) Gets the attribute comparison beans representing the differences.CmsAttributeDiff.getDifferences
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) CmsPropertyDiff.getDifferences
(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) static CmsResource
A_CmsAttributeDiff.readResource
(CmsObject cms, CmsHistoryResourceBean bean) Reads a historical resource for a history resource bean.ModifierConstructorDescriptionCmsValueCompareBean
(CmsObject cms, CmsElementComparison elemComp) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.dialogs.permissions
Modifier and TypeMethodDescriptionstatic String
CmsPermissionBean.getPrincipalNameFromACE
(CmsObject cms, CmsAccessControlEntry entry) Get name of principal from ACE.CmsPermissionBean.toAccessControlEntry
(CmsObject cms, CmsUUID resID) Creates ACE from bean.ModifierConstructorDescriptionCmsPermissionViewTable
(CmsObject cms, List<CmsAccessControlEntry> entries, boolean editable, boolean showRes, Map<CmsUUID, String> parents, CmsPermissionDialog dialog) public constructor. -
Uses of CmsObject in org.opencms.ui.editors
Modifier and TypeMethodDescriptionboolean
A_CmsFrameEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) boolean
CmsAcaciaEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) boolean
CmsSourceEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) boolean
I_CmsEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) Checks whether the editor is available for the given resource. -
Uses of CmsObject in org.opencms.ui.editors.messagebundle
Modifier and TypeMethodDescriptionstatic CmsResource
CmsMessageBundleEditorTypes.getDescriptor
(CmsObject cms, String basename) Returns the bundle descriptor for the bundle with the provided base name.boolean
CmsMessageBundleEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) -
Uses of CmsObject in org.opencms.ui.error
Modifier and TypeMethodDescriptionstatic String
CmsErrorUI.getBootstrapPage
(CmsObject cms, Throwable throwable, javax.servlet.http.HttpServletRequest request) Returns the error bootstrap page HTML. -
Uses of CmsObject in org.opencms.ui.favorites
Modifier and TypeMethodDescriptionCmsFavoriteEntry.updateContextAndGetFavoriteUrl
(CmsObject cms) Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL.ModifierConstructorDescriptionCmsExplorerFavoriteContext
(CmsObject cms, CmsFileExplorer explorer) Creates a new instance.CmsFavoriteDAO
(CmsObject cms) Creates a new instance.CmsFavoriteDAO
(CmsObject cms, String userName) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.login
Modifier and TypeMethodDescriptionCmsLoginController.LoginContext.getCms()
Gets the CmsObject.CmsLoginController.UserAgreementHelper.getCms()
Modifier and TypeMethodDescriptionstatic void
CmsTokenValidator.clearToken
(CmsObject cms, CmsUser user) Removes an authorization token from the user's additional information.static String
CmsTokenValidator.createToken
(CmsObject cms, CmsUser user, long currentTime) Creates a new token for the given user and stores it in the user's additional info.static String
CmsLoginUI.generateLoginHtmlFragment
(CmsObject cms, com.vaadin.server.VaadinRequest request) Returns the bootstrap html fragment required to display the login dialog.static String
CmsLoginHelper.getDirectEditPath
(CmsObject cms, CmsUserSettings userSettings, boolean forceDirectEdit) Returns the direct edit path from the user settings, ornull
if not set.static String
CmsLoginController.getFormLink
(CmsObject cms) Returns the link to the login form.CmsLoginHelper.getLoginParameters
(CmsObject cms, javax.servlet.http.HttpServletRequest request, boolean workplaceUiRequest) Returns the login parameters for the current request.static String
CmsLoginController.getLoginTarget
(CmsObject currentCms, CmsWorkplaceSettings settings, String requestedResource) Gets the login target link.static List<CmsOrganizationalUnit>
CmsLoginHelper.getOrgUnitsForLoginDialog
(CmsObject cms, String predefOu) Gets the list of OUs which should be selectable in the login dialog.static String
CmsLoginHelper.getStartView
(CmsObject cms) Returns the start view.protected void
CmsLoginController.handleError
(CmsObject currentCms, String user, Exception e) Handles exceptions during the login process and displays appropriate error messages.protected void
CmsLoginController.initSessionAndSendMessages
(CmsObject currentCms, CmsObject loginCms) Switches the session to a new one with the logged in CmsObject.static CmsWorkplaceSettings
CmsLoginHelper.initSiteAndProject
(CmsObject cms) Initializes the site and project for a CMS context after login, and returns the workplace settings for the corresponding user.static void
CmsLoginController.logout
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Logs out the current user redirecting to the login form afterwards.static boolean
CmsForgotPasswordDialog.sendPasswordResetLink
(CmsObject cms, String fullUserName, String email) Tries to find a user with the given email address, and if one is found, sends a mail with the password reset link to them.static void
CmsLoginUI.setAdminCmsObject
(CmsObject cms) Sets the admin CMS object.void
Sets the CMS context.CmsTokenValidator.validateToken
(CmsObject cms, String token, long maxAgeMillis) Validates the authentication token against the token stored in the user's additional info.ModifierConstructorDescriptionCmsChangePasswordDialog
(CmsObject cms, CmsUser user, Locale locale) Creates a new instance.CmsLoginController
(CmsObject adminCms, CmsLoginHelper.LoginParameters params) Creates a new instance.CmsPasswordChangeNotification
(CmsObject cms, CmsUser receiver, String link, String expiration) Creates a new instance.CmsSetPasswordDialog
(CmsObject cms, CmsUser user, Locale locale) Creates a new instance.UserAgreementHelper
(CmsObject cms, CmsWorkplaceSettings wpSettings) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.sitemap
Modifier and TypeMethodDescriptionvoid
CmsSitemapTreeNodeData.initialize
(CmsObject cms) Initializes the bean.ModifierConstructorDescriptionCmsSitemapTreeController
(CmsObject cms, CmsResource root, I_CmsLocaleCompareContext context, com.vaadin.ui.Component parent) Creates a new instance.CmsSitemapTreeDataProvider
(CmsObject cms, CmsResource root, I_CmsLocaleCompareContext context) Creates a new instance.TargetInfo
(CmsObject cms, String path) Creates a new instance. -
Uses of CmsObject in org.opencms.ui.util
ModifierConstructorDescriptionCreates a new instance.Creates a new instance. -
Uses of CmsObject in org.opencms.util
Modifier and TypeFieldDescriptionprotected CmsObject
CmsMacroResolver.m_cms
The OpenCms user context to use for resolving macros.Modifier and TypeMethodDescriptionstatic void
CmsFileUtil.checkResources
(CmsObject cms, List<String> resources) Checks if all resources are present.static void
CmsMacroResolver.copyAndResolveMacro
(CmsObject cms, String source, String destination, Map<String, String> keyValue, boolean adjustLinks) Copies resources, adjust internal links (if adjustLinks==true) and resolves macros (if keyValue map is set).static void
CmsMacroResolver.copyAndResolveMacro
(CmsObject cms, String source, String destination, Map<String, String> keyValue, boolean adjustLinks, CmsResource.CmsResourceCopyMode copyMode) Copies resources, adjust internal links (if adjustLinks==true) and resolves macros (if keyValue map is set).static void
CmsMacroResolver.copyAndResolveMacro
(CmsObject cms, String source, String destination, Map<String, String> keyValue, boolean adjustLinks, CmsResource.CmsResourceCopyMode copyMode, I_CmsReport report) Copies resources, adjust internal links (if adjustLinks==true) and resolves macros (if keyValue map is set).org.owasp.validator.html.AntiSamy
CmsParameterEscaper.createAntiSamy
(CmsObject cms, String policyPath) Creates a new AntiSamy instance for a given policy path.static void
CmsVfsUtil.createFolder
(CmsObject cms, String rootPath) Creates a folder and its parent folders if they don't exist.void
CmsParameterEscaper.enableAntiSamy
(CmsObject cms, String policyPath, Set<String> params) Enables the AntiSamy HTML cleaning for some parameters.CmsMacroResolver.getBundleMapFromResources
(Properties resourceBundle, CmsResource descriptor, CmsObject clonedCms) Reads a bundle (key, value, descriptor) from Descriptor Resource and property resource.static String
CmsHtmlConverter.getConversionSettings
(CmsObject cms, CmsResource resource) Reads the content conversion property of a given resource and returns its value.static String
CmsFileUtil.getEncoding
(CmsObject cms, CmsResource file) Returns the encoding of the file.static boolean
CmsVfsUtil.isDefaultFile
(CmsObject cms, CmsResource resource) Checks if the provided resource is a default file.static I_CmsMacroResolver
CmsMacroResolver.newWorkplaceLocaleResolver
(CmsObject cms) Returns a new macro resolver that loads message keys from the workplace bundle in the user setting's language.static org.owasp.validator.html.Policy
CmsParameterEscaper.readPolicy
(CmsObject cms, String sitePath) Helper method for reading an AntiSamy policy file from the VFS.static String
CmsVfsUtil.readPropertyValueWithFolderFallbackForDefaultFiles
(CmsObject cms, CmsResource resource, String propertyName, Locale locale) Reads the property value for the provided name and resource.static String
CmsMacroResolver.resolveMacros
(String input, CmsObject cms, CmsMessages messages) Resolves the macros in the given input using the provided parameters.CmsMacroResolver.setCmsObject
(CmsObject cms) Provides an OpenCms user context to this macro resolver, required to resolve certain macros.static String
CmsXsltUtil.transformCsvContent
(CmsObject cms, String xsltFile, String csvContent, String delimiter) Changes content from CSV to xml/html.static String
CmsXsltUtil.transformXmlContent
(CmsObject cms, String xsltFile, String xmlContent) Applies a XSLT Transformation to the content. -
Uses of CmsObject in org.opencms.widgets
Modifier and TypeMethodDescriptionprotected void
CmsHtmlWidget.addEmbeddedGalleryOptions
(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Adds the configuration for embedded gallery widgets the the JSON object.protected abstract JSONObject
A_CmsAdeGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) Returns additional widget information encapsulated in a JSON object.protected JSONObject
CmsAdeDownloadGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsAdeImageGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsVfsImageWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) A_CmsAdeGalleryWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) A_CmsCategorizedSelectWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) Gets the configuration.A_CmsFormatterWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) A_CmsGalleryWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) A_CmsSelectWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsAccessRestrictionWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsCalendarWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsCategoryWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsCheckboxWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsCodeWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsColorpickerWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsDependentSelectWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsDisplayTypeSelectWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsDisplayWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsGroupWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsHtmlWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsInputWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsLocalizationWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsLocationPickerWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsMultiSelectGroupWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsPasswordWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsPrincipalWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsSelectGroupWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsSerialDateWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsTextareaWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsTypeComboWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsTypeFilterWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) CmsVfsFileWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) I_CmsADEWidget.getConfiguration
(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the configuration string for the ADE content editor widget.A_CmsAdeGalleryWidget.getCssResourceLinks
(CmsObject cms) A_CmsCategorizedSelectWidget.getCssResourceLinks
(CmsObject cms) Gets the css resource links.A_CmsGalleryWidget.getCssResourceLinks
(CmsObject cms) A_CmsSelectWidget.getCssResourceLinks
(CmsObject cms) Returns a list of CSS resources required by the widget.CmsAddFormatterWidget.getCssResourceLinks
(CmsObject cms) CmsCalendarWidget.getCssResourceLinks
(CmsObject cms) CmsCategoryWidget.getCssResourceLinks
(CmsObject cms) CmsCheckboxWidget.getCssResourceLinks
(CmsObject cms) CmsCodeWidget.getCssResourceLinks
(CmsObject cms) CmsColorpickerWidget.getCssResourceLinks
(CmsObject cms) CmsDisplayWidget.getCssResourceLinks
(CmsObject cms) CmsGroupWidget.getCssResourceLinks
(CmsObject cms) CmsHtmlWidget.getCssResourceLinks
(CmsObject cms) CmsInputWidget.getCssResourceLinks
(CmsObject cms) CmsLocalizationWidget.getCssResourceLinks
(CmsObject cms) CmsLocationPickerWidget.getCssResourceLinks
(CmsObject cms) CmsPasswordWidget.getCssResourceLinks
(CmsObject cms) CmsPrincipalWidget.getCssResourceLinks
(CmsObject cms) CmsRemoveFormatterWidget.getCssResourceLinks
(CmsObject cms) CmsSelectGroupWidget.getCssResourceLinks
(CmsObject cms) CmsSerialDateWidget.getCssResourceLinks
(CmsObject cms) CmsTextareaWidget.getCssResourceLinks
(CmsObject cms) CmsTypeComboWidget.getCssResourceLinks
(CmsObject cms) CmsTypeFilterWidget.getCssResourceLinks
(CmsObject cms) CmsVfsFileWidget.getCssResourceLinks
(CmsObject cms) I_CmsADEWidget.getCssResourceLinks
(CmsObject cms) Returns a list of CSS resources required by the widget.protected abstract com.google.web.bindery.autobean.shared.AutoBean<I_CmsCategorizedSelectData>
A_CmsCategorizedSelectWidget.getData
(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) Gets the select option data for the widget.I_CmsWidgetParameter.getDefault
(CmsObject cms) Returns the default value of this parameter.protected Locale
CmsCategoryWidget.getDefaultLocale
(CmsObject cms, String resource) Returns the default locale in the content of the given resource.static String
CmsVfsFileWidget.getDefaultSearchTypes
(CmsObject cms, CmsResource resource) Returns a comma separated list of the default search type names.A_CmsWidget.getDialogHtmlEnd
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter value) CmsComboWidget.getDialogHtmlEnd
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) I_CmsWidget.getDialogHtmlEnd
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Generates the html to include at the end of the dialog for this widget.A_CmsGalleryWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) A_CmsWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsCalendarWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsCategoryWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsColorpickerWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsComboWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsGroupWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsHtmlWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsMultiSelectGroupWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsMultiSelectWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsOrgUnitWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsPrincipalWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsUserWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsVfsFileWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsVfsImageWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) I_CmsWidget.getDialogIncludes
(CmsObject cms, I_CmsWidgetDialog widgetDialog) Generates the necessary JavaScript inclusion code for this widget.A_CmsGalleryWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) A_CmsWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsColorpickerWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsComboWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsHtmlWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsVfsFileWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) I_CmsWidget.getDialogInitCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog) Generates the initialisation method JavaScript code for this widget.A_CmsGalleryWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) A_CmsWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsColorpickerWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsHtmlWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) CmsVfsFileWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) I_CmsWidget.getDialogInitMethod
(CmsObject cms, I_CmsWidgetDialog widgetDialog) Generates the initialization method JavaScript code for this widget.A_CmsAdeGalleryWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) A_CmsCategorizedSelectWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) A_CmsGalleryWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsCalendarWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsCategoryWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsCheckboxWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsCodeWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsColorpickerWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsComboWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsDisplayWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsGroupWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsHtmlWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsHttpUploadWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsInputWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsLocalizationWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsLocationPickerWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsMultiSelectGroupWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsMultiSelectWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsOrgUnitWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsPasswordWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsPrincipalWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsRadioSelectWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsSelectOnChangeReloadWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsSelectWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsSerialDateWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsTextareaWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsUserWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsVfsFileWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsVfsImageWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) I_CmsWidget.getDialogWidget
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Generates the widget HTML for the provided widget parameter.protected abstract List<CmsSelectWidgetOption>
A_CmsFormatterWidget.getFormatterOptions
(CmsObject cms, CmsADEConfigData config, String rootPath, boolean allRemoved) Gets the options corresponding to external (non-schema) formatters.protected List<CmsSelectWidgetOption>
CmsAddFormatterWidget.getFormatterOptions
(CmsObject cms, CmsADEConfigData config, String rootPath, boolean allRemoved) protected List<CmsSelectWidgetOption>
CmsRemoveFormatterWidget.getFormatterOptions
(CmsObject cms, CmsADEConfigData config, String rootPath, boolean allRemoved) protected static List<CmsSelectWidgetOption>
CmsAddFormatterWidget.getFormatterOptionsStatic
(CmsObject cms, CmsADEConfigData config, String rootPath, boolean allRemoved) Gets the options corresponding to external (non-schema) formatters.I_CmsImageWidgetDynamicConfiguration.getFormatValues
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param, List<CmsSelectWidgetOption> selectFormat, List<String> formatValues) Returns the matching format values for the given format select options.A_CmsAdeGalleryWidget.getGalleryOpenParams
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param, String resource, long hashId) Returns the required gallery open parameters.CmsVfsImageWidget.getGalleryOpenParams
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param, String resource, long hashId) A_CmsWidget.getHelpBubble
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsDisplayWidget.getHelpBubble
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsLocationPickerWidget.getHelpBubble
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) I_CmsWidget.getHelpBubble
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Creates the HTML code for the help bubble for this widget.A_CmsAdeGalleryWidget.getJavaScriptResourceLinks
(CmsObject cms) A_CmsCategorizedSelectWidget.getJavaScriptResourceLinks
(CmsObject cms) Gets the java script resource links.A_CmsGalleryWidget.getJavaScriptResourceLinks
(CmsObject cms) A_CmsSelectWidget.getJavaScriptResourceLinks
(CmsObject cms) Returns a list of java script resources required by the widget.CmsAddFormatterWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsCalendarWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsCategoryWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsCheckboxWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsCodeWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsColorpickerWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsDisplayWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsGroupWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsHtmlWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsInputWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsLocalizationWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsLocationPickerWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsPasswordWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsPrincipalWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsRemoveFormatterWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsSelectGroupWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsSerialDateWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsTextareaWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsTypeComboWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsTypeFilterWidget.getJavaScriptResourceLinks
(CmsObject cms) CmsVfsFileWidget.getJavaScriptResourceLinks
(CmsObject cms) I_CmsADEWidget.getJavaScriptResourceLinks
(CmsObject cms) Returns a list of java script resources required by the widget.protected JSONObject
CmsVfsFileWidget.getJsonConfig
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Gets the JSON configuration.protected JSONObject
A_CmsAdeGalleryWidget.getJSONConfig
(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the gallery widget configuration as a JSON object.protected JSONObject
CmsHtmlWidget.getJSONConfiguration
(CmsObject cms, CmsResource resource, Locale contentLocale) Returns the WYSIWYG editor configuration as a JSON object.static JSONObject
CmsHtmlWidget.getJSONConfiguration
(CmsHtmlWidgetOption widgetOptions, CmsObject cms, CmsResource resource, Locale contentLocale) Returns the WYSIWYG editor configuration as a JSON object.protected String
A_CmsAdeGalleryWidget.getOpenGalleryCall
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param, long hashId) Returns the javascript call to open the gallery widget dialog.protected CmsResource
CmsCategoryWidget.getResource
(CmsObject cms, I_CmsWidgetParameter param) Returns the right resource, depending on the locale.protected String
A_CmsSelectWidget.getResourcePath
(CmsObject cms, I_CmsWidgetDialog dialog) Gets the resource path for the given dialog.A_CmsNativeComplexWidget.getScripts
(CmsObject cms) Gets the list of URLs of scripts which the widget reuires.protected String
A_CmsSelectWidget.getSelectedValue
(CmsObject cms, I_CmsWidgetParameter param) Returns the currently selected value of the select widget.protected String
CmsVfsImageWidget.getSelectedValue
(CmsObject cms, List<CmsSelectWidgetOption> selectOptions, String currentValue) Returns the currently selected value of the select widget.A_CmsSelectWidget.getSelectedValues
(CmsObject cms, I_CmsWidgetParameter param) Returns the currently selected values of the select widget.CmsAddFormatterWidget.getSelectOptionValues
(CmsObject cms, String rootPath, boolean allRemoved) Returns all values that can be selected in the widget.CmsCategoryWidget.getStartingCategory
(CmsObject cms, String referencePath) Returns the starting category depending on the configuration options.I_CmsGalleryWidgetDynamicConfiguration.getStartup
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param) Returns the required information for the initial item list to load.I_CmsImageWidgetDynamicConfiguration.getStartup
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param) Returns the required information for the initial image list to load.I_CmsWidgetParameter.getStringValue
(CmsObject cms) Returns the value of this parameter.A_CmsNativeComplexWidget.getStyleSheets
(CmsObject cms) Gets the list of URLs of stylesheets which are required by the widget.protected String
CmsVfsFileWidget.getTreeToken
(CmsObject cms, A_CmsXmlContentValue value, CmsResource resource, Locale contentLocale) Computes the tree token, which is used to decide which preloaded tree, if any, to load for the VFS/sitemap tabs.I_CmsGalleryWidgetDynamicConfiguration.getType
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param) Returns the type of the initial item list to load, either gallery or category.I_CmsImageWidgetDynamicConfiguration.getType
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param) Returns the type of the initial image list to load, either gallery or category.protected abstract List<CmsSelectWidgetOption>
A_CmsFormatterWidget.getTypeOptions
(CmsObject cms, CmsADEConfigData config, boolean allRemoved) Gets the options corresponding to the schemas which define formatters.protected List<CmsSelectWidgetOption>
CmsAddFormatterWidget.getTypeOptions
(CmsObject cms, CmsADEConfigData adeConfig, boolean allRemoved) protected List<CmsSelectWidgetOption>
CmsRemoveFormatterWidget.getTypeOptions
(CmsObject cms, CmsADEConfigData adeConfig, boolean allRemoved) protected static List<CmsSelectWidgetOption>
CmsAddFormatterWidget.getTypeOptionsStatic
(CmsObject cms, CmsADEConfigData adeConfig, boolean allRemoved) Gets the options corresponding to the schemas which define formatters.protected CmsGalleryWidgetConfiguration
A_CmsAdeGalleryWidget.getWidgetConfiguration
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) Returns the widget configuration.protected CmsVfsImageWidgetConfiguration
CmsAdeImageGalleryWidget.getWidgetConfiguration
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) final CmsComplexWidgetData
A_CmsNativeComplexWidget.getWidgetData
(CmsObject cms) CmsDataViewWidget.getWidgetData
(CmsObject cms) CmsDefaultComplexWidget.getWidgetData
(CmsObject cms) I_CmsComplexWidget.getWidgetData
(CmsObject cms) Gets the data needed for the editor to render the complex widget.static CmsSelectWidgetOption
A_CmsFormatterWidget.getWidgetOptionForFormatter
(CmsObject cms, I_CmsFormatterBean formatter) Creates a widget option corresponding to a formatter bean for an external formatter.static CmsSelectWidgetOption
A_CmsFormatterWidget.getWidgetOptionForType
(CmsObject cms, String typeName) Creates a widget option for a resource type.A_CmsWidget.getWidgetStringValue
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsCalendarWidget.getWidgetStringValue
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsSelectWidget.getWidgetStringValue
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) CmsVfsImageWidget.getWidgetStringValue
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) I_CmsWidget.getWidgetStringValue
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Returns the
processed according to the output rules of this widget and the given widget dialog.I_CmsWidgetParameter.getStringValue(CmsObject)
protected void
CmsGalleryWidgetConfiguration.init
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param, String configuration) Initializes the widget configuration using the given configuration string.protected void
CmsVfsImageWidgetConfiguration.init
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param, String configuration) Initializes the widget configuration using the given configuration string.protected void
CmsLocalizationWidget.initConfiguration
(CmsObject cms, I_CmsWidgetParameter param) Initializes the localized bundle to get the value from, the optional key name and the optional locale.protected void
CmsLocalizationWidget.initConfiguration
(CmsObject cms, A_CmsXmlContentValue schemaType) Initializes the localized bundle to get the value from, the optional key name and the optional locale.protected List<CmsSelectWidgetOption>
A_CmsFormatterWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
A_CmsFormatterWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param, boolean allRemoved) Returns the list of configured select options, parsing the configuration String if required.protected List<CmsSelectWidgetOption>
A_CmsSelectWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Returns the list of configured select options, parsing the configuration String if required.protected List<CmsSelectWidgetOption>
CmsDisplayTypeSelectWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsElementViewSelectWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsMultiSelectGroupWidget.parseSelectOptions
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsMultiSelectGroupWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsOrgUnitWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsSelectGroupWidget.parseSelectOptions
(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) Returns the list of configured select options, parsing the configuration String if required.protected List<CmsSelectWidgetOption>
CmsSelectGroupWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) protected List<CmsSelectWidgetOption>
CmsUserWidget.parseSelectOptions
(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) A_CmsHtmlWidget.parseWidgetOptions
(CmsObject cms) Creates a CmsHtmlWidgetOption instance from the configuration string.void
A_CmsHtmlWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
A_CmsWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsCalendarWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsCategoryWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsCheckboxWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsColorpickerWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsHtmlWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsInputWidgetPlaintext.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsLocalizationWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsMultiSelectGroupWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsMultiSelectWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsTextareaWidgetPlaintext.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
CmsVfsImageWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) void
I_CmsWidget.setEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Sets the value of in the given widget parameter by reading the "right" value from the offered map of parameters.static void
CmsMultiSelectWidget.setMultiSelectEditorValue
(CmsObject cms, Map<String, String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Sets the value of the widget parameter from the provided form parameters.void
I_CmsWidgetParameter.setStringValue
(CmsObject cms, String value) Sets the value of this parameter.ModifierConstructorDescriptionCmsGalleryWidgetConfiguration
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param, String configuration) Generates an initialized configuration for the gallery item widget using the given configuration string.CmsVfsImageWidgetConfiguration
(CmsObject cms, CmsMessages widgetDialog, I_CmsWidgetParameter param, String configuration) Generates an initialized configuration for the image widget using the given configuration string.SearchTypesFactory
(CmsObject cms, CmsResource resource) Constructor. -
Uses of CmsObject in org.opencms.widgets.dataview
Modifier and TypeMethodDescriptionvoid
I_CmsDataView.initialize
(CmsObject cms, String configData, Locale locale) Initializes this data view instance. -
Uses of CmsObject in org.opencms.workflow
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsWorkflowManager.m_adminCms
The CMS context with admin privileges.Modifier and TypeMethodDescriptionprotected CmsWorkflowResponse
CmsDefaultWorkflowManager.actionForcePublish
(CmsObject userCms, CmsPublishOptions options, List<CmsResource> resources) The implementation of the "forcepublish" workflow action.protected CmsWorkflowResponse
CmsDefaultWorkflowManager.actionPublish
(CmsObject userCms, CmsPublishOptions options, List<CmsResource> resources) The implementation of the "publish" workflow action.protected CmsWorkflowResponse
CmsExtendedWorkflowManager.actionRelease
(CmsObject userCms, List<CmsResource> resources) Implementation of the 'release' workflow action.protected void
CmsExtendedWorkflowManager.checkNewParentsInList
(CmsObject userCms, List<CmsResource> resources) Checks that the parent folders of new resources which are released are either not new or are also released.protected List<CmsResource>
CmsDefaultWorkflowManager.cleanUpInvalidResourcesFromUserPublishList
(CmsObject cms, List<CmsResource> resources) Removes invalid publish resources (those that are unchanged, or can't be found) from the user's publish list, and only returns those which are not invalid.CmsDefaultWorkflowManager.createFormatter
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) CmsExtendedWorkflowManager.createFormatter
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) I_CmsWorkflowManager.createFormatter
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) Creates the formatter for formatting the resources to be displayed to the user.static CmsProjectBean
CmsDefaultWorkflowManager.createProjectBeanFromProject
(CmsObject cms, CmsProject project) Creates a project bean from a real project.CmsDefaultWorkflowManager.executeAction
(CmsObject cms, CmsWorkflowAction action, CmsPublishListToken token) CmsDefaultWorkflowManager.executeAction
(CmsObject userCms, CmsWorkflowAction action, CmsPublishOptions options, List<CmsResource> resources) CmsExtendedWorkflowManager.executeAction
(CmsObject userCms, CmsWorkflowAction action, CmsPublishOptions options, List<CmsResource> resources) I_CmsWorkflowManager.executeAction
(CmsObject cms, CmsWorkflowAction action, CmsPublishListToken token) Executes a workflow action for a publish list token instead of a resource list.I_CmsWorkflowManager.executeAction
(CmsObject userCms, CmsWorkflowAction action, CmsPublishOptions options, List<CmsResource> resources) Executes a workflow action in the context of the current user.protected String
CmsExtendedWorkflowManager.generateProjectDescription
(CmsObject userCms) Generates the description for a new workflow project based on the user for whom it is created.protected String
CmsExtendedWorkflowManager.generateProjectName
(CmsObject userCms) Generates the name for a new workflow project based on the user for whom it is created.protected String
CmsExtendedWorkflowManager.generateProjectName
(CmsObject userCms, boolean shortTime) Generates the name for a new workflow project based on the user for whom it is created.Gets the localized label for a given CMS context and key.protected Locale
Gets the locale to use for a given CMS context.CmsDefaultWorkflowManager.getManageableProjects
(CmsObject cms, Map<String, String> params) I_CmsWorkflowManager.getManageableProjects
(CmsObject cms, Map<String, String> params) Returns the current user's manageable projects.protected String
CmsExtendedWorkflowManager.getNotificationResource
(CmsObject cms) Gets the resource notification content path.static String
CmsDefaultPublishResourceFormatter.getOuAwareName
(CmsObject cms, String name) Returns the simple name if the ou is the same as the current user's ou.protected static String
CmsDefaultWorkflowManager.getOuAwareName
(CmsObject cms, String name) Returns the simple name if the ou is the same as the current user's ou.protected CmsWorkflowResponse
CmsExtendedWorkflowManager.getPublishBrokenRelationsResponse
(CmsObject userCms, List<CmsPublishResource> publishResources) Helper method for generating the workflow response which should be sent when publishing the resources would break relations.CmsDefaultWorkflowManager.getPublishListToken
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) I_CmsWorkflowManager.getPublishListToken
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options) Gets a publish list token for the given parameters which can be used later to reconstruct the publish list.CmsExtendedRealProjectWrapper.getResources
(CmsObject cms, Map<String, String> params, String workflowId) CmsDefaultWorkflowManager.getWorkflowResources
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options, boolean canOverride, boolean ignoreLimit) CmsExtendedWorkflowManager.getWorkflowResources
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options, boolean canOverrideWorkflow, boolean ignoreLimit) I_CmsWorkflowManager.getWorkflowResources
(CmsObject cms, CmsWorkflow workflow, CmsPublishOptions options, boolean canOverride, boolean ignoreLimit) Returns the resources for the given workflow and project.CmsDefaultWorkflowManager.getWorkflows
(CmsObject cms) CmsExtendedWorkflowManager.getWorkflows
(CmsObject cms) I_CmsWorkflowManager.getWorkflows
(CmsObject cms) Returns the available workflows for the current user.void
A_CmsWorkflowManager.initialize
(CmsObject adminCms) void
CmsDefaultWorkflowManager.initialize
(CmsObject adminCms) void
CmsExtendedWorkflowManager.initialize
(CmsObject adminCms) void
I_CmsWorkflowManager.initialize
(CmsObject adminCms) Initializes this workflow manager instance.protected boolean
CmsExtendedWorkflowManager.isProjectManager
(CmsObject userCms) Checks whether the user for a given CMS context can manage workflow projects.protected void
CmsExtendedWorkflowManager.sendNotification
(CmsObject userCms, CmsUser recipient, CmsProject workflowProject, List<CmsResource> resources) Sends the notification for released resources.ModifierConstructorDescriptionConstructor.Constructor.CmsWorkflowNotification
(CmsObject adminCms, CmsObject userCms, CmsUser receiver, String notificationContent, CmsProject project, List<CmsResource> resources, String link) Creates a new workflow notification mail object. -
Uses of CmsObject in org.opencms.workplace
Modifier and TypeMethodDescriptionCmsWorkplace.getCms()
Returns the initialized cms object for the current user.Modifier and TypeMethodDescriptionstatic boolean
CmsWorkplace.canEditPermissionsForRoles
(CmsObject cms, String path) Checks if permissions for roles should be editable for the current user on the resource with the given path.void
CmsWorkplaceManager.checkAdeGalleryUpload
(CmsObject cms) Checks if the user in the given context has permissions for uploading.void
CmsWorkplaceManager.checkWorkplaceRequest
(javax.servlet.http.HttpServletRequest request, CmsObject cms) Checks whether the workplace is accessed through the workplace server, and sends an error message otherwise.CmsWorkplaceManager.createTempFile
(CmsObject cms, String resourceName, CmsUUID currentProjectId) Creates a temporary file which is needed while working in an editor with preview option.static String
CmsWorkplace.generateCssStyle
(CmsObject cms) Returns the style sheets for the report.static String
CmsWorkplace.generatePageStartExtended
(CmsObject cms, String encoding) Generates the header for the extended report view.long
CmsWorkplaceManager.getFileBytesMaxUploadSize
(CmsObject cms) Returns the value (in bytes) for the maximum file upload size of the current user.CmsRepositoryFolderHandler.getRepositoryFolder
(CmsObject cms, String reference, String type) I_CmsRepositoryFolderHandler.getRepositoryFolder
(CmsObject cms, String reference, String type) Returns the repository folder to store new contents in.static String
CmsWorkplace.getStartSiteRoot
(CmsObject cms, CmsUserSettings userSettings) Returns the start site from the given user settings.static String
CmsWorkplace.getStartSiteRoot
(CmsObject cms, CmsWorkplaceSettings settings) Returns the start site from the given workplace settings.CmsWorkplaceManager.getUploadHook
(CmsObject cms, String uploadFolder) Gets the upload hook URI which should be opened for an upload to a given folder.I_CmsPostUploadDialogHandler.getUploadHook
(CmsObject cms, String uploadFolderSitePath) Gets the upload hook URI.static String
CmsWorkplace.getWorkplaceExplorerLink
(CmsObject cms, String explorerRootPath) Creates a link for the OpenCms workplace that will reload the whole workplace, switch to the explorer view, the site of the given explorerRootPath and show the folder given in the explorerRootPath.CmsWorkplaceManager.getWorkplaceLocale
(CmsObject cms) Returns the workplace locale from the current user's settings.static CmsWorkplaceSettings
CmsWorkplace.getWorkplaceSettings
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Returns the workplace settings of the current user.void
CmsWorkplaceManager.initHandler
(CmsObject cms) void
CmsWorkplaceManager.initialize
(CmsObject cms) Initializes the workplace manager with the OpenCms system configuration.CmsWorkplaceLoginHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) static CmsWorkplaceSettings
CmsWorkplace.initUserSettings
(CmsObject cms, CmsWorkplaceSettings settings, boolean update) Updates the user settings in the given workplace settings for the current user, reading the user settings from the database if required.protected void
CmsWorkplace.initWorkplaceMembers
(CmsObject cms, javax.servlet.http.HttpSession session) Initializes this workplace class instance.static CmsWorkplaceSettings
CmsWorkplace.initWorkplaceSettings
(CmsObject cms, CmsWorkplaceSettings settings, boolean update) Updates the given workplace settings, also re-initializing the state of the Workplace to the users preferences (for example setting the startup site and project).boolean
CmsWorkplaceManager.isAdeGalleryUploadDisabled
(CmsObject cms) Returns true if gallery upload is disabled for the user in the given context.void
CmsWorkplaceSettings.setExplorerResource
(String value, CmsObject cms) Sets the current resource to be displayed in the explorer.void
CmsWorkplaceManager.setFileViewSettings
(CmsObject cms, CmsRfsFileViewer fileViewSettings) Sets the system-wide file view settings for the workplace.static void
CmsWorkplace.updateUserPreferences
(CmsObject cms, javax.servlet.http.HttpServletRequest req) Updates the user preferences after changes have been made.ModifierConstructorDescriptionCmsWorkplace
(CmsObject cms, javax.servlet.http.HttpSession session) Constructor in case no page context is available. -
Uses of CmsObject in org.opencms.workplace.comparison
Modifier and TypeMethodDescriptionstatic List<CmsAttributeComparison>
CmsResourceComparison.compareAttributes
(CmsObject cms, CmsResource resource1, CmsResource resource2) Helper method that collects all meta attributes of the two file versions and finds out, which of the attributes were added, removed, modified or remain unchanged.static List<CmsAttributeComparison>
CmsResourceComparison.compareProperties
(CmsObject cms, CmsResource resource1, String version1, CmsResource resource2, String version2) Helper method that finds out, which of the properties were added, removed, modified or remain unchanged.static String
CmsHistoryListUtil.getHistoryLink
(CmsObject cms, CmsUUID structureId, String version) Returns the link to an historical file.ModifierConstructorDescriptionCmsXmlDocumentComparison
(CmsObject cms, CmsFile res1, CmsFile res2) Creates a new xml document comparison. -
Uses of CmsObject in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionprotected CmsObject
CmsEditor.getCloneCms()
Returns a cloned cms instance that prevents the time range resource filter check.Modifier and TypeMethodDescriptionstatic boolean
CmsWorkplaceEditorManager.checkAcaciaEditorAvailable
(CmsObject cms, CmsResource resource) Checks whether GWT widgets are available for all fields of a content.static List<CmsDialogElement>
CmsDialogElements.computeElements
(CmsObject cms, String xmlPageUri, Locale locale) Creates a list of possible elements of a template from the template property "template-elements" and the elements available in the provided resource file.static List<CmsDialogElement>
CmsDialogElements.computeElements
(CmsObject cms, CmsXmlPage xmlPage, String xmlPageUri, Locale locale) Creates a list of possible elements of a template from the template property "template-elements" and the elements available in the provided xmlPage.CmsEditorDisplayOptions.getDisplayOptions
(CmsObject cms) Reads the editor configuration file valid for the current user and caches the result in a Map.CmsWorkplaceEditorManager.getEditorParameter
(CmsObject cms, String editor, String param) Gets the value of a global editor configuration parameter.CmsEditorHandler.getEditorUri
(CmsObject cms, String resourceType, String userAgent, boolean loadDefault) I_CmsEditorHandler.getEditorUri
(CmsObject cms, String resourceType, String userAgent, boolean loadDefault) Returns the editor URI which will be used for the selected resource type.protected String
CmsEditor.getFileEncoding
(CmsObject cms, String filename) Helper method to determine the encoding of the given file in the VFS, which must be set using the "content-encoding" property.CmsEditorCssHandlerDefault.getUriStyleSheet
(CmsObject cms, String editedResourcePath) I_CmsEditorCssHandler.getUriStyleSheet
(CmsObject cms, String editedResourcePath) Returns the absolute VFS path of the CSS style sheet to use.boolean
boolean
Checks if the handler can be used to determine the CSS style sheet based on the edited resource.ModifierConstructorDescriptionCreates a new editor manager.Creates a new widget collector node visitor.CmsXmlContentWidgetVisitor
(CmsObject cms, Locale locale) Creates a new widget collector node visitor. -
Uses of CmsObject in org.opencms.workplace.editors.directedit
Modifier and TypeFieldDescriptionprotected CmsObject
A_CmsDirectEditProvider.m_cms
The current users OpenCms context.Modifier and TypeMethodDescriptionCmsDateSeriesEditHandler.getDeleteOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParams) I_CmsEditHandler.getDeleteOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParams) Returns a map of delete options.CmsDateSeriesEditHandler.getEditOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParams, boolean isListElement) I_CmsEditHandler.getEditOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParams, boolean isListElement) Returns a map of edit options.static String
Messages.getLocalizedMessage
(CmsMessageContainer container, CmsObject cms) Returns the String for the given CmsMessageContainer localized to the current user's locale if available or to the default locale else.CmsDateSeriesEditHandler.getNewOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParam) I_CmsEditHandler.getNewOptions
(CmsObject cms, CmsContainerElementBean elementBean, CmsUUID pageContextId, Map<String, String[]> requestParam) Gets the options for the 'New' (plus) operation in the page editor.void
CmsDateSeriesEditHandler.handleDelete
(CmsObject cms, CmsContainerElementBean elementBean, String deleteOption, CmsUUID pageContextId, Map<String, String[]> requestParams) void
I_CmsEditHandler.handleDelete
(CmsObject cms, CmsContainerElementBean elementBean, String deleteOption, CmsUUID pageContextId, Map<String, String[]> requestParams) Executes the actual delete.CmsDateSeriesEditHandler.handleNew
(CmsObject cms, String newLink, Locale locale, String referenceSitePath, String modelFileSitePath, String postCreateHandler, CmsContainerElementBean element, CmsUUID pageId, Map<String, String[]> requestParams, String choice) I_CmsEditHandler.handleNew
(CmsObject cms, String newLink, Locale locale, String referenceSitePath, String modelFileSitePath, String postCreateHandler, CmsContainerElementBean element, CmsUUID pageId, Map<String, String[]> requestParams, String choice) Creates a new resource to edit.void
A_CmsDirectEditProvider.init
(CmsObject cms, CmsDirectEditMode mode, String fileName) void
CmsDirectEditDefaultProvider.init
(CmsObject cms, CmsDirectEditMode mode, String fileName) void
CmsDirectEditJQueryProvider.init
(CmsObject cms, CmsDirectEditMode mode, String fileName) void
CmsDirectEditJspIncludeProvider.init
(CmsObject cms, CmsDirectEditMode mode, String fileName) void
I_CmsDirectEditProvider.init
(CmsObject cms, CmsDirectEditMode mode, String fileName) Initialize method for a new instance of the direct edit provider.CmsDateSeriesEditHandler.prepareForEdit
(CmsObject cms, CmsContainerElementBean elementBean, String editOption, CmsUUID pageContextId, Map<String, String[]> requestParams) I_CmsEditHandler.prepareForEdit
(CmsObject cms, CmsContainerElementBean elementBean, String editOption, CmsUUID pageContextId, Map<String, String[]> requestParams) Prepares the resource to be edited. -
Uses of CmsObject in org.opencms.workplace.explorer
Modifier and TypeMethodDescriptionCmsExplorerTypeAccess.getPermissions
(CmsObject cms, CmsResource resource) Calculates the permissions for this explorer type settings for the user in the given OpenCms user context.boolean
CmsExplorerTypeSettings.isEditable
(CmsObject cms, CmsResource resource) Checks if the current user has write permissions on the given resource.void
Sets the cms context.ModifierConstructorDescriptionCmsResourceUtil
(CmsObject cms) Creates a newCmsResourceUtil
object.CmsResourceUtil
(CmsObject cms, CmsResource resource) Creates a newCmsResourceUtil
object. -
Uses of CmsObject in org.opencms.workplace.galleries
Modifier and TypeMethodDescriptionstatic List<CmsResource>
A_CmsAjaxGallery.getGalleries
(int galleryTypeId, CmsObject cms) Returns a list of galleries which have the required gallery type id. -
Uses of CmsObject in org.opencms.workplace.threads
ModifierConstructorDescriptionCmsDatabaseImportThread
(CmsObject cms, String importFile, boolean keepPermissions) Imports an OpenCms export file into the VFS.CmsExportThread
(CmsObject cms, I_CmsImportExportHandler handler, boolean old) Creates a new data export thread.Constructor, creates a new CmsExternLinkValidationThread.CmsModuleDeleteThread
(CmsObject cms, List<String> moduleNames, boolean replaceMode) Creates the module delete thread.CmsModuleReplaceThread
(CmsObject cms, String moduleName, String zipName) Creates the module replace thread.CmsProjectDeleteThread
(CmsObject cms, CmsUUID projectId) Creates the project delete thread.Creates a thread that validates the relations for all files of the current project.CmsRelationsValidatorThread
(CmsObject cms, CmsPublishList publishList, CmsWorkplaceSettings settings) Creates a thread that validates the relations in the list of unpublished file(s) of the current (offline) project.Creates the synchronize Thread.Default constructor with cms object that is used for VFS path validation.CmsXmlContentRepairThread
(CmsObject cms, CmsXmlContentRepairSettings settings) Creates a repair XML content resources thread. -
Uses of CmsObject in org.opencms.workplace.tools
Modifier and TypeMethodDescriptionvoid
Called by the
method.CmsWorkplaceManager.initialize(CmsObject)
boolean
boolean
boolean
boolean
boolean
boolean
Returns the state of the admin tool for a given cms context.boolean
boolean
boolean
boolean
boolean
Returns the visibility flag for a given cms context.protected void
Sets the link for the given resource.protected void
A_CmsToolHandler.setParameters
(CmsObject cms, String resourcePath) Sets the needed properties from theA_CmsToolHandler.ARGS_PROPERTY_DEFINITION
property of the given resource.boolean
A_CmsToolHandler.setup
(CmsObject cms, CmsToolRootHandler root, String resourcePath) Default implementation.boolean
CmsToolRootHandler.setup
(CmsObject cms, CmsToolRootHandler root, String resourcePath) boolean
I_CmsToolHandler.setup
(CmsObject cms, CmsToolRootHandler root, String resourcePath) Main method that somehow setups the admin tool handler. -
Uses of CmsObject in org.opencms.xml
Modifier and TypeMethodDescriptionorg.dom4j.Element
CmsXmlContentDefinition.addDefaultXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) Adds the missing default XML according to this content definition to the given document element.void
Adds the given locale to this XML document.A_CmsXmlDocument.correctXmlStructure
(CmsObject cms) Corrects the structure of this XML document.org.dom4j.Element
CmsXmlContentDefinition.createDefaultXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) Generates the default XML content for this content definition, and append it to the given root element.org.dom4j.Document
CmsXmlContentDefinition.createDocument
(CmsObject cms, I_CmsXmlDocument document, Locale locale) Generates a valid XML document according to the XML schema of this content definition.org.dom4j.Element
CmsXmlContentDefinition.createLocale
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) Generates a valid locale (language) element for the XML schema of this content definition.static CmsXmlContentDefinition
CmsXmlContentDefinition.getContentDefinitionForResource
(CmsObject cms, CmsResource resource) Factory method that returns the XML content definition instance for a given resource.static CmsXmlContentDefinition
CmsXmlContentDefinition.getContentDefinitionForType
(CmsObject cms, String typeName) Reads the content definition which is configured for a resource type.static I_CmsXmlContentHandler
CmsXmlContentDefinition.getContentHandlerForResource
(CmsObject cms, CmsResource resource) Returns a content handler instance for the given resource.I_CmsXmlDocument.getLinkProcessor
(CmsObject cms, CmsLinkTable linkTable) Returns a link processor for the values of this XML document.A_CmsXmlDocument.getStringValue
(CmsObject cms, String path, Locale locale) A_CmsXmlDocument.getStringValue
(CmsObject cms, String path, Locale locale, int index) I_CmsXmlDocument.getStringValue
(CmsObject cms, String path, Locale locale) Returns the first content value for the given path as a String, ornull
if no such value exists.I_CmsXmlDocument.getStringValue
(CmsObject cms, String path, Locale locale, int index) Returns the content value for the given path and the selected index as a String, ornull
if no such value exists.void
CmsXmlContentTypeManager.initialize
(CmsObject cms) Initializes XML content types managed in this XML content type manager.protected static void
CmsXmlEntityResolver.initialize
(CmsObject adminCms, byte[] typeSchemaBytes) Initialize the OpenCms XML entity resolver.static CmsXmlContentDefinition
Factory method to unmarshal (read) a XML content definition instance from the OpenCms VFS resource name.Validates the content of this XML document.ModifierConstructorDescriptionCreates a new XML entity resolver based on the provided CmsObject.CmsXmlFileTransformer
(CmsObject cms, String path, String type, String xslName, InputStream xslStream, I_CmsReport report) Creates a new instance. -
Uses of CmsObject in org.opencms.xml.containerpage
Modifier and TypeMethodDescriptionprotected void
CmsXmlContainerPage.checkLinkConcistency
(CmsObject cms) Checks the link consistency for a given locale and reinitializes the document afterwards.protected CmsContainerPageBean
CmsXmlContainerPage.cleanupContainersContainers
(CmsObject cms, CmsContainerPageBean cntPage) Removes all empty containers and merges the containers of the current document that are not used in the given container page with it.static CmsFormatterConfiguration
CmsFormatterConfiguration.create
(CmsObject cms, List<I_CmsFormatterBean> formatters) Returns the formatter configuration for the current project based on the given list of formatters.byte[]
CmsXmlContainerPage.createContainerPageXml
(CmsObject cms, CmsContainerPageBean cntPage) Saves a container page bean to the in-memory XML structure and returns the changed content.static CmsXmlContainerPage
CmsXmlContainerPageFactory.createDocument
(CmsObject cms, Locale locale, String modelUri) Create a new instance of an container page based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.static CmsXmlContainerPage
CmsXmlContainerPageFactory.createDocument
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of a container page based on the given content definition, that will have one language node for the given locale all initialized with default values.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.createDocument
(CmsObject cms, Locale locale, String modelUri) Create a new instance of an group container based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.createDocument
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of a group container based on the given content definition, that will have one language node for the given locale all initialized with default values.static CmsContainerElementBean
CmsContainerElementBean.createElementForResourceType
(CmsObject cms, I_CmsResourceType resourceType, String targetFolder, Map<String, String> individualSettings, boolean isCopyModels, Locale locale) Creates an element bean for the given resource type.CmsLazyFolder.createFolder
(CmsObject cms) Creates the folder with the given name if it doesn't already exist, and returns it.I_CmsADEConfiguration.createNewElement
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request, String type, Locale locale) Creates a new element of a given type at the configured location.protected CmsResource
CmsXmlContainerPage.fillResource
(CmsObject cms, org.dom4j.Element element, CmsUUID resourceId) Fills aCmsXmlVfsFileValue
with the resource identified by the given id.protected void
CmsXmlGroupContainer.fillResource
(CmsObject cms, org.dom4j.Element element, CmsResource res) Fills aCmsXmlVfsFileValue
with the resource identified by the given id.protected List<CmsDynamicFunctionBean.Format>
CmsDynamicFunctionParser.getAdditionalFormats
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes) Parses all the additional formats from the XML content.static CmsADESessionCache
Gets the session cache for the current session.CmsConfigurationFileFinder.getConfigurationFile
(CmsObject cms, String containerPageUri) Returns the configuration file to use.CmsXmlContainerPage.getContainerPage
(CmsObject cms) Gets the container page content as a bean.I_CmsADEConfiguration.getCreatableElements
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) Returns the list of creatable elements.CmsXmlGroupContainerHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) CmsXmlInheritGroupContainerHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) int
I_CmsADEConfiguration.getFavoriteListMaxSize
(CmsObject cms) Returns the maximal size of the favorite list.Returns the folder if it already exists, or null if it doesn't.CmsDynamicFunctionBean.getFormatForContainer
(CmsObject cms, String type, int width) Finds the correct format for a given container type and width.CmsXmlDynamicFunctionHandler.getFormatterConfiguration
(CmsObject cms, CmsResource resource) I_CmsADEConfiguration.getFormattersForResource
(CmsObject cms, String containerPageRootPath, CmsResource res) Returns the formatter configuration for a given resource.protected CmsResource
CmsDynamicFunctionParser.getFunctionFormatter
(CmsObject cms) Gets the function formatter resource, possibly from the cache.CmsXmlGroupContainer.getGroupContainer
(CmsObject cms) Returns the group container bean for the given locale.CmsXmlGroupContainerHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) CmsXmlInheritGroupContainerHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) protected Locale
CmsDynamicFunctionParser.getLocaleToUse
(CmsObject cms, CmsXmlContent xmlContent) Gets the locale to use for parsing the dynamic function.protected CmsDynamicFunctionBean.Format
CmsDynamicFunctionParser.getMainFormat
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes) Parses the main format from the XML content.I_CmsADEConfiguration.getNextNewFileName
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request, String type) Returns the name of the next new file of the given type to be created.CmsLazyFolder.getOrCreateFolder
(CmsObject cms) Returns the folder if it already exists, or creates and returns it if it doesn't.CmsLazyFolder.getPermissionCheckFolder
(CmsObject cms) Returns the folder to check for permissions, which is either the folder itself if it already exists, or the parent folder if it doesn't.int
I_CmsADEConfiguration.getRecentListMaxSize
(CmsObject cms) Returns the maximal size of the recent list.I_CmsADEConfiguration.getSearchableResourceTypes
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) Returns the list of searchable resource types.CmsXmlDynamicFunctionHandler.getSettings
(CmsObject cms, CmsResource res) CmsLazyFolder.getSitePath
(CmsObject cms) Computes the site path of the folder, which is either the original path constructor argument, or the site path of the original resource constructor argument.protected String
CmsDynamicFunctionParser.getString
(CmsObject cms, I_CmsXmlContentValueLocation location) Gets the string value of an XML content location.protected String
CmsDynamicFunctionParser.getStringValue
(CmsObject cms, I_CmsXmlContentValueLocation location, String defaultValue) Converts a (possibly null) content value location to a string.void
Initializes the configuration.void
CmsXmlContainerPage.initDocument
(CmsObject cms) Calls initDocument, but with a different CmsObjectprotected void
CmsXmlContainerPage.initDocument
(CmsObject cms, org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) static void
CmsFormatterConfiguration.initialize
(CmsObject cms) Initialize the formatter configuration.void
CmsContainerElementBean.initResource
(CmsObject cms) Initializes the resource and the site path of this element.void
CmsContainerElementBean.initSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> presets) Initializes the element settings.boolean
I_CmsADEConfiguration.isCreatableType
(CmsObject cms, String currentUri, String typeName) Returns if the given type has a valid configuration to be created.boolean
CmsContainerElementBean.isGroupContainer
(CmsObject cms) Tests whether this element refers to a group container.boolean
CmsContainerElementBean.isInheritedContainer
(CmsObject cms) Returns whether this element refers to an inherited container element.protected static List<CmsContainerElementBean>
CmsXmlGroupContainerHandler.loadGroupContainerElements
(CmsObject cms, CmsResource resource) Helper method to load and prepare the elements of a group container.static List<CmsContainerElementBean>
CmsXmlInheritGroupContainerHandler.loadInheritContainerElements
(CmsObject cms, CmsResource resource) Returns the elements of the given inheritance group for the request context URI.protected CmsDynamicFunctionBean.Format
CmsDynamicFunctionParser.parseAdditionalFormat
(CmsObject cms, I_CmsXmlContentValueLocation location, CmsResource functionRes) Parses an additional format from the XML content.CmsDynamicFunctionParser.parseFunctionBean
(CmsObject cms, CmsResource res) Parses a dynamic function bean given a resource.CmsDynamicFunctionParser.parseFunctionBean
(CmsObject cms, CmsXmlContent content) Parses a dynamic function bean from an in-memory XML content object.protected CmsDynamicFunctionBean
CmsDynamicFunctionParser.parseFunctionBean
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes, CmsResource functionFormatter) Parses a dynamic function bean.CmsDynamicFunctionParser.parseParameter
(CmsObject cms, I_CmsXmlContentValueLocation valueLocation) Parses a request parameter for the JSP from the XML content.CmsDynamicFunctionParser.parseParameters
(CmsObject cms, I_CmsXmlContentLocation location, String name) Parses all parameters for the JSP from the XML content.protected CmsXmlContentProperty
CmsDynamicFunctionParser.parseProperty
(CmsObject cms, I_CmsXmlContentLocation field) Helper method for parsing a settings definition.protected Map<String,
CmsXmlContentProperty> CmsDynamicFunctionParser.parseSettings
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionResource) Parses the settings for the dynamic function from the XML content.CmsHtmlRedirectHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) CmsListConfigContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) CmsXmlContainerPageHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) CmsXmlContainerPageHandler.resolveValidation
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) void
CmsXmlContainerPage.save
(CmsObject cms, CmsContainerPageBean cntPage) Saves given container page in the current locale, and not only in memory but also to VFS.void
CmsXmlContainerPage.save
(CmsObject cms, CmsContainerPageBean cntPage, boolean ifChangedOnly) Saves given container page in the current locale, and not only in memory but also to VFS.void
CmsXmlGroupContainer.save
(CmsObject cms, CmsGroupContainerBean groupContainer, Locale locale) Saves given container page in the current locale, and not only in memory but also to VFS.protected void
CmsXmlContainerPage.saveContainerPage
(CmsObject cms, org.dom4j.Element parent, CmsContainerPageBean cntPage) Adds the given container page to the given element.protected void
CmsXmlGroupContainer.saveGroupContainer
(CmsObject cms, org.dom4j.Element parent, CmsGroupContainerBean groupContainer) Adds the given container page to the given element.void
CmsADESessionCache.setLastPage
(CmsObject cms, CmsUUID pageId, CmsUUID detailId) Stores information about the last edited container page.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a container page instance from a byte array that contains XML data.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a container page instance from a String that contains XML data.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a container page instance from a XML document.static CmsXmlContainerPage
Factory method to unmarshal (read) a container page instance from a OpenCms VFS file that contains XML data.static CmsXmlContainerPage
Factory method to unmarshal (read) a container page instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, CmsFile file, boolean keepEncoding, boolean noCache) Factory method to unmarshal (read) a container page instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, CmsResource resource) Factory method to unmarshal (read) a container page instance from a OpenCms VFS resource that contains XML data.static CmsXmlContainerPage
CmsXmlContainerPageFactory.unmarshal
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a container page instance from a resource, using the request attributes as cache.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.unmarshal
(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a group container instance from a byte array that contains XML data.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.unmarshal
(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a group container instance from a String that contains XML data.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.unmarshal
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a group container instance from a XML document.static CmsXmlGroupContainer
Factory method to unmarshal (read) a group container instance from a OpenCms VFS file that contains XML data.static CmsXmlGroupContainer
Factory method to unmarshal (read) a group container instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.unmarshal
(CmsObject cms, CmsResource resource) Factory method to unmarshal (read) a group container instance from a OpenCms VFS resource that contains XML data.static CmsXmlGroupContainer
CmsXmlGroupContainerFactory.unmarshal
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a group container instance from a resource, using the request attributes as cache.protected boolean
CmsXmlContainerPageHandler.validateLink
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) protected void
CmsXmlContainerPageHandler.validateNames
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContent content) Validates container names, so that they are unique in the page.void
CmsXmlContainerPage.writeContainerPage
(CmsObject cms, CmsContainerPageBean cntPage) Saves a container page in in-memory XML structure.ModifierConstructorDescriptionprotected
CmsADESessionCache
(CmsObject cms, javax.servlet.http.HttpServletRequest request) Initializes the session cache.CmsSchemaFormatterBeanWrapper
(CmsObject cms, I_CmsFormatterBean wrappedBean, I_CmsXmlContentHandler contentHandler, CmsResource resource) Creates a new wrapper instance.protected
CmsXmlContainerPage
(CmsObject cms, Locale locale, String modelUri) Create a new container page based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.protected
CmsXmlContainerPage
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new container page based on the given content definition, that will have one language node for the given locale all initialized with default values.protected
CmsXmlContainerPage
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Creates a new container page based on the provided XML document.protected
CmsXmlGroupContainer
(CmsObject cms, Locale locale, String modelUri) Create a new group container based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.protected
CmsXmlGroupContainer
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new container page based on the given content definition, that will have one language node for the given locale all initialized with default values.protected
CmsXmlGroupContainer
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Creates a new group container based on the provided XML document. -
Uses of CmsObject in org.opencms.xml.containerpage.mutable
ModifierConstructorDescriptionCmsContainerPageWrapper
(CmsObject cms, CmsResource res) Creates a new instance by reading the container page from a file.Creates a new instance from an existing XML container page object. -
Uses of CmsObject in org.opencms.xml.content
Modifier and TypeMethodDescriptionCmsDefaultXmlContentHandler.createRootCms
(CmsObject cms) Copies a given CMS context and set the copy's site root to '/'.Modifier and TypeMethodDescriptionprotected static void
CmsXmlContentPropertyHelper.addFileListPropertyValue
(CmsObject cms, org.dom4j.Element valueElement, String propValue) Adds the XML for a property value of a property of type 'vfslist' to the DOM.void
Adds a new XML content value for the given element name and locale at the given index position to this XML content document.protected I_CmsXmlContentValue
CmsXmlContent.addValue
(CmsObject cms, org.dom4j.Element parent, I_CmsXmlSchemaType type, Locale locale, int insertIndex) Adds a new XML schema type with the default value to the given parent node.Adds a value element of the type the original xpath indicates at the selected index to the XML content document.Adds a value element of the type indicated by the given xpath at the selected index to the XML content document.CmsXmlContentValueSequence.addValue
(CmsObject cms, I_CmsXmlSchemaType type, int index) Adds a value element of the given type at the selected index to the XML content document.boolean
CmsDefaultXmlContentHandler.applyReverseAvailabilityMapping
(CmsObject cms, CmsXmlContent content, CmsMappingResolutionContext.AttributeType attr, List<Locale> resourceLocales, long valueToSet) boolean
I_CmsXmlContentHandler.applyReverseAvailabilityMapping
(CmsObject cms, CmsXmlContent content, CmsMappingResolutionContext.AttributeType attr, List<Locale> locales, long value) Writes an availability date back to the content, if a mapping is defined for it.Returns the structure id of the content value (only valid for VfsFile values!).Returns the string value of the content value.protected static String
CmsXmlContentPropertyHelper.convertIdsToPaths
(CmsObject cms, String value) Converts a string containing zero or more structure ids into a string containing the corresponding VFS paths.protected static String
CmsXmlContentPropertyHelper.convertPathsToIds
(CmsObject cms, String value) Converts a string containing zero or more VFS paths into a string containing the corresponding structure ids.CmsXmlContentPropertyHelper.convertProperties
(CmsObject cms, Map<String, String> props, Map<String, CmsXmlContentProperty> propConfig, boolean toClient) Helper method for converting a map of properties from client format to server format or vice versa.CmsXmlContentPropertyHelper.convertPropertiesToClientFormat
(CmsObject cms, Map<String, String> props, Map<String, CmsXmlContentProperty> propConfig) Converts a map of properties from server format to client format.CmsXmlContentPropertyHelper.convertPropertiesToServerFormat
(CmsObject cms, Map<String, String> props, Map<String, CmsXmlContentProperty> propConfig) Converts a map of properties from client format to server format.protected static String
CmsXmlContentPropertyHelper.convertStringPropertyValue
(CmsObject cms, String propValue, String type, boolean toClient) Converts a property value given as a string between server format and client format.static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, String modelUri) Create a new instance of an XML content based on the given default content, hat will have all language nodes of the default content and ensures the presence of the given locale.static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of an XML content based on the given content definiton, that will have one language node for the given locale all initialized with default values.static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, CmsResourceTypeXmlContent resourceType) Creates a new XML content based on a resource type.CmsDefaultXmlContentHandler.createRootCms
(CmsObject cms) Copies a given CMS context and set the copy's site root to '/'.CmsDefaultXmlContentHandler.getComplexWidget
(CmsObject cms, String path) I_CmsXmlContentHandler.getComplexWidget
(CmsObject cms, String path) Gets the unconfigured complex widget defined for the given path.CmsDefaultXmlContentHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) Returns all the CSS resources to include into the html-page head.CmsDefaultXmlContentHandler.getDefault
(CmsObject cms, CmsResource resource, I_CmsXmlSchemaType type, String path, Locale locale) CmsDefaultXmlContentHandler.getDefault
(CmsObject cms, I_CmsXmlContentValue value, Locale locale) I_CmsXmlContentHandler.getDefault
(CmsObject cms, CmsResource resource, I_CmsXmlSchemaType type, String path, Locale locale) Returns the default String value for the given XML content schema type object in the given XML content.I_CmsXmlContentHandler.getDefault
(CmsObject cms, I_CmsXmlContentValue value, Locale locale) Returns the default String value for the given XML content schema type object in the given XML content.protected static CmsVfsFileValueBean
CmsXmlContentPropertyHelper.getFileValueForIdOrUri
(CmsObject cms, String idOrUri) Given a string which might be a id or a (sitemap or VFS) URI, this method will return a bean containing the right (sitemap or vfs) root path and (sitemap entry or structure) id.CmsDefaultXmlContentHandler.getFormatterConfiguration
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getFormatterConfiguration
(CmsObject cms, CmsResource res) Returns the container page element formatter configuration for a given resource.static CmsUUID
CmsXmlContentPropertyHelper.getIdForUri
(CmsObject cms, String uri) Looks up an URI in the sitemap and returns either a sitemap entry id (if the URI is a sitemap URI) or the structure id of a resource (if the URI is a VFS path).CmsDefaultXmlContentHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) Returns all the javascript resources to include into the html-page head.CmsXmlContent.getLinkProcessor
(CmsObject cms, CmsLinkTable linkTable) CmsDefaultXmlContentHandler.getLocalesForResource
(CmsObject cms, String resource) Returns the configured default locales for the content of the given resource.static CmsMacroResolver
CmsXmlContentPropertyHelper.getMacroResolverForProperties
(CmsObject cms, I_CmsXmlContentHandler contentHandler, CmsXmlContent content, Function<String, String> stringtemplateSource, CmsResource containerPage) Creates and configures a new macro resolver for resolving macros which occur in property definitions.CmsDefaultXmlContentHandler.getNestedFormatters
(CmsObject cms, CmsResource res, Locale locale, javax.servlet.ServletRequest req) I_CmsXmlContentHandler.getNestedFormatters
(CmsObject cms, CmsResource res, Locale locale, javax.servlet.ServletRequest req) Returns the nested formatters for the given resource.CmsDefaultXmlContentHandler.getPreview
(CmsObject cms, CmsXmlContent content, String resourcename) I_CmsXmlContentHandler.getPreview
(CmsObject cms, CmsXmlContent content, String resourcename) Returns the preview URI for the given XML content value object to be displayed in the editor.static Map<String,
CmsXmlContentProperty> CmsXmlContentPropertyHelper.getPropertyInfo
(CmsObject cms, CmsResource page, CmsResource resource) Returns the property information for the given resource (type) AND the current user.static String
CmsXmlContentPropertyHelper.getPropValueIds
(CmsObject cms, String type, String value) Returns a converted property value depending on the given type.static String
CmsXmlContentPropertyHelper.getPropValuePaths
(CmsObject cms, String type, String value) Returns a converted property value depending on the given type.protected String
CmsDefaultXmlContentHandler.getReferencePath
(CmsObject cms, I_CmsXmlContentValue value) Returns the category reference path for the given value.CmsDefaultXmlContentHandler.getSettings
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getSettings
(CmsObject cms, CmsResource resource) Returns the element settings defined for the container page formatters.CmsDefaultXmlContentHandler.getTitleMapping
(CmsObject cms, CmsXmlContent document, Locale locale) I_CmsXmlContentHandler.getTitleMapping
(CmsObject cms, CmsXmlContent document, Locale locale) Returns the "Title" mapping set for the given XML content document in the given Locale.static String
CmsXmlContentPropertyHelper.getUriForId
(CmsObject cms, CmsUUID id) Returns a sitemap or VFS path given a sitemap entry id or structure id.protected String
CmsDefaultXmlContentHandler.getValidationMessage
(CmsObject cms, I_CmsXmlContentValue value, String regex, String valueStr, boolean matchResult, boolean isWarning) Returns the validation message to be displayed if a certain rule was violated.CmsDefaultXmlContentHandler.getValidationWarningOrErrorMessage
(CmsObject cms, Locale locale, String elementName, boolean isWarning, boolean keyOnly) Helper method for reading a validation message or the corresponding message key.Gets the widget for the given path and CMS context.I_CmsXmlContentEditorChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Handles the content change.protected void
CmsXmlContent.initDocument
(CmsObject cms, org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) Initializes an XML document based on the provided document, encoding and content definition.void
CmsDefaultXmlContentHandler.invalidateBrokenLinks
(CmsObject cms, CmsXmlContent document) void
I_CmsXmlContentHandler.invalidateBrokenLinks
(CmsObject cms, CmsXmlContent document) Performs a check of the given XML document.boolean
CmsDefaultXmlContentHandler.isValueVisible
(CmsObject cms, I_CmsXmlSchemaType value, String elementName, String params, CmsResource resource, Locale contentLocale) Returns the content field visibilty.boolean
I_CmsXmlContentVisibilityHandler.isValueVisible
(CmsObject cms, I_CmsXmlSchemaType value, String elementPath, String params, CmsResource resource, Locale contentLocale) Returns if the given content value field should be visible to the current user.boolean
CmsDefaultXmlContentHandler.isVisible
(CmsObject cms, I_CmsXmlSchemaType contentValue, String valuePath, CmsResource resource, Locale contentLocale) boolean
I_CmsXmlContentHandler.isVisible
(CmsObject cms, I_CmsXmlSchemaType schemaType, String valuePath, CmsResource resource, Locale contentLocale) Returns if the given content field should be visible to the current user.CmsVfsBundleLoaderXml.loadData
(CmsObject cms, CmsVfsBundleParameters params) CmsXmlContentPropertyHelper.mergeDefaults
(CmsObject cms, Map<String, CmsXmlContentProperty> propertyConfig, Map<String, String> properties) Extends the given properties with the default values from property configuration.CmsXmlContentPropertyHelper.mergeDefaults
(CmsObject cms, CmsADEConfigData config, CmsResource resource, Map<String, String> properties, Locale locale, javax.servlet.ServletRequest request) Extends the given properties with the default values from the resource's property configuration.CmsDefaultXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) I_CmsXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) Prepares the given XML content to be used after it was read from the OpenCms VFS.CmsDefaultXmlContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) I_CmsXmlContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) Prepares the given XML content to be written to the OpenCms VFS.CmsXmlContentPropertyHelper.readProperties
(CmsObject cms, I_CmsXmlContentLocation baseLocation) Reads property nodes from the given location.protected void
CmsDefaultXmlContentHandler.removeEmptyMappings
(CmsObject cms, CmsFile file, CmsXmlContent content) Removes property values on resources for non-existing, optional elements.protected void
CmsDefaultXmlContentHandler.resolveDefaultMappings
(CmsObject cms, CmsFile file, CmsXmlContent content) Resolves those mappings for which no content value exists and useDefault is set to true.static Map<String,
CmsXmlContentProperty> CmsXmlContentPropertyHelper.resolveMacrosForPropertyInfo
(CmsObject cms, CmsResource page, CmsResource resource, com.google.common.base.Supplier<CmsXmlContent> contentGetter, Function<String, String> stringtemplateSource, Map<String, CmsXmlContentProperty> propertiesConf) Resolves macros in the given property information for the given resource (type) AND the current user.void
CmsDefaultXmlContentHandler.resolveMapping
(CmsObject cms, CmsXmlContent content, I_CmsXmlContentValue value) void
I_CmsXmlContentHandler.resolveMapping
(CmsObject cms, CmsXmlContent content, I_CmsXmlContentValue value) Resolves the value mappings of the given XML content value, according to the rules of this XML content handler.void
CmsXmlContent.resolveMappings
(CmsObject cms) Resolves the mappings for all values of this XML content.CmsDefaultXmlContentHandler.resolveValidation
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) I_CmsXmlContentHandler.resolveValidation
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) Performs a validation of the given XML content value, and saves all errors or warnings found in the provided XML content error handler.static void
CmsXmlContentPropertyHelper.saveProperties
(CmsObject cms, org.dom4j.Element parentElement, Map<String, String> properties, Map<String, CmsXmlContentProperty> propertiesConf, boolean sort) Saves the given properties to the given xml element.void
CmsMappingResolutionContext.setCmsObject
(CmsObject cms) Sets the CMS context to use.void
CmsXmlContent.synchronizeLocaleIndependentValues
(CmsObject cms, Collection<String> skipPaths, Locale sourceLocale) Synchronizes the locale independent fields for the given locale.static org.dom4j.Document
CmsVersionTransformer.transformDocumentToCurrentVersion
(CmsObject cms, org.dom4j.Document document, CmsXmlContentDefinition contentDefinition) Converts an XML content document to the current version using the version transformation XSLT file which is configured in the schema.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a byte array that contains XML data.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a String that contains XML data.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a XML document.static CmsXmlContent
Factory method to unmarshal (read) a XML content instance from a OpenCms VFS file that contains XML data.static CmsXmlContent
Factory method to unmarshal (read) a XML content instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a XML content instance from a resource, using the request attributes as cache.protected CmsXmlContentErrorHandler
CmsDefaultXmlContentHandler.validateCategories
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) The errorHandler parameter is optional, ifnull
is given a new error handler instance must be created.protected boolean
CmsDefaultXmlContentHandler.validateLink
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler) Validates the given rules against the given value.protected CmsXmlContentErrorHandler
CmsDefaultXmlContentHandler.validateValue
(CmsObject cms, I_CmsXmlContentValue value, String valueStr, CmsXmlContentErrorHandler errorHandler, boolean isWarning) Checks the default XML schema validation rules.protected CmsXmlContentErrorHandler
CmsDefaultXmlContentHandler.validateValue
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContentErrorHandler errorHandler, Map<String, String> rules, boolean isWarning) Validates the given rules against the given value.protected CmsFile
CmsDefaultXmlContentHandler.writeCategories
(CmsObject cms, CmsFile file, CmsXmlContent content) Writes the categories if a category widget is present.ModifierConstructorDescriptionprotected
CmsXmlContent
(CmsObject cms, Locale locale, String modelUri) Create a new XML content based on the given default content, that will have all language nodes of the default content and ensures the presence of the given locale.protected
CmsXmlContent
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new XML content based on the given content definiton, that will have one language node for the given locale all initialized with default values.protected
CmsXmlContent
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Creates a new XML content based on the provided XML document.CmsXmlContentMacroVisitor
(CmsObject cms, CmsMacroResolver resolver) Creates a new validation node visitor.CmsXsltContext
(CmsObject cms) Creates a new instance. -
Uses of CmsObject in org.opencms.xml.page
Modifier and TypeMethodDescriptionvoid
CmsXmlPage.getLinkProcessor
(CmsObject cms, CmsLinkTable linkTable) void
CmsXmlPage.setStringValue
(CmsObject cms, String name, Locale locale, String content) Sets the data of an already existing value.static I_CmsXmlDocument
Factory method to unmarshal (read) a XML document instance from a filename in the VFS, using the request attributes as cache.static CmsXmlPage
Factory method to unmarshal (read) a XML page instance from a OpenCms VFS file that contains XML data.static CmsXmlPage
Factory method to unmarshal (read) a XML page instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlPage
CmsXmlPageFactory.unmarshal
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a XML page instance from a resource, using the request attributes as cache. -
Uses of CmsObject in org.opencms.xml.templatemapper
Modifier and TypeMethodDescriptionCmsTemplateMapperAction.getVisibility
(CmsObject cms, List<CmsResource> resources) protected CmsContainerElementBean
CmsTemplateMapper.transformContainerElement
(CmsObject cms, CmsTemplateMapperConfiguration config, CmsContainerElementBean element) Helper method to transform a single container element.CmsTemplateMapper.transformContainerpageBean
(CmsObject cms, CmsContainerPageBean input, String rootPath) Transforms a container page bean.CmsTemplateMapper.transformDetailElement
(CmsObject cms, CmsContainerElementBean input, String rootPath) Transforms a container element bean used for detail elements.CmsTemplateMapper.transformGroupContainer
(CmsObject cms, CmsGroupContainerBean input, String rootPath) Transforms a group container bean.ModifierConstructorDescriptionCmsTemplateMapperConfiguration
(CmsObject cms, org.dom4j.Document doc) Parses a template mapper configuration from an XML document.protected
CmsTemplateMappingContentRewriter
(CmsObject cms, CmsResource folder) Creates a new instance. -
Uses of CmsObject in org.opencms.xml.types
Modifier and TypeMethodDescriptionorg.dom4j.Element
A_CmsXmlContentValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlAccessRestrictionValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlCategoryValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlDynamicCategoryValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlHtmlValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlNestedContentDefinition.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlVarLinkValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
CmsXmlVfsFileValue.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) org.dom4j.Element
I_CmsXmlSchemaType.generateXml
(CmsObject cms, I_CmsXmlDocument document, org.dom4j.Element root, Locale locale) Appends an XML for a new, empty node of this schema type to the given root element.static boolean
CmsXmlBooleanValue.getBooleanValue
(CmsObject cms, I_CmsWidgetParameter value) Returns the boolean value of the given widget parameter.A_CmsXmlContentValue.getDefault
(CmsObject cms) CmsXmlVfsImageValue.getDescription
(CmsObject cms) Returns the description of the image.Returns the format information of the image.static String
CmsXmlVarLinkValue.getInternalPathAndQuery
(CmsObject cms, String value) Converts the value for a VarLink field to the form "root path + query string" if it's an internal link, and returns null if it's an external link.Returns the link object represented by this XML content value.Returns the link object represented by this XML content value.Returns the link objects represented by this XML content value.A_CmsXmlContentValue.getPlainText
(CmsObject cms) A_CmsXmlValueCdataBase.getPlainText
(CmsObject cms) A_CmsXmlValueTextBase.getPlainText
(CmsObject cms) CmsXmlAccessRestrictionValue.getPlainText
(CmsObject cms) CmsXmlCategoryValue.getPlainText
(CmsObject cms) CmsXmlDynamicCategoryValue.getPlainText
(CmsObject cms) CmsXmlHtmlValue.getPlainText
(CmsObject cms) CmsXmlPlainTextStringValue.getPlainText
(CmsObject cms) CmsXmlVarLinkValue.getPlainText
(CmsObject cms) CmsXmlVfsFileValue.getPlainText
(CmsObject cms) I_CmsXmlContentValue.getPlainText
(CmsObject cms) Returns the value of this XML content node as a plain text String.CmsXmlVfsImageValue.getRequestLink
(CmsObject cms) Returns the link without parameters from the string value.CmsXmlVfsImageValue.getScaleOptions
(CmsObject cms) Returns the scale options of the image.A_CmsXmlValueCdataBase.getStringValue
(CmsObject cms) A_CmsXmlValueTextBase.getStringValue
(CmsObject cms) CmsXmlAccessRestrictionValue.getStringValue
(CmsObject cms) CmsXmlCategoryValue.getStringValue
(CmsObject cms) CmsXmlDisplayFormatterValue.getStringValue
(CmsObject cms) CmsXmlDynamicCategoryValue.getStringValue
(CmsObject cms) CmsXmlHtmlValue.getStringValue
(CmsObject cms) CmsXmlNestedContentDefinition.getStringValue
(CmsObject cms) CmsXmlVarLinkValue.getStringValue
(CmsObject cms) CmsXmlVfsFileValue.getStringValue
(CmsObject cms) I_CmsXmlContentValue.getStringValue
(CmsObject cms) Returns the value of this XML content node as a String.void
CmsXmlVfsImageValue.setDescription
(CmsObject cms, String description) Sets the description of the image.void
Sets the format information of the image.void
CmsXmlCategoryValue.setIdValue
(CmsObject cms, CmsUUID id) Sets the value as a structure id.void
CmsXmlVfsFileValue.setIdValue
(CmsObject cms, CmsUUID id) Sets the value as a structure id.void
CmsXmlVfsImageValue.setScaleOptions
(CmsObject cms, String scaleOptions) Sets the scale options of the image.void
A_CmsXmlValueCdataBase.setStringValue
(CmsObject cms, String value) void
A_CmsXmlValueTextBase.setStringValue
(CmsObject cms, String value) void
CmsXmlAccessRestrictionValue.setStringValue
(CmsObject cms, String value) void
CmsXmlBooleanValue.setStringValue
(CmsObject cms, String value) void
CmsXmlCategoryValue.setStringValue
(CmsObject cms, String value) void
CmsXmlDisplayFormatterValue.setStringValue
(CmsObject cms, String value) void
CmsXmlDynamicCategoryValue.setStringValue
(CmsObject cms, String value) void
CmsXmlHtmlValue.setStringValue
(CmsObject cms, String value) void
CmsXmlNestedContentDefinition.setStringValue
(CmsObject cms, String value) void
CmsXmlVarLinkValue.setStringValue
(CmsObject cms, String value) void
CmsXmlVfsFileValue.setStringValue
(CmsObject cms, String value) void
CmsXmlVfsImageValue.setStringValue
(CmsObject cms, String value) void
I_CmsXmlContentValue.setStringValue
(CmsObject cms, String value) Sets the provided String as value of this XML content node. -
Uses of CmsObject in org.opencms.xml.xml2json
Modifier and TypeMethodDescriptionI_CmsApiAuthorizationHandler.initCmsObject
(CmsObject adminCms, javax.servlet.http.HttpServletRequest request) Authenticates a user from a request and returns a CmsObject initialized with that user.Modifier and TypeMethodDescriptionboolean
CmsJsonAccessPolicy.checkAccess
(CmsObject cms, String path) Checks if a JSON handler request is allowed for this policy.protected CmsJsonAccessPolicy
CmsJsonResourceHandler.getAccessPolicy
(CmsObject cms) Reads JSON access policy from cache or loads it if necessary.static I_CmsCustomLinkRenderer
CmsJsonResourceHandler.getLinkRenderer
(CmsObject cms) Gets the link renderer for the current CMS context.I_CmsApiAuthorizationHandler.initCmsObject
(CmsObject adminCms, javax.servlet.http.HttpServletRequest request) Authenticates a user from a request and returns a CmsObject initialized with that user.void
I_CmsApiAuthorizationHandler.initialize
(CmsObject cms) Sets the admin CmsObject used internally by this handler.CmsJsonResourceHandler.initResource
(CmsResource origRes, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) static String
CmsJsonResourceHandler.link
(CmsObject cms, CmsResource res) Produces a link to the given resource, using the link renderer from the current CMS context if it is set.void
CmsJsonResourceHandler.setAdminCmsObject
(CmsObject adminCms) Gets the JSON representation of the value.ModifierConstructorDescriptionCmsResourceDataJsonHelper
(CmsObject cms, CmsResource resource, Predicate<String> propertyFilter) Creates a new instance. -
Uses of CmsObject in org.opencms.xml.xml2json.handler
Modifier and TypeMethodDescriptionCmsJsonHandlerContext.getCms()
Gets the CMS context.CmsJsonHandlerContext.getRootCms()
Gets the CMS context initialized to the root site.ModifierConstructorDescriptionCmsJsonHandlerContext
(CmsObject cms, CmsObject rootCms, String path, CmsResource resource, Map<String, String> params, CmsParameterConfiguration handlerConfig, CmsJsonAccessPolicy policy) Creates a new instance. -
Uses of CmsObject in org.opencms.xml.xml2json.renderer
Modifier and TypeMethodDescriptionvoid
CmsJsonRendererXmlContent.initialize
(CmsObject cms) Initializes the renderer.void
I_CmsJsonRendererXmlContent.initialize
(CmsObject cms) Initializes the context for the renderer.static JSONObject
CmsJsonRendererXmlContent.linkAndPath
(String link, String path, CmsObject cms) Builds a simple JSON object with link and path fields whose values are taken from the corresponding parameters.ModifierConstructorDescriptionCmsJsonRendererContainerPage
(CmsObject cms, CmsResource page, Predicate<String> propertyFilter) Creates a new renderer instance.Creates a new instance.
A_CmsResourceType.chtype(CmsObject, CmsSecurityManager, CmsResource, I_CmsResourceType)
instead.