Uses of Class
org.opencms.file.CmsResource
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.
Low-level database connection and access functionality.
Generic (ANSI-SQL) implementation of the OpenCms database connector.
MySQL4+ implementation of the OpenCms database connector.
Oracle9+ implementation of the OpenCms database connector.
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.
Helpers to convert the list configuration XML content into a suitable bean, used by the CmsSimpleSearchConfigurationParser and the List manager app.
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.
Package contains all classes and interfaces needed to create or use a repository to
access the resources in the VFS.
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.
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 link validation app.
This package contains the app classes for the list configurations manager.
Contains classes of the source search app.
Contains classes of the user manager app.
Contains some reusable GUI components for Vaadin UI.
Contains Vaadin UI extensions.
Contains components for selecting resources.
Contains code for workplace context menu.
Contains code for workplace dialogs.
Contains code for the comparison view of the file history dialog.
The available content editors.
The data bindings and logic for the translator editor.
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.
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.
-
Uses of CmsResource in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionCmsResourceTypeConfig.createNewElement
(CmsObject userCms, String pageFolderRootPath) Creates a new element.CmsResourceTypeConfig.createNewElement
(CmsObject userCms, CmsResource modelResource, String pageFolderRootPath) Creates a new element.CmsContentFolderDescriptor.getFolder()
Gets the folder.CmsADEConfigData.getResource()
Returns the resource from which this configuration was read.CmsADEConfigDataInternal.getResource()
Returns the resource.CmsElementView.getResource()
Returns the element view resource.CmsModelPageConfig.getResource()
Gets the model page resource.Modifier and TypeMethodDescriptionCmsADEManager.getOfflineElementUses
(CmsResource resource) Creates a stream that produces the pages/groups referencing a given element.Modifier and TypeMethodDescriptionCmsResourceTypeConfig.createNewElement
(CmsObject userCms, CmsResource modelResource, String pageFolderRootPath) Creates a new element.CmsADEManager.getElementSettings
(CmsObject cms, CmsResource resource) Returns the element settings for a given resource.CmsADEConfigData.getFormatters
(CmsObject cms, CmsResource res) Gets the formatter configuration for a resource.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, 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.getOfflineElementUses
(CmsResource resource) Creates a stream that produces the pages/groups referencing a given element.CmsADEManager.getPermissionInfo
(CmsObject cms, CmsResource resource, String contextPath) Returns the permission info for the given resource.boolean
CmsElementView.hasPermission
(CmsObject cms, CmsResource folder) Checks whether the current user has permissions to use the element view.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.isElementReused
(CmsResource resource, Predicate<CmsResource> exclude) Checks if an element is reused in a page or group that is not excluded by a given predicate.protected void
CmsGlobalConfigurationCacheEventHandler.offlineCacheRemove
(CmsResource resource) Removes a resource from the offline caches.protected void
CmsGlobalConfigurationCacheEventHandler.offlineCacheUpdate
(CmsResource resource) Updates a resource in the offline caches.protected void
CmsGlobalConfigurationCacheEventHandler.onlineCacheRemove
(CmsResource resource) Removes a resource from the online caches.protected void
CmsGlobalConfigurationCacheEventHandler.onlineCacheUpdate
(CmsResource resource) Updates a resource in the online caches.CmsConfigurationReader.parseSitemapConfiguration
(String basePath, CmsResource configRes) Parses the sitemap configuration given the configuration file and base path.CmsSitemapAttributeEditorConfiguration.read
(CmsObject cms, CmsResource res) Reads the attribute definitions from an XML content.void
CmsDetailNameCache.remove
(CmsResource resource) void
I_CmsGlobalConfigurationCache.remove
(CmsResource resource) Removes a resource from the cache.void
CmsADEManager.saveInheritedContainer
(CmsObject cms, CmsResource pageResource, String name, boolean newOrder, List<CmsContainerElementBean> elements) Saves the inheritance container information.void
CmsDetailNameCache.update
(CmsResource resource) void
I_CmsGlobalConfigurationCache.update
(CmsResource resource) Updates the cache entry for the given resource.Modifier and TypeMethodDescriptionboolean
CmsADEManager.isElementReused
(CmsResource resource, Predicate<CmsResource> exclude) Checks if an element is reused in a page or group that is not excluded by a given predicate.ModifierConstructorDescriptionCmsADEConfigDataInternal
(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.protected
CmsADEConfigDataInternal
(CmsResource resource, boolean isModuleConfig, String basePath, List<CmsADEConfigDataInternal.ConfigReference> masterConfigs, List<CmsResourceTypeConfig> resourceTypeConfig, boolean discardInheritedTypes, List<CmsPropertyConfig> propertyConfig, org.opencms.ade.configuration.CmsConfigurationReader.DiscardPropertiesMode discardPropertiesMode, List<CmsDetailPageInfo> detailPageInfos, List<CmsModelPageConfig> modelPages, List<CmsFunctionReference> functionReferences, boolean discardInheritedModelPages, boolean createContentsLocally, boolean preferDetailPagesForLocalContents, boolean excludeExternalDetailContents, boolean includeInSiteSelector, CmsFormatterChangeSet formatterChangeSet, boolean removeAllFunctions, Set<CmsUUID> functionIds) Creates a new configuration data instance.Creates an instance based on an existing folder.CmsElementView
(CmsObject cms, CmsResource resource) Constructor.CmsModelPageConfig
(CmsResource res, boolean isDefault, boolean isDisabled) Creates a new model page configuration bean. -
Uses of CmsResource in org.opencms.ade.configuration.formatters
Modifier and TypeMethodDescriptionvoid
CmsFormatterConfigurationCache.remove
(CmsResource resource) void
CmsFormatterConfigurationCache.update
(CmsResource resource) -
Uses of CmsResource in org.opencms.ade.configuration.plugins
Modifier and TypeMethodDescriptionstatic CmsSitePlugin
CmsSitePlugin.read
(CmsObject cms, CmsResource res) Reads a site plugin from a file. -
Uses of CmsResource in org.opencms.ade.containerpage
Modifier and TypeMethodDescriptionstatic CmsResource
CmsModelGroupHelper.createModelGroup
(CmsObject cms, CmsADEConfigData configData) Creates a new model group resource.CmsElementUtil.getPage()
Gets the container page.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.Modifier and TypeMethodDescriptionstatic com.google.common.base.Optional<CmsResource>
CmsDetailOnlyContainerUtil.getDetailOnlyPage
(CmsObject cms, CmsResource detailContent, String contentLocale) Gets the detail only page for a 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.CmsDetailOnlyContainerPageBuilder.ContainerInfo.getResources()
Gets the container element resources.CmsRelationTargetListBean.getResources()
Gets the list of resources which have been added.Modifier and TypeMethodDescriptionvoid
CmsRelationTargetListBean.add
(CmsResource resource) Adds a new resource.void
CmsDetailOnlyContainerPageBuilder.addContainerElement
(String name, CmsResource resource) Adds a resource to a container as an element.void
CmsDetailOnlyContainerPageBuilder.ContainerInfo.addResource
(CmsResource resource) Adds a container element resource.static String
CmsDetailOnlyContainerUtil.getDetailContainerLocale
(CmsObject cms, String contentLocale, CmsResource resource) Returns the detail container resource locale appropriate for the given detail page.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.CmsElementUtil.getElementData
(CmsResource page, CmsContainerElementBean element, Collection<CmsContainer> containers) Returns the data for an element.CmsElementUtil.getElementSettingsConfig
(CmsResource page, CmsContainerElementBean element, String containerId, Collection<CmsContainer> containers) Returns the formatter and settings config data for an element.CmsElementUtil.getPageAndDetailOnlyIds
(CmsObject cms, CmsUUID pageId, CmsResource detailContent) Gets the ids for the current page and potentially detail-only containers.static boolean
CmsContainerpageService.isEditingModelGroups
(CmsObject cms, CmsResource containerPage) Checks whether the current page is a model group page.static boolean
CmsModelGroupHelper.isModelGroupResource
(CmsResource resource) Returns if the given resource is a model group resource.static CmsXmlContainerPage
CmsDetailOnlyContainerUtil.saveDetailOnlyPage
(CmsObject cms, CmsResource content, String locale, CmsContainerPageBean page) Saves a detail-only page for a content.CmsModelGroupHelper.saveModelGroups
(CmsContainerPageBean page, CmsResource pageResource) Saves the model groups of the given container page.static boolean
CmsModelGroupHelper.updateModelGroupResource
(CmsObject cms, CmsResource group, String baseContainerName) Updates a model group resource to the changed data structure.Modifier and TypeMethodDescriptionstatic List<CmsModelResourceInfo>
CmsContainerpageService.generateModelResourceList
(CmsObject cms, String resourceType, List<CmsResource> modelResources, Locale contentLocale) Generates the model resource data list. -
Uses of CmsResource 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.CmsInheritanceReference.getResource()
Gets the reference resource.Modifier and TypeMethodDescriptionCmsInheritanceGroupUtils.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.void
CmsContainerConfigurationParser.parse
(CmsResource resource) Parses the contents of a resource.void
CmsInheritanceReferenceParser.parse
(CmsResource resource) Parses a given resource.void
CmsContainerConfigurationCache.remove
(CmsResource resource) 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.void
CmsContainerConfigurationGroup.setResource
(CmsResource configResource) Initializes the information about the resource from which this configuration was read.void
CmsContainerConfigurationCache.update
(CmsResource resource) Modifier and TypeMethodDescriptionprotected Map<CmsUUID,
CmsContainerConfigurationGroup> CmsContainerConfigurationCache.load
(Collection<CmsResource> resources) Loads the inheritance groups from a list of resources.ModifierConstructorDescriptionCmsInheritanceReference
(String name, String title, String description, CmsResource res, Locale locale) Creates a new instance. -
Uses of CmsResource in org.opencms.ade.contenteditor
Modifier and TypeMethodDescriptionprotected 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. -
Uses of CmsResource in org.opencms.ade.detailpage
Modifier and TypeMethodDescriptionstatic CmsResource
CmsDetailPageResourceHandler.getDetailFunctionPage
(javax.servlet.ServletRequest req) Returns the detail function page resource, if available.static CmsResource
CmsDetailPageResourceHandler.getDetailResource
(javax.servlet.ServletRequest req) Returns the current detail content resource, ornull
if this is not a request to a content detail page.CmsDetailPageResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) 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).Modifier and TypeMethodDescriptionCmsDetailPageUtil.getAllDetailPagesWithUrlName
(CmsObject cms, CmsResource res) Gets a list of detail page URIs for the given resource, with its URL name appended.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.ModifierConstructorDescriptionCreates a new detail page configuration writer.CmsDetailPageFilter
(CmsObject cms, CmsResource resource) Creates a new instance based on an actual detail resource. -
Uses of CmsResource in org.opencms.ade.galleries
Modifier and TypeMethodDescriptionprotected List<CmsResource>
A_CmsTreeTabDataPreloader.getChildren
(CmsResource resource) Gets the children of a resource.protected List<CmsResource>
CmsGalleryService.CmsGalleryTypeInfo.getGalleries()
Returns the gallery folder resources.protected List<CmsResource>
CmsGalleryService.getSitemapSubEntryResources
(String rootPath) Gets the sitemap sub entries for a given path as resources.protected List<CmsResource>
CmsGalleryService.readAll
(Collection<CmsUUID> structureIds, CmsResourceFilter filter) Reads the resources for a collection of structure ids and returns the list of resources which could be read.Modifier and TypeMethodDescriptionprotected abstract T
A_CmsTreeTabDataPreloader.createEntry
(CmsObject cms, CmsResource resource) Creates a tree entry bean from a resource.protected List<CmsResource>
A_CmsTreeTabDataPreloader.getChildren
(CmsResource resource) Gets the children of a resource.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.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.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.Modifier and TypeMethodDescriptionprotected void
A_CmsTreeTabDataPreloader.findRoot
(Collection<CmsResource> resources) Finds the common root folder for a collection of resources.protected String
A_CmsTreeTabDataPreloader.getCommonSite
(Collection<CmsResource> resourceSet) Gets the common site root of a set of resources.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.protected void
CmsGalleryService.CmsGalleryTypeInfo.setGalleries
(List<CmsResource> galleries) Sets the galleries.ModifierConstructorDescriptionprotected
CmsGalleryTypeInfo
(I_CmsResourceType resourceType, I_CmsResourceType contentType, List<CmsResource> galleries) Constructor.TypeEntry
(String type, List<CmsResource> resources, Map<CmsUUID, String> titleReplacements, String origin) Creates a new entry. -
Uses of CmsResource in org.opencms.ade.publish
Modifier and TypeMethodDescriptionprotected List<CmsResource>
CmsCollectorPublishListHelper.computeCollectorResults
(boolean online) Computes the collector results.CmsDummyRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) I_CmsPublishRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) Gets the set of additional related resources.CmsCollectorPublishListHelper.getPublishListFiles()
Gets the list to add to the publish list for the collector list.CmsDefaultCollectorPublishListProvider.getPublishResources
(CmsObject cms, I_CmsContentLoadCollectorInfo info) CmsPublish.ResourcesAndRelated.getRelatedResources()
Returns the related resources.CmsPublish.ResourcesAndRelated.getResources()
Returns the resources.CmsRealProjectVirtualWrapper.getResources
(CmsObject cms, Map<String, String> params, String workflowId) Gets the resources of the virtual project.Modifier and TypeMethodDescriptionboolean
CmsPublish.ResourcesAndRelated.contains
(CmsResource resource) Checks if the given resource is present in at least one of the sets.CmsDummyRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) I_CmsPublishRelatedResourceProvider.getAdditionalRelatedResources
(CmsObject cms, CmsResource res) Gets the set of additional related resources.protected CmsPublishResource
CmsPublish.resourceToBean
(CmsResource resource, CmsPublishResourceInfo info, boolean removable, List<CmsPublishResource> related) Creates a publish resource bean instance from the given parameters.Modifier and TypeMethodDescriptionprotected void
CmsPublishService.addSiblings
(Set<CmsResource> publishResources) Adds siblings to a set of publish resources.protected void
CmsDirectPublishProject.addSubResources
(CmsObject cms, Set<CmsResource> resources) Adds contents of folders to a list of resources.CmsPublishRelationFinder.ResourceMap.filter
(com.google.common.base.Predicate<CmsResource> pred) Creates a new resource map based on this instance while filtering some elements out.CmsPublish.getBrokenResources
(List<CmsResource> pubResources) Checks for possible broken links when the given list of resources would be published.void
CmsPublish.publishResources
(List<CmsResource> resources) Publishes the given list of resources.ModifierConstructorDescriptionCmsPublishRelationFinder
(CmsObject cms, Collection<CmsResource> resources, boolean keepOriginalUnchangedResources, I_CmsPublishRelatedResourceProvider relProvider) Creates a new instance. -
Uses of CmsResource in org.opencms.ade.sitemap
Modifier and TypeMethodDescriptionCmsModelPageHelper.createModelGroupPage
(String name, String description, CmsUUID copyId) Creates a new model group page.CmsModelPageHelper.createPageInModelFolder
(String name, String description, CmsUUID copyId) Creates a new potential model page in the default folder for new model pages.CmsModelPageHelper.ensureModelFolder
(CmsResource rootResource) Tries to either read or create the default folder for model pages in the current sitemap, and returns it.Modifier and TypeMethodDescriptionvoid
CmsModelPageHelper.addModelPageToSitemapConfiguration
(CmsResource sitemapConfig, CmsResource modelPage, boolean disabled) Adds a model page to the sitemap config.void
CmsModelPageHelper.disableModelPage
(CmsResource sitemapConfig, CmsUUID structureId, boolean disabled) Disables the given model page.protected CmsVfsSitemapService.LockInfo
CmsVfsSitemapService.ensureLockAndGetInfo
(CmsResource resource) Locks the given resource with a temporary, if not already locked by the current user.CmsModelPageHelper.ensureModelFolder
(CmsResource rootResource) Tries to either read or create the default folder for model pages in the current sitemap, and returns it.void
CmsModelPageHelper.removeModelPage
(CmsResource sitemapConfig, CmsUUID structureId) Removes a model page from the sitemap configuration.ModifierConstructorDescriptionCmsModelPageHelper
(CmsObject cms, CmsResource rootResource) Creates a new instance.CmsSitemapNavPosCalculator
(List<CmsJspNavElement> navigation, CmsResource movedElement, int insertPosition) Creates a new sitemap navigation position calculator and performs the navigation position calculation for a given insertion operation. -
Uses of CmsResource in org.opencms.cache
Modifier and TypeMethodDescriptionCmsVfsNameBasedDiskCache.getCacheName
(CmsResource resource, String parameters) Returns the RFS name to use for caching the given VFS resource with parameters in the disk cache.protected abstract void
CmsVfsCache.uncacheResource
(CmsResource resource) Removes a cached resource from the cache.protected void
CmsVfsMemoryObjectCache.uncacheResource
(CmsResource resource) Modifier and TypeMethodDescriptionprotected void
CmsVfsCache.uncacheResources
(List<CmsResource> resources) Removes a bunch of cached resources from the cache. -
Uses of CmsResource in org.opencms.cmis
Modifier and TypeMethodDescriptionCmsCmisRelationHelper.RelationKey.getSource()
Gets the source resource of the relation.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.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
I_CmsPropertyProvider.setPropertyValue
(CmsObject cms, CmsResource resource, String valueToSet) Writes the property value. -
Uses of CmsResource in org.opencms.db
Modifier and TypeMethodDescriptionprotected CmsResource
CmsPublishList.checkContainsSubResources
(CmsObject cms, List<CmsResource> folders) Checks whether the publish list contains all sub-resources of a list of folders.CmsDriverManager.createResource
(CmsDbContext dbc, String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.CmsDriverManager.createResource
(CmsDbContext dbc, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.CmsSecurityManager.createResource
(CmsRequestContext context, String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.CmsSecurityManager.createResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties) Creates a new resource with the provided content and properties.I_CmsVfsDriver.createResource
(ResultSet res, CmsUUID projectId) Creates a CmsResource instance from a JDBC ResultSet.I_CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) Creates a new resource from a givenCmsResource
object.CmsDriverManager.createSibling
(CmsDbContext dbc, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.CmsSecurityManager.createSibling
(CmsRequestContext context, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.CmsSecurityManager.importResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.CmsUserTrackingResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) CmsDriverManager.readDefaultFile
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsSecurityManager.readDefaultFile
(CmsRequestContext context, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsDriverManager.readParentFolder
(CmsDbContext dbc, CmsUUID structureId) Reads the parent folder to a given structure id.CmsSecurityManager.readParentFolder
(CmsRequestContext context, CmsUUID structureId) Returns the parent folder to the given structure id.CmsDriverManager.readResource
(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsDriverManager.readResource
(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.protected CmsResource
CmsSecurityManager.readResource
(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) Reads a resource from the OpenCms VFS, using the specified resource filter.protected CmsResource
CmsSecurityManager.readResource
(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the OpenCms VFS, using the specified resource filter.CmsSecurityManager.readResource
(CmsRequestContext context, String resourcePath, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsSecurityManager.readResource
(CmsRequestContext context, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.I_CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, String filename, boolean includeDeleted) Reads a resource specified by it's resource name.I_CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, boolean includeDeleted) Reads a resource specified by it's structure ID.Modifier and TypeMethodDescriptionCmsDriverManager.changeResourcesInFolderWithProperty
(CmsDbContext dbc, CmsResource resource, String propertyDefinition, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.CmsSecurityManager.changeResourcesInFolderWithProperty
(CmsRequestContext context, CmsResource resource, String propertyDefinition, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.CmsPublishList.getAllResources()
Returns a list of all resources in the publish list, including folders and files.CmsPublishList.getDeletedFolderList()
Returns a list of folder resources with the deleted state.CmsPublishList.getDirectPublishResources()
Returns the list of resources that should be published for a "direct" publish operation.CmsPublishList.getFileList()
Returns an unmodifiable list of the files in this publish list.CmsPublishList.getFolderList()
Returns an unmodifiable list of the new/changed folders in this publish list.CmsImportFolder.getImportedResources()
Returns the list of imported resources.CmsDriverManager.getLockedResourcesObjects
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsSecurityManager.getLockedResourcesObjects
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsDriverManager.getLockedResourcesObjectsWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsSecurityManager.getLockedResourcesObjectsWithCache
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.protected List<CmsResource>
CmsSecurityManager.getManageableResources
(CmsDbContext dbc, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsSecurityManager.getManageableResources
(CmsRequestContext context, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.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.CmsDriverManager.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.CmsSecurityManager.getResourcesForOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.I_CmsUserDriver.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.CmsDriverManager.getResourcesForPrincipal
(CmsDbContext dbc, CmsProject project, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsSecurityManager.getResourcesForPrincipal
(CmsRequestContext context, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.protected List<CmsResource>
CmsPublishList.getTopFolders
(List<CmsResource> folders) Gives the "roots" of a list of folders, i.e.CmsPublishList.getTopMovedFolders
(CmsObject cms) Gets the list of moved folders which are not subfolders of other moved folders in the publish list.CmsDriverManager.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) Returns the given user's publish list.CmsSecurityManager.getUsersPubList
(CmsRequestContext context) Returns the current user's publish list.I_CmsProjectDriver.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) Returns the given user's publish list.CmsDriverManager.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsSecurityManager.readAllSubscribedResources
(CmsRequestContext context, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsSubscriptionManager.readAllSubscribedResources
(CmsObject cms, CmsPrincipal principal) Returns all resources subscribed by the given user or group.I_CmsSubscriptionDriver.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsDriverManager.readChildResources
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles, boolean checkPermissions) Returns the child resources of a resource, that is the resources contained in a folder.CmsSecurityManager.readChildResources
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles) Returns the child resources of a resource, that is the resources contained in a folder.I_CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) Reads all child-files and/or child-folders of a specified parent resource.CmsDriverManager.readPath
(CmsDbContext dbc, String path, CmsResourceFilter filter) Builds a list of resources for a given path.CmsSecurityManager.readPath
(CmsRequestContext context, String path, CmsResourceFilter filter) Builds a list of resources for a given path.CmsDriverManager.readProjectView
(CmsDbContext dbc, CmsUUID projectId, CmsResourceState state) Reads all resources of a project that match a given state from the VFS.CmsSecurityManager.readProjectView
(CmsRequestContext context, CmsUUID projectId, CmsResourceState state) Reads all resources of a project that match a given state from the VFS.CmsDriverManager.readResources
(CmsDbContext dbc, CmsResource parent, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsSecurityManager.readResources
(CmsRequestContext context, CmsResource parent, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.I_CmsVfsDriver.readResources
(CmsDbContext dbc, CmsUUID currentProject, CmsResourceState state, int mode) Reads all resources inside a given project and with a given state.I_CmsVfsDriver.readResourcesForPrincipalACE
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) Returns all resources associated to a given principal via an ACE.I_CmsVfsDriver.readResourcesForPrincipalAttr
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) Returns all resources associated to a given principal through some of following attributes.CmsDriverManager.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsSecurityManager.readResourcesVisitedBy
(CmsRequestContext context, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsSubscriptionManager.readResourcesVisitedBy
(CmsObject cms, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.I_CmsSubscriptionDriver.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsDriverManager.readResourcesWithProperty
(CmsDbContext dbc, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the given value string) set for the specified property (definition) in the given path.CmsSecurityManager.readResourcesWithProperty
(CmsRequestContext context, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the specified value) set for the specified property (definition) in the given path.I_CmsVfsDriver.readResourcesWithProperty
(CmsDbContext dbc, CmsUUID projectId, CmsUUID propertyDefinition, String path, String value) Reads all resources that have a value (containing the specified value) set for the specified property (definition), in the given path.I_CmsVfsDriver.readResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parent, int type, CmsResourceState state, long startTime, long endTime, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) Reads all resources inside a given project matching the criteria specified by parameter values.CmsDriverManager.readSiblings
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.CmsSecurityManager.readSiblings
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.I_CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) Reads all siblings that point to the resource record of a specified resource.CmsDriverManager.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.CmsSecurityManager.readSubscribedResources
(CmsRequestContext context, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.CmsSubscriptionManager.readSubscribedResources
(CmsObject cms, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.I_CmsSubscriptionDriver.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.Modifier and TypeMethodDescriptionprotected void
CmsPublishList.add
(CmsResource resource, boolean check) Adds a new/changed Cms folder resource to the publish list.void
CmsDriverManager.addRelationToResource
(CmsDbContext dbc, CmsResource resource, CmsResource target, CmsRelationType type, boolean importCase) Adds a new relation to the given resource.void
CmsSecurityManager.addRelationToResource
(CmsRequestContext context, CmsResource resource, CmsResource target, CmsRelationType type, boolean importCase) Adds a new relation to a given resource.void
I_CmsUserDriver.addResourceToOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
CmsDriverManager.addResourceToOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
CmsSecurityManager.addResourceToOrgUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
CmsDriverManager.changeLock
(CmsDbContext dbc, CmsResource resource, CmsLockType lockType) Changes the lock of a resource to the current user, that is "steals" the lock from another user.void
CmsSecurityManager.changeLock
(CmsRequestContext context, CmsResource resource) Changes the lock of a resource to the current user, that is "steals" the lock from another user.CmsDriverManager.changeResourcesInFolderWithProperty
(CmsDbContext dbc, CmsResource resource, String propertyDefinition, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.CmsSecurityManager.changeResourcesInFolderWithProperty
(CmsRequestContext context, CmsResource resource, String propertyDefinition, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.protected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.CmsPermissionCheckResult permissions) Applies the permission check result of a previous call toCmsSecurityManager.hasPermissions(CmsRequestContext, CmsResource, CmsPermissionSet, boolean, CmsResourceFilter)
.void
CmsSecurityManager.checkRoleForResource
(CmsDbContext dbc, CmsRole role, CmsResource resource) Checks if the user of the current database context has permissions to impersonate the given role for the given resource.void
CmsSecurityManager.checkRoleForResource
(CmsRequestContext context, CmsRole role, CmsResource resource) Checks if the user of the current context has permissions to impersonate the given role for the given resource.protected void
CmsSecurityManager.checkSystemLocks
(CmsDbContext dbc, CmsResource resource) Checks if the given resource contains a resource that has a system lock.void
CmsDriverManager.chflags
(CmsDbContext dbc, CmsResource resource, int flags) Changes the resource flags of a resource.void
CmsSecurityManager.chflags
(CmsRequestContext context, CmsResource resource, int flags) Changes the resource flags of a resource.void
CmsDriverManager.chtype
(CmsDbContext dbc, CmsResource resource, int type) Changes the resource type of a resource.void
CmsSecurityManager.chtype
(CmsRequestContext context, CmsResource resource, int type) Changes the resource type of a resource.protected boolean
CmsPublishList.containsResource
(CmsResource res) Checks if the publish list contains a resource.protected boolean
CmsPublishList.containsSubResources
(CmsObject cms, CmsResource folder) Checks if the publish list contains all sub-resources of a given folder.protected CmsFolder
CmsDriverManager.convertResourceToFolder
(CmsResource resource) Converts a resource to a folder (if possible).void
CmsDriverManager.copyAccessControlEntries
(CmsDbContext dbc, CmsResource source, CmsResource destination, boolean updateLastModifiedInfo) Copies the access control entries of a given resource to a destination resource.void
CmsSecurityManager.copyAccessControlEntries
(CmsRequestContext context, CmsResource source, CmsResource destination) Copies the access control entries of a given resource to a destination resource.void
CmsDriverManager.copyResource
(CmsDbContext dbc, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.void
CmsSecurityManager.copyResource
(CmsRequestContext context, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.void
CmsDriverManager.copyResourceToProject
(CmsDbContext dbc, CmsResource resource) Copies a resource to the current project of the user.void
CmsSecurityManager.copyResourceToProject
(CmsRequestContext context, CmsResource resource) Copies a resource to the current project of the user.CmsDriverManager.createOrganizationalUnit
(CmsDbContext dbc, String ouFqn, String description, int flags, CmsResource resource) Creates a new organizational unit.CmsSecurityManager.createOrganizationalUnit
(CmsRequestContext context, String ouFqn, String description, int flags, CmsResource resource) Creates a new organizational unit.CmsDriverManager.createResource
(CmsDbContext dbc, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.CmsSecurityManager.createResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties) Creates a new resource with the provided content and properties.I_CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) Creates a new resource from a givenCmsResource
object.CmsDriverManager.createSibling
(CmsDbContext dbc, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.CmsSecurityManager.createSibling
(CmsRequestContext context, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.void
I_CmsVfsDriver.createSibling
(CmsDbContext dbc, CmsProject project, CmsResource resource) Creates a new sibling for a specified resource.void
I_CmsVfsDriver.deletePropertyObjects
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int deleteOption) Deletes all property values of a file or folder.void
I_CmsVfsDriver.deleteRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Deletes all relations with the given filter for the given resource.void
CmsDriverManager.deleteRelationsForResource
(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) Deletes all relations for the given resource matching the given filter.void
CmsSecurityManager.deleteRelationsForResource
(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) Deletes all relations for the given resource matching the given filter.protected void
CmsDriverManager.deleteRelationsWithSiblings
(CmsDbContext dbc, CmsResource resource) Deletes all relations for the given resource and all its siblings.void
CmsDriverManager.deleteResource
(CmsDbContext dbc, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource.protected void
CmsSecurityManager.deleteResource
(CmsDbContext dbc, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Internal recursive method for deleting a resource.void
CmsSecurityManager.deleteResource
(CmsRequestContext context, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource given its name.CmsDriverManager.getAccessControlEntries
(CmsDbContext dbc, CmsResource resource, boolean getInherited) Returns the list of access control entries of a resource given its name.CmsSecurityManager.getAccessControlEntries
(CmsRequestContext context, CmsResource resource, boolean getInherited) Returns the list of access control entries of a resource given its name.CmsDriverManager.getAccessControlList
(CmsDbContext dbc, CmsResource resource) Returns the full access control list of a given resource.CmsDriverManager.getAccessControlList
(CmsDbContext dbc, CmsResource resource, boolean inheritedOnly) Returns the access control list of a given resource.CmsSecurityManager.getAccessControlList
(CmsRequestContext context, CmsResource resource, boolean inheritedOnly) Returns the access control list (summarized access control entries) of a given resource.CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) I_CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) Returns the cache key for the permission cache.long
CmsDriverManager.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.long
CmsSecurityManager.getDateLastVisitedBy
(CmsRequestContext context, String poolName, CmsUser user, CmsResource resource) 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.long
I_CmsSubscriptionDriver.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.CmsDriverManager.getLock
(CmsDbContext dbc, CmsResource resource) Returns the lock state of a resource.CmsSecurityManager.getLock
(CmsRequestContext context, CmsResource resource) Returns the lock state of a resource.CmsDriverManager.getLockedResources
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsSecurityManager.getLockedResources
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsDriverManager.getLockedResourcesObjects
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsSecurityManager.getLockedResourcesObjects
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsDriverManager.getLockedResourcesObjectsWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsSecurityManager.getLockedResourcesObjectsWithCache
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsDriverManager.getPermissions
(CmsDbContext dbc, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsSecurityManager.getPermissions
(CmsRequestContext context, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsDriverManager.getRelationsForResource
(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsSecurityManager.getRelationsForResource
(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsDriverManager.getResourceOrgUnits
(CmsDbContext dbc, CmsResource resource) Returns the list of organizational units the given resource belongs to.I_CmsVfsDriver.getResourceOus
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns all organizational units for the given resource.CmsDriverManager.getRolesForResource
(CmsDbContext dbc, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsSecurityManager.getRolesForResource
(CmsRequestContext context, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsSecurityManager.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.boolean
CmsSecurityManager.hasRoleForResource
(CmsDbContext dbc, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.boolean
CmsSecurityManager.hasRoleForResource
(CmsRequestContext context, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.void
CmsDriverManager.importAccessControlEntries
(CmsDbContext dbc, CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a vector of access control entries as new access control entries of a given resource.void
CmsSecurityManager.importAccessControlEntries
(CmsRequestContext context, CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a list of access control entries as new access control entries of a given resource.CmsSecurityManager.importResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.CmsUserTrackingResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) boolean
CmsDriverManager.labelResource
(CmsDbContext dbc, CmsResource resource, String newResource, int action) Checks if one of the resources (except the resource itself) is a sibling in a "labeled" site folder.CmsDriverManager.lockedBy
(CmsDbContext dbc, CmsResource resource) Returns the user, who had locked the resource.void
CmsDriverManager.lockResource
(CmsDbContext dbc, CmsResource resource, CmsLockType type) Locks a resource.void
CmsSecurityManager.lockResource
(CmsRequestContext context, CmsResource resource, CmsLockType type) Locks a resource.void
CmsDriverManager.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
CmsSecurityManager.markResourceAsVisitedBy
(CmsRequestContext context, String poolName, CmsResource resource, 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.void
I_CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
CmsDriverManager.moveResource
(CmsDbContext dbc, CmsResource source, String destination, boolean internal) Moves a resource.protected void
CmsSecurityManager.moveResource
(CmsDbContext dbc, CmsResource source, String destination, Set<CmsResource> allMovedResources) Internal recursive method to move a resource.void
CmsSecurityManager.moveResource
(CmsRequestContext context, CmsResource source, String destination) Moves a resource.void
I_CmsVfsDriver.moveResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource source, String destinationPath) Moves the given resource to the specified destination path.CmsDriverManager.moveToLostAndFound
(CmsDbContext dbc, CmsResource resource, boolean returnNameOnly) Moves a resource to the "lost and found" folder.CmsSecurityManager.moveToLostAndFound
(CmsRequestContext context, CmsResource resource, boolean returnNameOnly) Moves a resource to the "lost and found" folder.void
I_CmsProjectDriver.publishFile
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) Publishes a new, changed or deleted file.I_CmsProjectDriver.publishFileContent
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsResource offlineFileHeader, Set<CmsUUID> publishedResourceIds, boolean needToUpdateContent, int publishTag) Publishes the content record of a file.void
I_CmsVfsDriver.publishResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource onlineResource, CmsResource offlineResource) Publishes the structure and resource records of an offline resource into it's online counterpart.void
CmsDriverManager.publishUrlNameMapping
(CmsDbContext dbc, CmsResource res) Transfers the new URL name mappings (if any) for a given resource to the online project.void
I_CmsVfsDriver.publishVersions
(CmsDbContext dbc, CmsResource resource, boolean firstSibling) Copies the version number from the offline resource to the online resource, this has to be done during publishing, direct after copying the resource itself.CmsDriverManager.readAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsUUID principal) Reads an access control entry from the cms.CmsDriverManager.readAllAvailableVersions
(CmsDbContext dbc, CmsResource resource) Reads all versions of the given resource.
This method returns a list with the history of the given resource, i.e.CmsSecurityManager.readAllAvailableVersions
(CmsRequestContext context, CmsResource resource) Reads all historical versions of a resource.CmsSecurityManager.readAncestor
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter) Returns the first ancestor folder matching the filter criteria.CmsDriverManager.readChildResources
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles, boolean checkPermissions) Returns the child resources of a resource, that is the resources contained in a folder.CmsSecurityManager.readChildResources
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles) Returns the child resources of a resource, that is the resources contained in a folder.I_CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) Reads all child-files and/or child-folders of a specified parent resource.CmsDriverManager.readDefaultFile
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsSecurityManager.readDefaultFile
(CmsRequestContext context, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsDriverManager.readDeletedResources
(CmsDbContext dbc, CmsResource resource, boolean readTree, boolean isVfsManager) Reads all deleted (historical) resources below the given path, including the full tree below the path, if required.CmsSecurityManager.readDeletedResources
(CmsRequestContext context, CmsResource resource, boolean readTree) Reads all deleted (historical) resources below the given path, including the full tree below the path, if required.CmsDriverManager.readFile
(CmsDbContext dbc, CmsResource resource) Reads a file resource (including it's binary content) from the VFS, using the specified resource filter.CmsSecurityManager.readFile
(CmsRequestContext context, CmsResource resource) Reads a file resource (including it's binary content) from the VFS.CmsDriverManager.readPropertyObject
(CmsDbContext dbc, CmsResource resource, String key, boolean search) Reads a property object from a resource specified by a property name.CmsDriverManager.readPropertyObject
(CmsDbContext dbc, CmsResource resource, String key, boolean search, Locale locale) Reads a property object from a resource specified by a property name.CmsSecurityManager.readPropertyObject
(CmsRequestContext context, CmsResource resource, String key, boolean search) Reads a property object from a resource specified by a property name.CmsSecurityManager.readPropertyObject
(CmsRequestContext context, CmsResource resource, String key, boolean search, Locale locale) Reads a property object from a resource specified by a property name.I_CmsVfsDriver.readPropertyObject
(CmsDbContext dbc, String key, CmsProject project, CmsResource resource) Reads a property object from the database specified by it's key name mapped to a resource.CmsDriverManager.readPropertyObjects
(CmsDbContext dbc, CmsResource resource, boolean search) Reads all property objects mapped to a specified resource from the database.CmsSecurityManager.readPropertyObjects
(CmsRequestContext context, CmsResource resource, boolean search) Reads all property objects from a resource.I_CmsVfsDriver.readPropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource) Reads all property objects mapped to a specified resource from the database.I_CmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Reads all relations with the given filter for the given resource.CmsDriverManager.readResource
(CmsDbContext dbc, CmsResource resource, int version) Reads an historical resource entry for the given resource and with the given version number.CmsSecurityManager.readResource
(CmsRequestContext context, CmsResource resource, int version) Reads the historical resource entry for the given resource with the given version number.CmsDriverManager.readResources
(CmsDbContext dbc, CmsResource parent, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsSecurityManager.readResources
(CmsRequestContext context, CmsResource parent, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsDriverManager.readResourcesWithProperty
(CmsDbContext dbc, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the given value string) set for the specified property (definition) in the given path.CmsSecurityManager.readResourcesWithProperty
(CmsRequestContext context, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the specified value) set for the specified property (definition) in the given path.CmsDriverManager.readResponsiblePrincipals
(CmsDbContext dbc, CmsResource resource) Returns the set of users that are responsible for a specific resource.CmsSecurityManager.readResponsiblePrincipals
(CmsRequestContext context, CmsResource resource) Returns a set of users that are responsible for a specific resource.CmsDriverManager.readResponsibleUsers
(CmsDbContext dbc, CmsResource resource) Returns the set of users that are responsible for a specific resource.CmsSecurityManager.readResponsibleUsers
(CmsRequestContext context, CmsResource resource) Returns a set of users that are responsible for a specific resource.CmsDriverManager.readSiblings
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.CmsSecurityManager.readSiblings
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.I_CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) Reads all siblings that point to the resource record of a specified resource.CmsDriverManager.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.CmsSecurityManager.readSubscribedDeletedResources
(CmsRequestContext context, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.I_CmsSubscriptionDriver.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.protected boolean
CmsPublishList.remove
(CmsResource resource) Removes a Cms resource from the publish list.void
CmsDriverManager.removeAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsUUID principal) Removes an access control entry for a given resource and principal.void
CmsSecurityManager.removeAccessControlEntry
(CmsRequestContext context, CmsResource resource, CmsUUID principal) Removes an access control entry for a given resource and principal.void
I_CmsVfsDriver.removeFile
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Removes a file physically in the database.void
I_CmsVfsDriver.removeFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) Removes a folder physically in the database.void
I_CmsUserDriver.removeResourceFromOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsDriverManager.removeResourceFromOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsSecurityManager.removeResourceFromOrgUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsDriverManager.removeResourceFromProject
(CmsDbContext dbc, CmsResource resource) Removes a resource from the current project of the user.void
CmsSecurityManager.removeResourceFromProject
(CmsRequestContext context, CmsResource resource) Removes a resource from the current project of the user.void
CmsDriverManager.repairCategories
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Repairs broken categories.void
CmsDriverManager.replaceResource
(CmsDbContext dbc, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) Replaces the content, type and properties of a resource.void
CmsSecurityManager.replaceResource
(CmsRequestContext context, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) Replaces the content, type and properties of a resource.void
I_CmsVfsDriver.replaceResource
(CmsDbContext dbc, CmsResource newResource, byte[] newResourceContent, int newResourceType) Replaces the content and properties of an existing resource.CmsSecurityManager.resourceOriginalPath
(CmsRequestContext context, CmsResource resource) Returns the original path of given resource, that is the online path for the resource.void
CmsDriverManager.restoreResource
(CmsDbContext dbc, CmsResource resource, int version) Restores a resource in the current project with a version from the historical archive.void
CmsSecurityManager.restoreResource
(CmsRequestContext context, CmsResource resource, int version) Restores a resource in the current project with the given version from the historical archive.void
CmsSecurityManager.saveAliases
(CmsRequestContext context, CmsResource resource, List<CmsAlias> aliases) Saves the aliases for a given resource.void
CmsDriverManager.setDateExpired
(CmsDbContext dbc, CmsResource resource, long dateExpired) Changes the "expire" date of a resource.void
CmsSecurityManager.setDateExpired
(CmsRequestContext context, CmsResource resource, long dateExpired) Changes the "expire" date of a resource.void
CmsDriverManager.setDateLastModified
(CmsDbContext dbc, CmsResource resource, long dateLastModified) Changes the "last modified" timestamp of a resource.void
CmsSecurityManager.setDateLastModified
(CmsRequestContext context, CmsResource resource, long dateLastModified) Changes the "last modified" time stamp of a resource.void
CmsDriverManager.setDateReleased
(CmsDbContext dbc, CmsResource resource, long dateReleased) Changes the "release" date of a resource.void
CmsSecurityManager.setDateReleased
(CmsRequestContext context, CmsResource resource, long dateReleased) Changes the "release" date of a resource.void
CmsVisitedByFilter.setParentResource
(CmsResource parentResource) Sets the parent path to read visited resources from using the given resource as parent.void
CmsSecurityManager.setRestricted
(CmsRequestContext context, CmsResource resource, CmsGroup group, boolean restricted) Sets/clears the 'restricted' status for the given resource and group.void
CmsDriverManager.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
CmsSecurityManager.setSubscribedResourceAsDeleted
(CmsRequestContext context, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
CmsSubscriptionManager.setSubscribedResourceAsDeleted
(CmsObject cms, CmsResource resource) Marks a subscribed resource as deleted.void
I_CmsSubscriptionDriver.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
CmsDriverManager.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
CmsSecurityManager.subscribeResourceFor
(CmsRequestContext context, String poolName, CmsPrincipal principal, CmsResource resource) 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
I_CmsSubscriptionDriver.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
I_CmsVfsDriver.transferResource
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsUUID createdUser, CmsUUID lastModifiedUser) Transfers the attributes of a resource from to the given users.void
CmsDriverManager.undelete
(CmsDbContext dbc, CmsResource resource) Undelete the resource.void
CmsSecurityManager.undelete
(CmsRequestContext context, CmsResource resource) Undelete the resource by resetting it's state.void
CmsDriverManager.undoChanges
(CmsDbContext dbc, 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
CmsSecurityManager.undoChanges
(CmsRequestContext context, 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
CmsDriverManager.unlockResource
(CmsDbContext dbc, CmsResource resource, boolean force, boolean removeSystemLock) Unlocks a resource.void
CmsSecurityManager.unlockResource
(CmsRequestContext context, CmsResource resource) Unlocks a resource.void
CmsDriverManager.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsSecurityManager.unsubscribeResourceFor
(CmsRequestContext context, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsSubscriptionManager.unsubscribeResourceFor
(CmsObject cms, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
I_CmsSubscriptionDriver.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsDriverManager.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
CmsSecurityManager.unsubscribeResourceForAll
(CmsRequestContext context, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
CmsSubscriptionManager.unsubscribeResourceForAll
(CmsObject cms, CmsResource resource) Unsubscribes all groups and users from the resource.void
I_CmsSubscriptionDriver.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
I_CmsVfsDriver.updateRelations
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource) Updates the relations on the online project copying the relations from the offline project.void
CmsDriverManager.updateRelationsForResource
(CmsDbContext dbc, CmsResource resource, List<CmsLink> links, boolean updateSiblingState) Updates/Creates the given relations for the given resource.void
CmsSecurityManager.updateRelationsForResource
(CmsRequestContext context, CmsResource resource, List<CmsLink> relations, boolean updateSiblingState) Updates/Creates the relations for the given resource.void
CmsDriverManager.writeAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsAccessControlEntry ace) Writes an access control entries to a given resource.void
CmsSecurityManager.writeAccessControlEntry
(CmsRequestContext context, CmsResource resource, CmsAccessControlEntry ace) Writes an access control entries to a given resource.void
I_CmsVfsDriver.writeLastModifiedProjectId
(CmsDbContext dbc, CmsProject project, CmsUUID projectId, CmsResource resource) Writes the "last-modified-in-project" ID of a resource.void
CmsDriverManager.writeProjectLastModified
(CmsDbContext dbc, CmsResource resource, CmsUUID projectId) Writes a new project into the PROJECT_LASTMODIFIED field of a resource record.void
I_CmsHistoryDriver.writeProperties
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) Writes the properties of a resource to the history.void
CmsDriverManager.writePropertyObject
(CmsDbContext dbc, CmsResource resource, CmsProperty property) Writes a property for a specified resource.void
CmsSecurityManager.writePropertyObject
(CmsRequestContext context, CmsResource resource, CmsProperty property) Writes a property for a specified resource.void
I_CmsVfsDriver.writePropertyObject
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsProperty property) Writes a property object to the database mapped to a specified resource.void
CmsDriverManager.writePropertyObjects
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, boolean updateState) Writes a list of properties for a specified resource.void
CmsSecurityManager.writePropertyObjects
(CmsRequestContext context, CmsResource resource, List<CmsProperty> properties) Writes a list of properties for a specified resource.void
I_CmsVfsDriver.writePropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource, List<CmsProperty> properties) Writes a list of property objects to the database mapped to a specified resource.void
CmsDriverManager.writeResource
(CmsDbContext dbc, CmsResource resource) Writes a resource to the OpenCms VFS.void
CmsSecurityManager.writeResource
(CmsRequestContext context, CmsResource resource) Writes a resource to the OpenCms VFS.void
I_CmsHistoryDriver.writeResource
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) Writes a resource to the history.void
I_CmsVfsDriver.writeResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int changed) Writes the structure and/or resource record(s) of an existing file.void
CmsSecurityManager.writeResourceProjectLastModified
(CmsRequestContext context, CmsResource resource, CmsProject project) Writes the 'projectlastmodified' field of a resource record.void
I_CmsVfsDriver.writeResourceState
(CmsDbContext dbc, CmsProject project, CmsResource resource, int changed, boolean isPublishing) Writes file state in either the structure or resource record, or both of them.Modifier and TypeMethodDescriptionprotected void
CmsPublishList.addAll
(Collection<CmsResource> resources, boolean check) Appends all the given resources to this publish list.protected CmsResource
CmsPublishList.checkContainsSubResources
(CmsObject cms, List<CmsResource> folders) Checks whether the publish list contains all sub-resources of a list of folders.CmsDriverManager.getLockedResourcesObjectsWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsSecurityManager.getLockedResourcesObjectsWithCache
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.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.getTopFolders
(List<CmsResource> folders) Gives the "roots" of a list of folders, i.e.protected void
CmsSecurityManager.moveResource
(CmsDbContext dbc, CmsResource source, String destination, Set<CmsResource> allMovedResources) Internal recursive method to move a resource.protected void
CmsDriverManager.resetResourcesInProject
(CmsDbContext dbc, CmsUUID projectId, List<CmsResource> modifiedFiles, List<CmsResource> modifiedFolders) Resets the resources in a project to their online state.ModifierConstructorDescriptionCmsPublishedResource
(CmsResource resource) Creates an object for published VFS resources.CmsPublishedResource
(CmsResource resource, int publishTag) Creates an object for published VFS resources.CmsPublishedResource
(CmsResource resource, int publishTag, CmsResourceState state) Creates an object for published VFS resources.CmsPublishList
(CmsResource directPublishResource, boolean publishSiblings) Constructs a publish list for a single direct publish resource.ModifierConstructorDescriptionCmsPublishList
(boolean all, List<CmsResource> directPublishResources, boolean directPublishSiblings) Constructs a publish list for a list of direct publish resources.CmsPublishList
(List<CmsResource> directPublishResources, boolean publishSiblings) Constructs a publish list for a list of direct publish resources.CmsPublishList
(List<CmsResource> directPublishResources, boolean publishSiblings, boolean publishSubResources) Constructs a publish list for a list of direct publish resources. -
Uses of CmsResource in org.opencms.db.generic
Modifier and TypeMethodDescriptionCmsVfsDriver.createResource
(ResultSet res, CmsUUID projectId) CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) protected CmsResource
CmsUserDriver.internalCreateResourceForOrgUnit
(CmsDbContext dbc, String path, int flags) Creates a folder with the given path an properties, offline AND online.protected CmsResource
CmsUserDriver.internalOrgUnitFolder
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns the folder for the given organizational units, or the base folder ifnull
.CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, String path, boolean includeDeleted) CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, boolean includeDeleted) Modifier and TypeMethodDescriptionCmsUserDriver.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) CmsProjectDriver.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) protected List<CmsResource>
CmsProjectDriver.getUsersPubListFromLog
(CmsDbContext dbc, CmsUUID userId) Implementation of reading the user publish list which uses the log table.CmsSubscriptionDriver.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) CmsVfsDriver.readResources
(CmsDbContext dbc, CmsUUID projectId, CmsResourceState state, int mode) CmsVfsDriver.readResourcesForPrincipalACE
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) CmsVfsDriver.readResourcesForPrincipalAttr
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) CmsSubscriptionDriver.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) CmsVfsDriver.readResourcesWithProperty
(CmsDbContext dbc, CmsUUID projectId, CmsUUID propertyDef, String path, String value) CmsVfsDriver.readResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parentPath, int type, CmsResourceState state, long lastModifiedAfter, long lastModifiedBefore, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) CmsSubscriptionDriver.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) protected List<CmsResource>
CmsVfsDriver.readTypesInResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parentPath, List<Integer> types, CmsResourceState state, long lastModifiedAfter, long lastModifiedBefore, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) Reads all resources inside a given project matching the criteria specified by parameter values.Modifier and TypeMethodDescriptionvoid
CmsUserDriver.addResourceToOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) protected void
CmsVfsDriver.checkWritePermissionsInFolder
(CmsDbContext dbc, CmsResource folder) Checks that the current user has write permissions for all subresources of the given folder.CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) void
CmsVfsDriver.createSibling
(CmsDbContext dbc, CmsProject project, CmsResource resource) void
CmsVfsDriver.deletePropertyObjects
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int deleteOption) void
CmsVfsDriver.deleteRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) protected CmsResourceState
CmsProjectDriver.fixMovedResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, CmsUUID publishHistoryId, int publishTag) Checks if the given resource (by id) is available in the online project, if there exists a resource with a different path (a moved file), then the online entry is moved to the right (new) location before publishing.long
CmsSubscriptionDriver.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) CmsVfsDriver.getResourceOus
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns all organizational units for the given resource.protected CmsOrganizationalUnit
CmsUserDriver.internalCreateOrgUnitFromResource
(CmsDbContext dbc, CmsResource resource) Returns the organizational unit represented by the given resource.protected void
CmsUserDriver.internalDeleteOrgUnitResource
(CmsDbContext dbc, CmsResource resource) Deletes a resource representing a organizational unit, offline AND online.protected CmsResourceState
CmsVfsDriver.internalReadResourceState
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns the resource state of the given resource.protected CmsResourceState
CmsVfsDriver.internalReadStructureState
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns the structure state of the given resource.protected void
CmsVfsDriver.internalRemoveFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) Removes a resource physically in the database.protected void
CmsProjectDriver.internalResetResourceState
(CmsDbContext dbc, CmsResource resource) Resets the state to UNCHANGED for a specified resource.CmsUserDriver.internalResourcesForOrgUnit
(CmsDbContext dbc, CmsResource ouResource) Returns the list of root paths associated to the organizational unit represented by the given resource.protected void
CmsVfsDriver.internalUpdateVersions
(CmsDbContext dbc, CmsResource resource) Updates the offline version numbers.protected boolean
CmsHistoryDriver.internalValidateResource
(CmsDbContext dbc, CmsResource resource, int publishTag) Tests if a history resource does exist.protected void
CmsVfsDriver.internalValidateResourceLength
(CmsResource resource) Validates that the length setting of a resource is always correct.protected void
CmsProjectDriver.internalWriteHistory
(CmsDbContext dbc, CmsResource resource, CmsResourceState state, List<CmsProperty> properties, CmsUUID publishHistoryId, int publishTag) Writes the needed history entries.protected void
CmsUserDriver.internalWriteOrgUnitProperty
(CmsDbContext dbc, CmsResource resource, CmsProperty property) Writes a property for an organizational unit resource, online AND offline.void
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) void
CmsVfsDriver.moveResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource source, String destinationPath) protected String
CmsVfsDriver.prepareRelationConditions
(CmsUUID projectId, CmsRelationFilter filter, CmsResource resource, List<Object> params, boolean checkSource) Build the whole WHERE sql statement part for the given relation filter.protected void
CmsProjectDriver.publishChangedFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedResourceIds, CmsUUID publishHistoryId, int publishTag) Publishes a changed file.protected void
CmsProjectDriver.publishDeletedFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, CmsUUID publishHistoryId, int publishTag) Publishes a deleted file.void
CmsProjectDriver.publishFile
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) CmsProjectDriver.publishFileContent
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedResourceIds, boolean needToUpdateContent, int publishTag) protected void
CmsProjectDriver.publishNewFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) Publishes a new file.void
CmsVfsDriver.publishResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource onlineResource, CmsResource offlineResource) void
CmsVfsDriver.publishVersions
(CmsDbContext dbc, CmsResource resource, boolean firstSibling) CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) CmsVfsDriver.readPropertyObject
(CmsDbContext dbc, String key, CmsProject project, CmsResource resource) CmsVfsDriver.readPropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource) CmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) CmsSubscriptionDriver.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) void
CmsVfsDriver.removeFile
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) void
CmsVfsDriver.removeFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) void
CmsUserDriver.removeResourceFromOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) void
CmsVfsDriver.replaceResource
(CmsDbContext dbc, CmsResource newResource, byte[] resContent, int newResourceType) void
CmsSubscriptionDriver.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) void
CmsSubscriptionDriver.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) void
CmsVfsDriver.transferResource
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsUUID createdUser, CmsUUID lastModifiedUser) void
CmsSubscriptionDriver.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) void
CmsSubscriptionDriver.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) void
CmsVfsDriver.updateRelations
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource) void
CmsVfsDriver.writeLastModifiedProjectId
(CmsDbContext dbc, CmsProject project, CmsUUID projectId, CmsResource resource) void
CmsHistoryDriver.writeProperties
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) void
CmsVfsDriver.writePropertyObject
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsProperty property) void
CmsVfsDriver.writePropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource, List<CmsProperty> properties) void
CmsHistoryDriver.writeResource
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) void
CmsVfsDriver.writeResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int changed) void
CmsVfsDriver.writeResourceState
(CmsDbContext dbc, CmsProject project, CmsResource resource, int changed, boolean isPublishing) -
Uses of CmsResource in org.opencms.db.mysql
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) -
Uses of CmsResource in org.opencms.db.oracle
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) -
Uses of CmsResource in org.opencms.file
Modifier and TypeClassDescriptionclass
A file resource in the OpenCms VFS.class
A folder resource in the OpenCms VFS.Modifier and TypeFieldDescriptionprotected Map<CmsUUID,
CmsResource> CmsLinkRewriter.m_translationsById
A map from source folder structure ids to corresponding target folder resources.protected Map<String,
CmsResource> CmsLinkRewriter.m_translationsByPath
A map from source folder root paths to the corresponding target folder resources.Modifier and TypeMethodDescriptionCmsResourceBuilder.buildResource()
Builds the resource.CmsObject.createResource
(String resourcename, int type) Deprecated.CmsObject.createResource
(String resourcename, int type, byte[] content, List<CmsProperty> properties) Deprecated.CmsObject.createResource
(String sitePath, CmsResource resource, byte[] content, List<CmsProperty> properties) Creates a resource with the given properties and content.CmsObject.createResource
(String resourcename, I_CmsResourceType type) Creates a new resource of the given resource type with empty content and no properties.CmsObject.createResource
(String resourcename, I_CmsResourceType type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.CmsObject.createSibling
(String source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.CmsResource.getCopy()
Creates a copy of this resource.CmsRequestContext.getDetailResource()
Gets the detail content resource (or null if no detail content has been loaded).protected CmsResource
CmsLinkRewriter.getResource
(CmsUUID structureId) Accesses a resource by structure id.CmsObject.importResource
(String resourcename, CmsResource resource, byte[] content, List<CmsProperty> properties) Imports a resource to the OpenCms VFS.CmsObject.importResource
(String resourcename, I_CmsReport report, CmsResource resource, byte[] content, List<CmsProperty> properties) Imports a resource to the OpenCms VFS.CmsObject.readDefaultFile
(String resourceNameOrID) Returns the default resource for the given folder.CmsObject.readDefaultFile
(String resourceNameOrID, CmsResourceFilter filter) Returns the default resource for the given folder.CmsObject.readDefaultFile
(CmsResource folderResource, CmsResourceFilter resourceFilter) Returns the default resource for the given folder.CmsObject.readParentFolder
(CmsUUID structureId) Returns the parent folder to the given structure id.CmsObject.readResource
(String resourcename) Reads a resource from the VFS, using the
filter.CmsResourceFilter.DEFAULT
CmsObject.readResource
(String resourcename, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsObject.readResource
(CmsUUID structureID) Reads a resource from the VFS, using the
filter.CmsResourceFilter.DEFAULT
CmsObject.readResource
(CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.Modifier and TypeMethodDescriptionCmsObject.changeResourcesInFolderWithProperty
(String resourcename, String property, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.CmsObject.getBlockingLockedResources
(String resourceName) Returns a list of child resources to the given resource that can not be locked by the current user.CmsObject.getBlockingLockedResources
(CmsResource resource) Returns a list of child resources to the given resource that can not be locked by the current user.CmsObject.getFilesInFolder
(String resourcename) Returns all file resources contained in a folder.CmsObject.getFilesInFolder
(String resourcename, CmsResourceFilter filter) Returns all file resources contained in a folder.CmsObject.getLockedResources
(CmsResource resource, CmsLockFilter filter) Returns all locked resources within a folder or matches the lock of the given resource.CmsObject.getLockedResourcesWithCache
(CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources within a folder or matches the lock of the given resource, but uses a cache for resource lookup.protected List<CmsPair<CmsResource,
CmsResource>> CmsLinkRewriter.getMatchingResources
(String source, String target) Gets a list of resource pairs whose paths relative to the source/target roots passed match.protected List<CmsPair<CmsResource,
CmsResource>> CmsLinkRewriter.getMatchingResources
(String source, String target) Gets a list of resource pairs whose paths relative to the source/target roots passed match.protected Map<String,
CmsResource> CmsLinkRewriter.getResourcesByRelativePath
(List<CmsResource> resources, String basePath) Collects a list of resources in a map where the key for each resource is the path relative to a given folder.CmsObject.getResourcesForPrincipal
(CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsObject.getResourcesInFolder
(String resourcename, CmsResourceFilter filter) Returns all child resources of a resource, that is the resources contained in a folder.CmsObject.getSubFolders
(String resourcename) Returns all folder resources contained in a folder.CmsObject.getSubFolders
(String resourcename, CmsResourceFilter filter) Returns all folder resources contained in a folder.CmsObject.readPath
(String path, CmsResourceFilter filter) Builds a list of resources for a given path.CmsObject.readPath
(CmsResource resource, CmsResourceFilter filter) Builds a list of resources for a given path.CmsObject.readProjectView
(CmsUUID projectId, CmsResourceState state) Reads all resources of a project that match a given state from the VFS.CmsObject.readResources
(String resourcename, CmsResourceFilter filter) Reads all resources below the given path matching the filter criteria, including the full tree below the path.CmsObject.readResources
(String resourcename, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsObject.readResources
(CmsResource resource, CmsResourceFilter filter, boolean readTree) Reads all resources below the given resource matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsObject.readResourcesWithProperty
(String propertyDefinition) Reads all resources that have a value set for the specified property.CmsObject.readResourcesWithProperty
(String path, String propertyDefinition) Reads all resources that have a value set for the specified property in the given path.CmsObject.readResourcesWithProperty
(String path, String propertyDefinition, String value) Reads all resources that have a value (containing the specified value) set for the specified property in the given path.CmsObject.readResourcesWithProperty
(String path, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the specified value) set for the specified property in the given path.CmsObject.readSiblings
(String resourcename, CmsResourceFilter filter) Returns a list of all siblings of the specified resource, the specified resource being always part of the result set.CmsObject.readSiblings
(CmsResource resource, CmsResourceFilter filter) Returns a list of all siblings of the specified resource, the specified resource being always part of the result set.CmsObject.readSiblingsForResourceId
(CmsUUID resourceId, CmsResourceFilter filter) Reads all resources with the given resource id.protected List<CmsResource>
Reads the resources in a subtree.Modifier and TypeMethodDescriptionvoid
CmsObject.addRelationToResource
(CmsResource resource, CmsResource target, String type) Adds a new relation to the given resource.void
CmsObject.changeLock
(CmsResource resource) Changes the lock of a resource to the current user, that is "steals" the lock from another user.protected static void
CmsLinkRewriter.checkIsFolder
(CmsResource resource) Checks whether a given resource is a folder and throws an exception otherwise.void
CmsObject.chtype
(CmsResource resource, I_CmsResourceType type) Changes the resource type of a resource.void
CmsObject.copyResourceToProject
(CmsResource resource) Copies a resource to the current project of the user.CmsObject.createResource
(String sitePath, CmsResource resource, byte[] content, List<CmsProperty> properties) Creates a resource with the given properties and content.void
CmsObject.deleteRelationsFromResource
(CmsResource resource, CmsRelationFilter filter) Deletes the relations to a given resource.void
CmsObject.deleteResource
(CmsResource res, CmsResource.CmsResourceDeleteMode deletePreserveSiblings) Deletes a resource.CmsObject.getBlockingLockedResources
(CmsResource resource) Returns a list of child resources to the given resource that can not be locked by the current user.protected String
CmsLinkRewriter.getConfiguredEncoding
(CmsObject cms, CmsResource resource) Gets the encoding which is configured at the location of a given resource.CmsObject.getDetailName
(CmsResource res, Locale locale, List<Locale> defaultLocales) Returns the detail name of a resource.CmsObject.getLock
(CmsResource resource) Returns the edition lock state for a specified resource.CmsObject.getLockedResources
(CmsResource resource, CmsLockFilter filter) Returns all locked resources within a folder or matches the lock of the given resource.CmsObject.getLockedResourcesWithCache
(CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources within a folder or matches the lock of the given resource, but uses a cache for resource lookup.CmsObject.getRelationsForResource
(CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsObject.getSitePath
(CmsResource resource) Adjusts the absolute resource root path for the current site.CmsRequestContext.getSitePath
(CmsResource resource) Adjusts the absolute resource root path for the current site.boolean
CmsObject.hasPermissions
(CmsResource resource, CmsPermissionSet requiredPermissions) Checks if the current user has required permissions to access a given resource.boolean
CmsObject.hasPermissions
(CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Checks if the current user has required permissions to access a given resource.void
CmsObject.importAccessControlEntries
(CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a list of access control entries as new access control entries of a given resource.CmsObject.importResource
(String resourcename, CmsResource resource, byte[] content, List<CmsProperty> properties) Imports a resource to the OpenCms VFS.CmsObject.importResource
(String resourcename, I_CmsReport report, CmsResource resource, byte[] content, List<CmsProperty> properties) Imports a resource to the OpenCms VFS.protected static boolean
CmsLinkRewriter.isFolder
(CmsResource resource) Helper method to check whether a given resource is a folder.static boolean
CmsProject.isInsideProject
(List<String> projectResources, CmsResource resource) Checks if the full resource name (including the site root) of a resource matches any of the project resources of a project.boolean
CmsResourceFilter.isValid
(CmsRequestContext context, CmsResource resource) Validates if a CmsResource fits to all filer settings.void
CmsObject.lockResource
(CmsResource resource) Locks a resource.void
CmsObject.lockResourceShallow
(CmsResource resource) Locks the given resource with a shallow lock that is not inherited on subresources.void
CmsObject.lockResourceTemporary
(CmsResource resource) Locks a resource temporary.CmsObject.readAllAvailableVersions
(CmsResource resource) Reads all available versions for a given resource.CmsObject.readDefaultFile
(CmsResource folderResource, CmsResourceFilter resourceFilter) Returns the default resource for the given folder.CmsObject.readFile
(CmsResource resource) Reads a file resource (including it's binary content) from the VFS, for the given resource (this may also be an historical version of the resource).CmsObject.readPath
(CmsResource resource, CmsResourceFilter filter) Builds a list of resources for a given path.CmsObject.readPropertyObject
(CmsResource resource, String property, boolean search) Reads a property object from a resource specified by a property name.CmsObject.readPropertyObject
(CmsResource resource, String property, boolean search, Locale locale) Reads the locale specific version of a property object from a resource specified by a property name.CmsObject.readPropertyObjects
(CmsResource resource, boolean search) Reads all property objects from a resource.CmsObject.readResources
(CmsResource resource, CmsResourceFilter filter, boolean readTree) Reads all resources below the given resource matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsObject.readResponsiblePrincipals
(CmsResource resource) Returns a set of principals that are responsible for a specific resource.CmsObject.readResponsibleUsers
(CmsResource resource) Returns a set of users that are responsible for a specific resource.CmsObject.readSiblings
(CmsResource resource, CmsResourceFilter filter) Returns a list of all siblings of the specified resource, the specified resource being always part of the result set.protected void
CmsLinkRewriter.rewriteLinks
(CmsResource resource, Collection<CmsRelation> relations) Rewrites the links for a single resource.protected void
CmsLinkRewriter.rewriteOtherRelations
(CmsResource res, Collection<CmsRelation> relations) Rewrites relations which are not derived from links in the content itself.void
CmsObject.setDateExpired
(CmsResource resource, long dateExpired, boolean recursive) Changes the "expire" date of a resource.void
CmsObject.setDateReleased
(CmsResource resource, long dateReleased, boolean recursive) Changes the "release" date of a resource.void
CmsRequestContext.setDetailResource
(CmsResource detailResource) Sets the detail content resource.void
CmsObject.setRestricted
(CmsResource res, String groupName, boolean restricted) Sets/clears the 'restricted' status for the given resource and group.void
CmsObject.unlockResource
(CmsResource resource) Unlocks a resource.void
CmsObject.writeProjectLastModified
(CmsResource resource, CmsProject project) Writes the 'projectlastmodified' field of a resource record.void
CmsObject.writePropertyObjects
(CmsResource res, List<CmsProperty> properties) Writes a list of properties for a specified resource.void
CmsObject.writeResource
(CmsResource resource) Writes a resource.Modifier and TypeMethodDescriptionCmsObject.getLockedResourcesWithCache
(CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources within a folder or matches the lock of the given resource, but uses a cache for resource lookup.protected Map<String,
CmsResource> CmsLinkRewriter.getResourcesByRelativePath
(List<CmsResource> resources, String basePath) Collects a list of resources in a map where the key for each resource is the path relative to a given folder.ModifierConstructorDescriptionCmsFile
(CmsResource resource) Constructor, creates a new file Object from the given resource with an empty byte array as file content, if the resource does not implement a file.CmsFolder
(CmsResource resource) Constructor, creates a new CmsFolder Object from the given CmsResource. -
Uses of CmsResource in org.opencms.file.collectors
Modifier and TypeFieldDescriptionstatic final Comparator<CmsResource>
CmsCategoryResourceCollector.COMPARE_DATE_RELEASED_DESC
Compares the release date of resources in descending order.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.protected List<CmsResource>
CmsDefaultResourceCollector.getAllInFolder
(CmsObject cms, String param, boolean tree, int numResults) Returns all resources in the folder pointed to by the parameter.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 List<CmsResource>
CmsSubscriptionCollector.getVisitedResources
(CmsObject cms, String param, int numResults) Returns the visited resources according to the collector parameter.protected List<CmsResource>
A_CmsResourceCollector.shrinkToFit
(List<CmsResource> result, int maxSize) Shrinks a List to fit a maximum size.protected List<CmsResource>
A_CmsResourceCollector.shrinkToFit
(List<CmsResource> result, int maxSize, int explicitNumResults) Shrinks a List to fit a maximum size.Modifier and TypeMethodDescriptionstatic 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.int
CmsDateResourceComparator.compare
(CmsResource res0, CmsResource res1) int
CmsPriorityDateResourceComparator.compare
(CmsResource res0, CmsResource res1) int
CmsPriorityTitleResourceComparator.compare
(CmsResource res0, CmsResource res1) int
CmsPropertyResourceComparator.compare
(CmsResource res0, CmsResource res1) 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).Modifier and TypeMethodDescriptionprotected List<CmsResource>
A_CmsResourceCollector.shrinkToFit
(List<CmsResource> result, int maxSize) Shrinks a List to fit a maximum size.protected List<CmsResource>
A_CmsResourceCollector.shrinkToFit
(List<CmsResource> result, int maxSize, int explicitNumResults) Shrinks a List to fit a maximum size. -
Uses of CmsResource in org.opencms.file.history
Modifier and TypeClassDescriptionclass
A historical version of a file in the OpenCms VFS resource history.class
A historical version of a file in the OpenCms VFS resource history.Modifier and TypeMethodDescriptionstatic CmsResource
CmsHistoryResourceHandler.getResourceWithHistory
(CmsObject cms, String resourceUri) Returns the correct resource for the given URI, taken into account historical versions marked by theversion
parameter.CmsHistoryResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Modifier and TypeMethodDescriptionCmsHistoryResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) ModifierConstructorDescriptionCmsHistoryFile
(CmsResource resource) Creates a dummy historical file from the given resource. -
Uses of CmsResource in org.opencms.file.types
Modifier and TypeMethodDescriptionprotected 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.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.Modifier and TypeMethodDescriptionstatic List<CmsResource>
CmsResourceTypeXmlContent.getModelFiles
(CmsObject cms, String currentFolder, String newResourceTypeName) Returns the possible model files for the new resource.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.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.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.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 I_CmsResourceType
A_CmsResourceType.getResourceType
(CmsResource resource) Convenience method to get the initialized resource type instance for the given resource, with a fall back to special "unknown" resource types in case the resource type is not configured.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.static boolean
CmsResourceTypeXmlContainerPage.isContainerPage
(CmsResource resource) Returnstrue
in case the given resource is a container page.static boolean
CmsResourceTypeFunctionConfig.isFunction
(CmsResource res) Checks if a resource has this type.static boolean
CmsResourceTypeJsp.isJsp
(CmsResource resource) Returnstrue
in case the given resource is a JSP.static boolean
CmsResourceTypeXmlContainerPage.isModelCopyGroup
(CmsObject cms, CmsResource resource) Checks whether the given resource is a model reuse group.static boolean
CmsResourceTypeXmlContainerPage.isModelGroup
(CmsResource resource) Checks whether the given resource is a model group.static boolean
CmsResourceTypeHtmlRedirect.isRedirect
(CmsResource resource) Checks if the given resource is a htmlredirect.static boolean
CmsResourceTypeFolderSubSitemap.isSubSitemap
(CmsResource resource) Returnstrue
in case the given resource is a sub site map.static boolean
CmsResourceTypeXmlContent.isXmlContent
(CmsResource resource) Returnstrue
in case the given resource is an XML content.static boolean
CmsResourceTypeXmlPage.isXmlPage
(CmsResource resource) Returnstrue
in case the given resource is an XML page.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.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.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 CmsResource in org.opencms.file.wrapper
Modifier and TypeMethodDescriptionprotected CmsResource
CmsResourceWrapperModules.createFakeBinaryFile
(String rootPath) Creates a fake CmsResource of type 'binary'.protected CmsResource
CmsResourceWrapperModules.createFakeBinaryFile
(String rootPath, long dateLastModified) Creates a fake CmsResource of type 'binary'.protected CmsResource
CmsResourceWrapperModulesNonLazy.createFakeBinaryFile
(String rootPath) Creates a fake CmsResource of type 'binary'.protected CmsResource
CmsResourceWrapperModulesNonLazy.createFakeBinaryFile
(String rootPath, long dateLastModified) Creates a fake CmsResource of type 'binary'.protected CmsResource
CmsResourceWrapperModules.createFakeFolder
(String rootPath) Creates a fake CmsResource of type 'folder'.protected CmsResource
CmsResourceWrapperModulesNonLazy.createFakeFolder
(String rootPath) Creates a fake CmsResource of type 'folder'.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) CmsObjectWrapper.createResource
(String resourcename, int type) Creates a new resource of the given resource type with empty content and no properties.CmsObjectWrapper.createResource
(String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and 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.CmsWrappedResource.getResource()
Returns the virtual resource.A_CmsResourceExtensionWrapper.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) A_CmsResourceWrapper.readResource
(CmsObject cms, String resourcename, CmsResourceFilter filter) CmsObjectWrapper.readResource
(String resourcename, CmsResourceFilter filter) Reads a resource from the VFS, using the
filter.CmsResourceFilter.DEFAULT
CmsObjectWrapper.readResource
(CmsUUID structureID, CmsResourceFilter filter) Delegate method forCmsObject.readResource(CmsUUID, CmsResourceFilter)
.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.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.Modifier and TypeMethodDescriptionA_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.CmsObjectWrapper.getResourcesInFolder
(String resourcename, CmsResourceFilter filter) Returns all child resources of a resource, that is the resources contained in a folder.Modifier and TypeMethodDescriptionstatic CmsFile
CmsResourceWrapperUtils.createPropertyFile
(CmsObject cms, CmsResource res, String path) Creates a virtual CmsFile with the individual and shared properties as content.A_CmsResourceExtensionWrapper.getLock
(CmsObject cms, CmsResource resource) A_CmsResourceWrapper.getLock
(CmsObject cms, CmsResource resource) CmsObjectWrapper.getLock
(CmsResource resource) Returns the lock state for a specified 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.CmsObjectWrapper.getSitePath
(CmsResource resource) Delegate method forCmsObject.getSitePath(CmsResource)
.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.protected String
CmsResourceWrapperXmlPage.prepareContent
(String content, CmsObject cms, CmsResource xmlPage, String path) Prepare the content of a xml page before returning.CmsObjectWrapper.readPropertyObject
(CmsResource resource, String property, boolean search) Delegate method forCmsObject.readPropertyObject(CmsResource, String, boolean)
.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.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.ModifierConstructorDescriptionCreates a new virtual resource. -
Uses of CmsResource in org.opencms.flex
Modifier and TypeMethodDescriptionCmsFlexController.getCmsResource()
This method provides access to the top-level CmsResource of the request which is of a type that supports the FlexCache, i.e.Modifier and TypeMethodDescriptionvoid
CmsFlexRequestContextInfo.updateFromResource
(CmsResource resource) Updates the "last modified" date for this context as well as the "expires" date with the values from a given resource.ModifierConstructorDescriptionCmsFlexController
(CmsObject cms, CmsResource resource, CmsFlexCache cache, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, boolean streaming, boolean top) Default constructor. -
Uses of CmsResource in org.opencms.gwt
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.protected CmsBrokenLinkBean
CmsBrokenLinkRenderer.createSitemapBrokenLinkBean
(CmsResource resource) Creates a "broken link" bean based on a resource.protected CmsBrokenLinkBean
CmsVfsService.createSitemapBrokenLinkBean
(CmsResource resource) Creates a "broken link" bean based on a resource.protected CmsLockActionRecord
CmsGwtService.ensureLock
(CmsResource resource) Locks the given resource with a temporary, if not already locked by the current user.protected CmsLockActionRecord
CmsGwtService.ensureLock
(CmsResource resource, boolean shallow) Locks the given resource with a temporary, if not already locked by the current user.static String
CmsIconUtil.getDisplayType
(CmsObject cms, CmsResource resource) Returns the resource type name used to display the resource icon.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.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.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.protected CmsVfsEntryBean
CmsVfsService.makeEntryBean
(CmsResource resource, boolean root) Helper method for creating a VFS entry bean from a resource.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.CmsBrokenLinkRenderer.renderBrokenLink
(CmsResource target, CmsResource source) Renders the source of a broken link as a list of CmsBrokenLinkBean instances.CmsBrokenLinkRenderer.renderBrokenLinkDefault
(CmsResource target, CmsResource source) The default method for rendering broken link sources.CmsBrokenLinkRenderer.renderBrokenLinkGroupContainer
(CmsResource target, CmsResource source) Renders the broken links for a group container.CmsBrokenLinkRenderer.renderBrokenLinkInheritanceGroup
(CmsResource target, CmsResource source) Renders broken links from an inheritance group.protected void
CmsGwtService.tryUnlock
(CmsResource resource) Tries to unlock a resource.static void
CmsPropertyEditorHelper.updateWysiwygConfig
(Map<String, CmsXmlContentProperty> propertyConfig, CmsObject cms, CmsResource resource) Updates the property configuration for properties using WYSIWYG widgets.Modifier and TypeMethodDescriptionprotected List<CmsVfsEntryBean>
CmsVfsService.makeEntryBeans
(List<CmsResource> resources, boolean root) Helper method for creating a list of VFS entry beans from a list of the corresponding resources. -
Uses of CmsResource in org.opencms.i18n
Modifier and TypeMethodDescriptionCmsLocaleGroupService.findLocalizationRoot
(CmsResource resource) Tries to find the 'best' localized subsitemap parent folder for a resource.protected CmsResource
CmsLocaleGroupService.getDefaultFileOrSelf
(CmsResource res) Helper method for reading the default file of a folder.CmsLocaleGroup.getPrimaryResource()
Gets the primary resource.Modifier and TypeMethodDescriptionCmsLocaleGroup.getAllResources()
Gets the list of all resources of this group (primary and secondary).CmsLocaleGroup.getResourcesByLocale()
Gets a map which contains the resources of the locale group as keys, indexed by their locale.CmsLocaleGroup.getResourcesForLocale
(Locale locale) Gets the resources of this group which have the given locale.CmsLocaleGroup.getSecondaryResources()
Gets the secondary resources of this group.Modifier and TypeMethodDescriptionvoid
CmsLocaleGroupService.attachLocaleGroup
(CmsResource secondaryPage, CmsResource primaryPage) Adds a resource to a locale group.void
CmsLocaleGroupService.attachLocaleGroupIndirect
(CmsResource first, CmsResource second) Smarter method to connect a resource to a locale group.CmsLocaleGroupService.checkLinkable
(CmsResource firstResource, CmsResource secondResource) Checks if the two resources are linkable as locale variants and returns an appropriate statusvoid
CmsLocaleGroupService.detachLocaleGroup
(CmsResource firstPage, CmsResource secondPage) Removes a locale group relation between two resources.CmsLocaleGroupService.findLocalizationRoot
(CmsResource resource) Tries to find the 'best' localized subsitemap parent folder for a 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.protected CmsResource
CmsLocaleGroupService.getDefaultFileOrSelf
(CmsResource res) Helper method for reading the default file of a folder.CmsLocaleManager.getDefaultLocale
(CmsObject cms, CmsResource resource) Returns the "the" default locale 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.CmsVfsBundleManager.getNameAndLocale
(CmsResource bundleRes) Extracts the locale and base name from a resource's file name.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.CmsLocaleGroupService.readDefaultFileLocaleGroup
(CmsResource resource) Reads the locale group of a default file.CmsLocaleGroupService.readLocaleGroup
(CmsResource resource) Reads a locale group from the VFS.ModifierConstructorDescriptionCmsLocaleGroup
(CmsObject cms, CmsResource primaryResource, List<CmsResource> secondaryResources) Creates a new instance.ModifierConstructorDescriptionCmsLocaleGroup
(CmsObject cms, CmsResource primaryResource, List<CmsResource> secondaryResources) Creates a new instance. -
Uses of CmsResource in org.opencms.i18n.tools
Modifier and TypeMethodDescriptionCmsContainerPageCopier.getCopiedFolderOrPage()
Gets the copied folder or page.CmsContainerPageCopier.NoCustomReplacementException.getResource()
Gets the resource for which no replacement was found.CmsContainerPageCopier.getTargetFolder()
Returns the target folder.Modifier and TypeMethodDescriptionvoid
CmsContainerPageCopier.adjustLocalesForElement
(CmsResource elementResource, CmsResource originalResource) Converts locales for the copied container element.void
CmsContainerPageCopier.copyPageOnly
(CmsResource originalPage, String targetPageRootPath) Copies the given container page to the provided root path.CmsContainerPageCopier.replaceContainerElement
(CmsResource targetPage, CmsContainerElementBean originalElement) Produces the replacement for a container page element to use in a copy of an existing container page.void
CmsContainerPageCopier.replaceElements
(CmsResource containerPage) Replaces the elements in the copied container page with copies, if appropriate based on the current copy mode.void
CmsContainerPageCopier.run
(CmsResource source, CmsResource target) Starts the page copying process.void
CmsContainerPageCopier.run
(CmsResource source, CmsResource target, String targetName) Starts the page copying process.ModifierConstructorDescriptionNoCustomReplacementException
(CmsResource resource) Creates a new instance. -
Uses of CmsResource in org.opencms.importexport
Modifier and TypeFieldDescriptionprotected CmsResource
CmsImportVersion10.m_resource
The current imported resource.Modifier and TypeFieldDescriptionprotected List<CmsResource>
CmsImportVersion10.m_parseables
The list of resource to be parsed, this is a global list, which will be handled at the end of the import.protected List<CmsResource>
CmsImportVersion5.m_parseables
Deprecated.Stores all resources of any type that implements theI_CmsLinkParseable
interface.Modifier and TypeMethodDescriptionprotected CmsResource
CmsImportVersion10.createResourceObjectFromFields
(String translatedName, int size) Create a CmsResource object from the currently set field values.protected CmsResource
CmsImportVersion5.importResource
(String source, String destination, I_CmsResourceType type, String uuidstructure, String uuidresource, long datelastmodified, String userlastmodified, long datecreated, String usercreated, long datereleased, long dateexpired, String flags, List<CmsProperty> properties) Deprecated.Imports a resource (file or folder) into the cms.Modifier and TypeMethodDescriptionprotected void
CmsExport.appendResourceToManifest
(CmsResource resource, boolean source) protected void
CmsExport.appendResourceToManifest
(CmsResource resource, boolean source, boolean isSuperFolder) Writes the data for a resource (like access-rights) to themanifest.xml
file.protected CmsAccessControlEntry
A_CmsImport.getImportAccessControlEntry
(CmsResource res, String id, String allowed, String denied, String flags) Deprecated.Creates a new access control entry and stores it for later write out.protected void
A_CmsImport.importAccessControlEntries
(CmsResource resource, List<CmsAccessControlEntry> aceList) Deprecated.Writes already imported access control entries for a given resource.protected void
CmsImportVersion5.importRelations
(CmsResource resource, org.dom4j.Element parentElement) Deprecated.Reads all the relations of the resource from themanifest.xml
file and adds them to the according resource.protected boolean
CmsExport.isInExportableProject
(CmsResource res) Checks if a resource is belongs to the correct project for exporting.Modifier and TypeMethodDescriptionstatic void
CmsImportVersion10.parseLinks
(CmsObject cms, List<CmsResource> parseables, I_CmsReport report) Parses the links.protected void
CmsImportVersion7.sortParseableResources
(List<CmsResource> parseables) Deprecated.Sorts the parsealble resources before we actually parse the links. -
Uses of CmsResource in org.opencms.jlan
Modifier and TypeMethodDescriptionprotected String
CmsJlanNetworkFile.getFullChildPath
(CmsResource child) Adds the name of a child resource to this file's path.ModifierConstructorDescriptionCmsJlanNetworkFile
(CmsObjectWrapper cms, CmsResource resource, String fullName) Creates a new network file instance. -
Uses of CmsResource in org.opencms.jsp
Modifier and TypeClassDescriptionclass
Wrapper subclass of CmsResource with some convenience methods.Modifier and TypeFieldDescriptionprotected CmsResource
CmsJspTagFormatter.m_resource
Reference to the last loaded resource element.protected CmsResource
CmsJspTagResourceLoad.m_resource
Reference to the last loaded resource element.Modifier and TypeFieldDescriptionprotected List<CmsResource>
CmsJspTagResourceLoad.m_collectorResult
The list of collected resource items.Modifier and TypeMethodDescriptionprotected CmsResource
CmsJspTagResourceLoad.getNextResource()
Returns the next resource from the collector.CmsJspNavElement.getResource()
Returns the resource.CmsJspTagContentLoop.getResource()
CmsJspTagResourceLoad.getResource()
I_CmsResourceContainer.getResource()
Returns the currently loaded resource.Modifier and TypeMethodDescriptionCmsJspTagContentLoop.getCollectorResult()
CmsJspTagResourceLoad.getCollectorResult()
I_CmsResourceContainer.getCollectorResult()
Returns the list of all currently loaded resources (instances of
).CmsResource
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 List<CmsResource>
CmsJspTagResourceLoad.limitCollectorResult
(CmsContentInfoBean contentInfoBean, List<CmsResource> collectorResult) Limits the collector's result list to the size of a page to be displayed in a JSP.Modifier and TypeMethodDescriptionstatic void
CmsJspTagDisplay.displayAction
(CmsResource elementResource, I_CmsFormatterBean formatter, Map<String, String> settings, boolean cacheable, boolean editable, boolean canCreate, boolean canDelete, String creationSiteMap, String postCreateHandler, String uploadFolder, javax.servlet.jsp.PageContext context, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Includes the formatter rendering the given element.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.boolean
CmsJspResourceWrapper.isChildResourceOf
(CmsResource resource) Returnstrue
in case this resource is child resource of the provided resource which is assumed to be a folder.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.boolean
CmsJspResourceWrapper.isParentFolderOf
(CmsResource resource) Returnstrue
in case this resource is a parent folder of the provided resource.protected void
CmsJspNavElement.setResource
(CmsResource resource) Sets the resource.static CmsJspResourceWrapper
CmsJspResourceWrapper.wrap
(CmsObject cms, CmsResource res) Factory method to create a newCmsJspResourceWrapper
instance from aCmsResource
.Modifier and TypeMethodDescriptionprotected static List<CmsResource>
CmsJspTagResourceLoad.limitCollectorResult
(CmsContentInfoBean contentInfoBean, List<CmsResource> collectorResult) Limits the collector's result list to the size of a page to be displayed in a JSP.ModifierConstructorDescriptionCmsJspNavElement
(String sitePath, CmsResource resource, Map<String, String> properties) Create a new instance of the bean and calls the init method with the provided parameters.CmsJspNavElement
(String sitePath, CmsResource resource, Map<String, String> properties, int navTreeLevel) Create a new instance of the bean and calls the init method with the provided parameters.CmsJspNavElement
(String sitePath, CmsResource resource, Map<String, String> properties, int navTreeLevel, Locale locale) Create a new instance of the bean and calls the init method with the provided parameters. -
Uses of CmsResource in org.opencms.jsp.decorator
ModifierConstructorDescriptionCmsDecorationMap
(CmsObject cms, CmsResource res, CmsDecorationDefintion decDef) Constructor, creates a new CmsDecorationMap. -
Uses of CmsResource in org.opencms.jsp.search.config.parser.simplesearch
Modifier and TypeMethodDescriptionstatic CmsConfigurationBean
CmsConfigParserUtils.parseListConfiguration
(CmsObject cms, CmsResource res) Parses the list configuration resource. -
Uses of CmsResource in org.opencms.jsp.userdata
Modifier and TypeMethodDescriptionCmsUserDataResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Modifier and TypeMethodDescriptionCmsUserDataResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) -
Uses of CmsResource in org.opencms.jsp.util
Modifier and TypeFieldDescriptionprotected Optional<CmsResource>
CmsJspLinkWrapper.m_resource
Cached link target resource.protected List<CmsResource>
CmsJspResourceLoadBean.m_resources
The list of results of the resource loader.Modifier and TypeMethodDescriptionstatic CmsResource
CmsJspElFunctions.convertRawResource
(CmsObject cms, Object input) Returns a resource created from an Object.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.CmsJspResourceAccessBean.getResource()
Returns the current resource.CmsJspStandardContextBean.CmsContainerElementWrapper.getResource()
CmsJspStandardContextBean.TemplateBean.getResource()
Gets the template resource.protected CmsResource
A_CmsJspCustomContextBean.toResource
(Object input) Convert the input to a CmsResource using the current context.Modifier and TypeMethodDescriptionCmsJspResourceLoadBean.getResources()
Returns a list ofCmsResource
instances.Modifier and TypeMethodDescriptionCmsJspContentAttachmentsBean.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.void
CmsJspContentAccessBean.init
(CmsObject cms, Locale locale, I_CmsXmlDocument content, CmsResource resource) 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.static boolean
CmsJspElFunctions.isSubSitemap
(CmsResource resource) Returns whether the given resource is a sub sitemap folder.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.protected void
CmsJspImageBean.setResource
(CmsObject cms, CmsResource resource) Sets the CmsResource for this image.Modifier and TypeMethodDescriptionstatic 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.void
CmsJspContentLoadBean.init
(CmsObject cms, Locale locale, List<CmsResource> content) Initialize this instance.void
CmsJspResourceLoadBean.init
(CmsObject cms, List<CmsResource> resources) Initialize this instance.ModifierConstructorDescriptionCmsJspCategoryAccessBean
(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, 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.CmsJspImageBean
(CmsObject cms, CmsResource imageRes, String scaleParams) Initializes a new image bean based on a VFS resource and optional scaler parameters.CmsJspResourceAccessBean
(CmsObject cms, CmsResource resource) Creates a content access bean based on a Resource.CmsLocalePropertyLoaderTransformer
(CmsObject cms, CmsResource resource, boolean search) Default constructor.CmsPropertyLoaderSingleTransformer
(CmsResource resource, boolean search) Creates a new property loading Transformer.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.TemplateBean
(String name, CmsResource resource) Creates a new instance.ModifierConstructorDescriptionCmsJspContentLoadBean
(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.CmsJspResourceLoadBean
(CmsObject cms, List<CmsResource> resources) Creates a new context bean using the OpenCms context of the current user. -
Uses of CmsResource in org.opencms.loader
Modifier and TypeMethodDescriptionCmsTemplateLoaderFacade.getLoaderStartResource()
Returns the loaders start resource.CmsResourceManager.NamedTemplate.getResource()
Gets the template resource.CmsTemplateLoaderFacade.getResource()
Returns the resource.CmsTemplateLoaderFacade.getTemplate()
Returns the template.protected CmsResource
CmsJspLoader.readJspResource
(CmsFlexController controller, String jspName) Returns the jsp resource identified by the given name, using the controllers cms context.Modifier and TypeMethodDescriptionprotected boolean
CmsDumpLoader.canSendLastModifiedHeader
(CmsResource resource, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Checks if the requested resource must be send to the client by checking the "If-Modified-Since" http header.byte[]
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.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.CmsResourceManager.getLoader
(CmsResource resource) Returns the loader class instance for a given resource.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.CmsResourceManager.getResourceType
(CmsResource resource) Convenience method to get the initialized resource type instance for the given resource, with a fall back to special "unknown" resource types in case the resource type is not configured.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.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) 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.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
CmsJspLoader.removeOfflineJspFromRepository
(CmsResource resource) Removes a JSP from an offline project from the RFS.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.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) CmsJspLoader.updateJsp
(CmsResource resource, CmsFlexController controller, Set<String> updatedFiles) Updates a JSP page in the "real" file system in case the VFS resource has changed.protected boolean
CmsJspLoader.updateStrongLinks
(CmsResource resource, CmsFlexController controller, Set<String> updatedFiles) Updates all jsp files that include the given jsp file using the 'link.strong' macro.ModifierConstructorDescriptionCmsImageScaler
(CmsObject cms, CmsResource res) Creates a new image scaler by reading the property
from the given resource.CmsPropertyDefinition.PROPERTY_IMAGE_SIZE
CmsTemplateLoaderFacade
(I_CmsResourceLoader loader, CmsResource resource, CmsResource template) Creates a new template loader facade.NamedTemplate
(CmsResource resource, String name) Creates a new instance. -
Uses of CmsResource in org.opencms.lock
Modifier and TypeMethodDescriptionCmsLockManager.getLockedResources
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all exclusive locked resources matching the given resource and filter.CmsLockManager.getLockedResourcesWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all exclusive locked resources matching the given resource and filter, but uses a cache for resource loookups.Modifier and TypeMethodDescriptionvoid
CmsLockManager.addResource
(CmsDbContext dbc, CmsResource resource, CmsUser user, CmsProject project, CmsLockType type) Adds a resource to the lock manager.static 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.CmsLockManager.getLock
(CmsDbContext dbc, CmsResource resource) Returns the lock state of the given resource.CmsLockManager.getLock
(CmsDbContext dbc, CmsResource resource, boolean includeSiblings) Returns the lock state of the given resource.CmsLockManager.getLockedResources
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all exclusive locked resources matching the given resource and filter.CmsLockManager.getLockedResourcesWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all exclusive locked resources matching the given resource and filter, but uses a cache for resource loookups.boolean
CmsLockManager.hasSystemLocks
(CmsDbContext dbc, CmsResource resource) Returnstrue
if the given resource contains a resource that has a system lock.static CmsLockUtil.LockedFile
CmsLockUtil.LockedFile.lockResource
(CmsObject cms, CmsResource resource) Lock and read a file.CmsLockManager.removeResource
(CmsDbContext dbc, CmsResource resource, boolean forceUnlock, boolean removeSystemLock) Removes a resource from the lock manager.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.Modifier and TypeMethodDescriptionCmsLockManager.getLockedResourcesWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all exclusive locked resources matching the given resource and filter, but uses a cache for resource loookups. -
Uses of CmsResource in org.opencms.mail
ModifierConstructorDescriptionCmsVfsDataSource
(CmsObject cms, CmsResource resource) Creates a new data source for the given VFS resource. -
Uses of CmsResource in org.opencms.main
Modifier and TypeMethodDescriptionCmsContextInfo.getDetailResource()
Gets the detail content resource.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.Modifier and TypeMethodDescriptionCmsProtectedStaticFileHandler.getLink
(CmsObject cms, CmsResource resource) 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.void
CmsContextInfo.setDetailResource
(CmsResource detailResource) Sets the detail content resource. -
Uses of CmsResource in org.opencms.module
Modifier and TypeMethodDescriptionCmsResourceImportData.getImportResource()
Gets the import resource.CmsResourceImportData.getResource()
Gets the resource.Modifier and TypeMethodDescriptionstatic 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.Modifier and TypeMethodDescriptionstatic boolean
CmsModuleUpdater.needToUpdateResourceFields
(CmsResource existingRes, CmsResource newRes, boolean reduced) Check if a resource needs to be updated because of its direct fields.void
CmsResourceImportData.setImportResource
(CmsResource importRes) Sets the import resource.boolean
CmsModuleUpdater.updateAcls
(CmsObject cms, CmsResourceImportData resData, CmsResource resource) Updates the access control list fr a resource.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
protected void
CmsModuleUpdater.processDeletions
(CmsObject cms, List<CmsResource> toDelete) Handles the file deletions.ModifierConstructorDescriptionCmsResourceImportData
(CmsResource resource, String path, byte[] content, List<CmsProperty> properties, List<CmsAccessControlEntry> aces, List<CmsImportVersion10.RelationData> relationData, boolean hasStructureId, boolean hasDateLastModified, String typeName) Creats a new instance. -
Uses of CmsResource in org.opencms.monitor
Modifier and TypeMethodDescriptionCmsMemoryMonitor.getCachedResource
(String key) Returns the resource cached with the given cache key ornull
if not found.Modifier and TypeMethodDescriptionCmsMemoryMonitor.getCachedProjectResources
(String key) Returns the project resources list cached with the given cache key ornull
if not found.CmsMemoryMonitor.getCachedResourceList
(String key) Returns the resource list cached with the given cache key ornull
if not found.Modifier and TypeMethodDescriptionvoid
CmsMemoryMonitor.cacheResource
(String key, CmsResource resource) Caches the given resource under the given cache key.Modifier and TypeMethodDescriptionvoid
CmsMemoryMonitor.cacheProjectResources
(String key, List<CmsResource> projectResources) Caches the given project resource list under the given cache key.void
CmsMemoryMonitor.cacheResourceList
(String key, List<CmsResource> resourceList) Caches the given resource list under the given cache key. -
Uses of CmsResource 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. -
Uses of CmsResource in org.opencms.notification
Modifier and TypeMethodDescriptionCmsExtendedNotificationCause.getResource()
Returns the resource.Modifier and TypeMethodDescriptionstatic boolean
CmsContentNotification.existsEditor
(CmsResource resource) Returns true, if there exists an editor for a specific resource.void
CmsExtendedNotificationCause.setResource
(CmsResource resource) Sets the resource.ModifierConstructorDescriptionCmsExtendedNotificationCause
(CmsResource resource, int cause, Date date) Creates a new CmsNotificationResourceInfo. -
Uses of CmsResource in org.opencms.pdftools
Modifier and TypeMethodDescriptionCmsPdfLink.getContent()
Returns the content.CmsPdfLink.getFormatter()
Gets the formatter resource.CmsPdfResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Modifier and TypeMethodDescriptionstatic 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.CmsPdfCache.getCacheName
(CmsResource resource, String parameters) CmsPdfThumbnailCache.getCacheName
(CmsResource resource, String parameters) CmsPdfResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
CmsPdfResourceHandler.logXhtmlOutput
(CmsResource formatter, CmsResource content, byte[] xhtmlData) Logs the XHTML output.ModifierConstructorDescriptionCmsPdfLink
(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, CmsResource pdfResource, int width, int height, String format) Creates a new thumbnail link for the given resource and options. -
Uses of CmsResource in org.opencms.publish
Modifier and TypeMethodDescriptionCmsPublishManager.getUsersPubList
(CmsObject cms) Returns the current user's publish list.Modifier and TypeMethodDescriptionCmsPublishManager.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.publishProject
(CmsObject cms, I_CmsReport report, CmsResource directPublishResource, boolean directPublishSiblings) Direct publishes a specified resource.Modifier and TypeMethodDescriptionCmsPublishManager.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.getPublishListAll
(CmsObject cms, List<CmsResource> directPublishResources, boolean directPublishSiblings, boolean isUserPublishList) Returns a publish list with all the given resources, filtered only by state. -
Uses of CmsResource in org.opencms.relations
Modifier and TypeMethodDescriptionCmsLink.getResource()
Returns the resource this link points to, if it is an internal link and has already been initialized via checkConsistency.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.Modifier and TypeMethodDescriptionCmsInternalLinksValidator.getResourcesWithBrokenLinks()
Returns all resources with broken links.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.Modifier and TypeMethodDescriptionprotected boolean
CmsRelationSystemValidator.checkLinkForNewOrChangedLinkSource
(CmsDbContext dbc, CmsResource resource, CmsRelation relation, String link, CmsProject project, Map<String, CmsResource> fileLookup) Checks a link from a resource which has changed.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.CmsRelationFilter.filterResource
(CmsResource resource) Returns an extended filter with the given resource (path and id) restriction.CmsCategoryService.getCategory
(CmsObject cms, CmsResource resource) Creates a category from the given resource.I_CmsCustomLinkRenderer.getLink
(CmsObject cms, CmsResource resource) Returns the link for the given link resource.CmsCategoryService.readResourceCategories
(CmsObject cms, CmsResource resource) Reads the categories for a resource.void
CmsCategoryService.repairRelations
(CmsObject cms, CmsResource resource) Repairs broken category relations.protected List<CmsRelation>
CmsRelationSystemValidator.validateLinks
(CmsDbContext dbc, CmsResource resource, Map<String, CmsResource> fileLookup, CmsProject project, I_CmsReport report) Validates the links for the specified resource.Modifier and TypeMethodDescriptionprotected boolean
CmsRelationSystemValidator.checkLinkForDeletedLinkTarget
(CmsRelation relation, String link, Map<String, CmsResource> fileLookup) Checks a link to a resource which has been deleted.protected boolean
CmsRelationSystemValidator.checkLinkForNewOrChangedLinkSource
(CmsDbContext dbc, CmsResource resource, CmsRelation relation, String link, CmsProject project, Map<String, CmsResource> fileLookup) Checks a link from a resource which has changed.protected List<CmsRelation>
CmsRelationSystemValidator.validateLinks
(CmsDbContext dbc, CmsResource resource, Map<String, CmsResource> fileLookup, CmsProject project, I_CmsReport report) Validates the links for the specified resource.ModifierConstructorDescriptionCmsRelation
(CmsResource source, CmsResource target, CmsRelationType type) Creates a new relation object of the given type between the given resources. -
Uses of CmsResource in org.opencms.repository
ModifierConstructorDescriptionCmsRepositoryItem
(CmsResource res, CmsObjectWrapper cms) Construct a new CmsRepositoryItem initialized with theCmsResource
to use and theCmsObjectWrapper
needed for some operations. -
Uses of CmsResource in org.opencms.search
Modifier and TypeClassDescriptionclass
A resource implementation that combines the Solr document together with a OpenCms VFS resource.Modifier and TypeMethodDescriptionprotected 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.Modifier and TypeMethodDescriptionprotected Map<String,
List<CmsResource>> CmsDependencyIndexer.createFolderLookupMap
(List<CmsResource> resources) Creates a folder based lookup map for the given resource list.Modifier and TypeMethodDescriptionCmsSearchIndex.createEmptyDocument
(CmsResource resource) Creates an empty document that can be used by this search field configuration.I_CmsSearchIndex.createEmptyDocument
(CmsResource resource) Creates an empty document that can be used by this search field configuration.protected I_CmsSearchDocument
CmsIndexingThread.createIndexDocument
(CmsObject cms, CmsResource res, I_CmsSearchIndex index, int count, I_CmsReport report) Creates the search index document.void
CmsIndexingThreadManager.createIndexingThread
(CmsVfsIndexer indexer, I_CmsIndexWriter writer, CmsResource res) Creates and starts a new indexing thread for a resource.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.A_CmsSearchIndex.getContentIfUnchanged
(CmsResource resource) We always assume we have no unchanged copy of the content, since it depends on the concrete index.CmsSearchIndex.getContentIfUnchanged
(CmsResource resource) I_CmsSearchIndex.getContentIfUnchanged
(CmsResource resource) The method should return the extraction result of a content from the index, if sure the content has not changed since last indexing.A_CmsSearchIndex.getDocumentFactory
(CmsResource res) Returns the document type factory used for the given resource in this index, ornull
in case the resource is not indexed by this index.I_CmsSearchIndex.getDocumentFactory
(CmsResource res) Returns the document type factory used for the given resource in this index, ornull
in case the resource is not indexed by this index.CmsSearchManager.getDocumentTypeKeys
(CmsResource resource) Returns the document type keys used to specify the correct document factory.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 boolean
A_CmsSearchIndex.isIndexing
(CmsResource res) Checks if the given resource should be indexed by this index or not.protected void
CmsVfsIndexer.updateResource
(I_CmsIndexWriter writer, CmsIndexingThreadManager threadManager, CmsResource resource) Updates (writes) a single resource in the index.Modifier and TypeMethodDescriptionprotected Map<String,
List<CmsResource>> CmsDependencyIndexer.createFolderLookupMap
(List<CmsResource> resources) Creates a folder based lookup map for the given resource list.protected void
CmsSearchManager.CmsSearchOfflineHandler.reIndexResources
(List<CmsResource> resources) Updates all offline indexes for the given list ofCmsResource
objects.ModifierConstructorDescriptionCmsIndexingThread
(CmsObject cms, CmsResource res, I_CmsSearchIndex index, int count, I_CmsReport report) Create a new indexing thread.CmsSearchResource
(CmsResource resource, I_CmsSearchDocument doc) Constructor, creates a new file Object from the given resource with an empty byte array as file content, if the resource does not implement a file. -
Uses of CmsResource 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.CmsExtractionResultCache.getCacheName
(CmsResource resource, Locale locale, String docTypeName) Returns the RFS name used for caching an the text extraction result based on the given VFS resource and locale.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.protected void
A_CmsVfsDocument.logContentExtraction
(CmsResource resource, I_CmsSearchIndex index) Logs content extraction for the specified resource and index.protected CmsFile
A_CmsVfsDocument.readFile
(CmsObject cms, CmsResource resource) Upgrades the given resource to aCmsFile
with content.Modifier and TypeMethodDescriptionstatic 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, List<CmsResource> folderContent) Reads all dependencies that exist for this main resource in provided list of resources. -
Uses of CmsResource 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 CmsResource in org.opencms.search.galleries
ModifierConstructorDescriptionCmsGallerySearchResult
(CmsObject cms, CmsResource res, String title) Creates a fake gallery search result by reading the necessary data from a VFS resource. -
Uses of CmsResource in org.opencms.search.solr
Modifier and TypeMethodDescriptionprotected 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) CmsSolrIndex.createEmptyDocument
(CmsResource resource) 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.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.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.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. -
Uses of CmsResource in org.opencms.security
Modifier and TypeMethodDescriptionCmsRoleManager.getManageableResources
(CmsObject cms, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsOrgUnitManager.getResourcesForOrganizationalUnit
(CmsObject cms, String ouFqn) Returns all resources of the given organizational unit.Modifier and TypeMethodDescriptionCmsRole.createRoleViolationExceptionForResource
(CmsRequestContext requestContext, CmsResource resource) Returns a role violation exception configured with a localized, role specific message for this role.CmsRoleManager.getRolesForResource
(CmsObject cms, CmsUser user, CmsResource resource) Returns all roles the given user has over the given resource.CmsDefaultPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) I_CmsPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, CmsRole role, CmsResource resource) Checks if the given context user has the given role for the given resource. -
Uses of CmsResource in org.opencms.site
Modifier and TypeMethodDescriptionCmsSite.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. -
Uses of CmsResource in org.opencms.site.xmlsitemap
Modifier and TypeFieldDescriptionprotected Map<String,
List<CmsResource>> CmsXmlSitemapGenerator.m_detailResources
A map from type names to lists of potential detail resources of that type.Modifier and TypeMethodDescriptionCmsXmlSitemapUrlBean.getDetailPageResource()
Gets the detail page resource in case the link is the link to a detail page, else returns null.CmsXmlSitemapUrlBean.getOriginalResource()
Gets the original resource belonging to the link.Modifier and TypeMethodDescriptionprotected List<CmsResource>
CmsXmlSitemapGenerator.getDirectPages()
Gets the list of pages which should be directly added to the XML sitemap.protected List<CmsResource>
CmsXmlSitemapGenerator.getNavigationPages()
Gets the list of pages from the navigation which should be directly added to the XML sitemap.Modifier and TypeMethodDescriptionprotected void
CmsDetailPageDuplicateEliminatingSitemapGenerator.addDetailLinks
(CmsResource containerPage, Locale locale) protected void
CmsXmlSitemapGenerator.addDetailLinks
(CmsResource containerPage, Locale locale) Adds the detail page links for a given page to the results.protected long
CmsXmlSitemapGenerator.computeContainerPageModificationDate
(CmsResource containerPage) Computes the container the container page modification date from its referenced contents.protected String
CmsXmlSitemapGenerator.getDetailLink
(CmsResource pageRes, CmsResource detailRes, Locale locale) Gets the detail link for a given container page and detail content.protected List<I_CmsResourceType>
CmsXmlSitemapGenerator.getDetailTypesForPage
(CmsResource resource) Gets the types for which a given resource is configured as a detail page.protected boolean
CmsXmlSitemapGenerator.isValidDetailPageCombination
(CmsResource page, Locale locale, CmsResource detailRes) Checks whether the page/detail content combination is a valid detail page.void
CmsXmlSeoConfiguration.load
(CmsObject cms, CmsResource resource) Loads the bean data from the given resource.static CmsXmlSitemapGenerator
CmsXmlSitemapActionElement.prepareSitemapGenerator
(CmsResource seoFileRes, CmsXmlSeoConfiguration config) Constructs an XML sitemap generator given an XML sitemap configuration file.void
CmsXmlSitemapUrlBean.setDetailPageResource
(CmsResource detailPageResource) Sets the detail page resource.void
CmsXmlSitemapUrlBean.setOriginalResource
(CmsResource resource) Sets the original resource.Modifier and TypeMethodDescriptionprotected static void
CmsXmlSitemapGenerator.removeInternalFiles
(List<CmsResource> resources) Removes files marked as internal from a resource list. -
Uses of CmsResource in org.opencms.staticexport
Modifier and TypeMethodDescriptionCmsStaticExportData.getResource()
Returns the resource to export.Modifier and TypeMethodDescriptionprotected boolean
CmsDefaultLinkSubstitutionHandler.isDetailPageLinkSecure
(CmsObject cms, String detailPage, CmsResource detailContent, CmsSite targetSite, boolean secureRequest) Checks whether a link to a detail page should be secure.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.protected void
CmsStaticExportManager.writeResource
(javax.servlet.http.HttpServletRequest req, String exportPath, String rfsName, CmsResource resource, byte[] content) Writes a resource to the given export path with the given rfs name and the given content.ModifierConstructorDescriptionCmsStaticExportData
(String vfsName, String rfsName, CmsResource resource, String parameters) Creates a new static export data object. -
Uses of CmsResource in org.opencms.synchronize
Modifier and TypeMethodDescriptionvoid
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. -
Uses of CmsResource in org.opencms.ugc
Modifier and TypeMethodDescriptionCmsUgcSession.createUploadResource
(String fieldName, String rawFileName, byte[] content) Creates a new resource from upload data.CmsUgcSession.createXmlContent()
Creates a new edit resource.CmsUgcConfiguration.getContentParentFolder()
Returns the folder for XML contents.CmsUgcSession.getResource()
Returns the edit resource.CmsUgcSession.loadXmlContent
(String fileName) Loads the existing edit resource.Modifier and TypeMethodDescriptioncom.google.common.base.Optional<CmsResource>
CmsUgcConfiguration.getUploadParentFolder()
Returns the folder for uploads.ModifierConstructorDescriptionCmsUgcConfiguration
(CmsUUID id, com.google.common.base.Optional<CmsUser> userForGuests, CmsGroup projectGroup, String resourceType, CmsResource contentParentFolder, String namePattern, Locale locale, com.google.common.base.Optional<CmsResource> uploadParent, com.google.common.base.Optional<Long> maxUploadSize, com.google.common.base.Optional<Integer> maxContents, com.google.common.base.Optional<Long> queueTimeout, com.google.common.base.Optional<Integer> maxQueueLength, boolean autoPublish, com.google.common.base.Optional<List<String>> validExtensions) Creates a new form configuration. -
Uses of CmsResource in org.opencms.ui
Modifier and TypeMethodDescriptionA_CmsDialogContext.getResources()
I_CmsDialogContext.getResources()
Gets the list of resources for which the dialog should be opened.ModifierConstructorDescriptionprotected
A_CmsDialogContext
(String appId, I_CmsDialogContext.ContextType contextType, List<CmsResource> resources) Constructor. -
Uses of CmsResource in org.opencms.ui.actions
Modifier and TypeMethodDescriptionprotected CmsResource
A_CmsGalleryDialogAction.getGallery
(I_CmsDialogContext context) Returns the gallery.Modifier and TypeMethodDescriptionprotected String
A_CmsJSPAction.getRequestString
(List<CmsResource> resources) Creates string for get—request with given list of resources.A_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 CmsResource in org.opencms.ui.apps
Modifier and TypeMethodDescriptionCmsWorkplaceAppManager.getEditorForResource
(CmsObject cms, CmsResource resource, boolean plainText) Returns the editor for the given resource.void
CmsQuickLaunchLocationCache.setPageEditorResource
(CmsObject cms, String siteRoot, CmsResource resource) Sets the latest page editor location for the given site.ModifierConstructorDescriptionCmsExplorerDialogContext
(I_CmsDialogContext.ContextType contextType, CmsFileTable fileTable, CmsFileExplorer explorer, List<CmsResource> resources) Creates a new instance. -
Uses of CmsResource in org.opencms.ui.apps.datesearch
Modifier and TypeMethodDescriptionvoid
CmsDateSearchComposite.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) -
Uses of CmsResource in org.opencms.ui.apps.dbmanager
Modifier and TypeFieldDescriptionprotected List<CmsResource>
CmsPropertyDeleteDialog.m_resources
List of resources having the property to be deleted.ModifierConstructorDescriptionCmsSelectResourceTypeDialog
(CmsResource folderResource, I_CmsDialogContext context) public constructor. -
Uses of CmsResource in org.opencms.ui.apps.linkvalidation
Modifier and TypeMethodDescriptionabstract List<CmsResource>
A_CmsLinkValidator.failedResources
(List<String> resources) Returns resources which fail the validations.CmsLinkInFolderValidationApp.InFolderValidator.failedResources
(List<String> resources) CmsLinkValidationApp.InternalValidator.failedResources
(List<String> resources) Modifier and TypeMethodDescriptionvoid
A_CmsLinkValidator.addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) abstract String
A_CmsLinkValidator.failMessage
(CmsResource resource) Get fail message for resource.CmsLinkInFolderValidationApp.InFolderValidator.failMessage
(CmsResource resource) CmsLinkValidationApp.InternalValidator.failMessage
(CmsResource resource) ModifierConstructorDescriptionCmsResourceListDialog
(List<CmsResource> resources) Public constructor. -
Uses of CmsResource 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) void
CmsListManager.search
(CmsSimpleSearchConfigurationParser configParser, CmsResource resource) Execute a search with the given search configuration parser.ModifierConstructorDescriptionCmsOptionDialog
(CmsResource resource, CmsDialogOptions options, CmsOptionDialog.I_OptionHandler handler, Runnable onClose, com.vaadin.ui.Window window) Constructor.ModifierConstructorDescriptionDialogContext
(String appId, I_CmsDialogContext.ContextType contextType, CmsFileTable fileTable, List<CmsResource> resources) Constructor. -
Uses of CmsResource in org.opencms.ui.apps.search
Modifier and TypeMethodDescriptionCmsSearchReplaceSettings.getElementResource()
Get element to search for.Modifier and TypeMethodDescriptionCmsSearchReplaceThread.getMatchedResources()
Returns the matched resources.Modifier and TypeMethodDescriptionstatic String
CmsSearchReplaceSettings.replaceElementInPagePattern
(CmsResource resource) Replace element pattern.static String
CmsSearchReplaceSettings.searchElementInPagePattern
(CmsResource resource) Search element in xml page pattern.void
CmsSearchReplaceSettings.setElementResource
(CmsResource resource) Set Element to search for.Modifier and TypeMethodDescriptionprotected void
CmsSearchReplaceThread.searchAndReplace
(List<CmsResource> resources) Search the resources. -
Uses of CmsResource in org.opencms.ui.apps.user
ModifierConstructorDescriptionCmsResourceInfoTable
(Set<CmsResource> resources, List<CmsUser> user) public constructor. -
Uses of CmsResource in org.opencms.ui.components
Modifier and TypeFieldDescriptionprotected List<CmsResource>
CmsFileTable.m_currentResources
The selected resources.Modifier and TypeMethodDescriptionCmsBasicDialog.getInfoResources()
Gets the resources for which the resource info boxes should be displayed.CmsFileTable.getSelectedResources()
Gets the list of selected resources.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.static CmsResourceInfo
CmsResourceInfo.createSitemapResourceInfo
(CmsResource resource, CmsSite baseSite) Creates a resource info widget for a resource that looks like the sitemap entry for that resource.void
CmsBasicDialog.displayResourceInfo
(CmsResource resource) For a given resource, display the resource info panel.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.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.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.Modifier and TypeMethodDescriptioncom.vaadin.ui.Panel
CmsBasicDialog.createResourceListPanel
(String caption, List<CmsResource> resources) Creates a resource list panel.void
CmsBasicDialog.displayResourceInfo
(List<CmsResource> resources) For a given list of resources, displays the resource info panels.void
CmsBasicDialog.displayResourceInfo
(List<CmsResource> resources, String messageKey) For a given list of resources, displays the resource info panels with panel messages.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.ModifierConstructorDescriptionCmsMacroResolverDialog
(Runnable okAction, Runnable cancelAction, CmsResource resource) Public constructor.CmsResourceInfo
(CmsResource resource) Constructor.CmsResourceInfo
(CmsResource resource, boolean useState) Constructor.ModifierConstructorDescriptionCmsFileTableDialogContext
(String appId, I_CmsDialogContext.ContextType contextType, CmsFileTable fileTable, List<CmsResource> resources) Creates a new instance.CmsLockedResourcesList
(CmsObject cms, List<CmsResource> resources, String message, Runnable nextAction, Runnable cancelAction) Creates a new instance. -
Uses of CmsResource in org.opencms.ui.components.extensions
Modifier and TypeMethodDescriptionvoid
CmsGwtDialogExtension.editPointer
(CmsResource resource) Opens the dialog for editing pointer resources.void
CmsGwtDialogExtension.openCategories
(CmsResource resource) Opens the categories dialog for the given resource.void
CmsGwtDialogExtension.openGalleryDialog
(CmsResource resource) Opens the gallery dialog for the given gallery folder.void
CmsGwtDialogExtension.openInfoDialog
(CmsResource resource, String startTab) Opens the resource info dialog.void
CmsGwtDialogExtension.openLockReport
(CmsResource resource) Opens the lock report for the given resource.Modifier and TypeMethodDescriptionprotected CmsPublishData
CmsGwtDialogExtension.getPublishData
(CmsProject project, List<CmsResource> directPublishResources) Gets the publish data for the given resources.protected void
CmsGwtDialogExtension.openPublishDailog
(CmsProject project, List<CmsResource> directPublishResources) Opens the publish dialog for the given project.void
CmsGwtDialogExtension.openPublishDialog
(List<CmsResource> resources) Tells the client to open the publish dialog for the given resources. -
Uses of CmsResource in org.opencms.ui.components.fileselect
Modifier and TypeFieldDescriptionprotected CmsResource
CmsResourceSelectDialog.m_root
The resource initially displayed at the root of the tree.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.protected boolean
A_CmsFileSelectField.resourceIsValid
(CmsResource resource) Checks if the given resource is valid according to require Folder or File.protected abstract void
A_CmsFileSelectField.setResourceValue
(CmsResource resource) Sets the field value.protected void
CmsPathSelectField.setResourceValue
(CmsResource resource) void
CmsResourceSelectDialog.showStartResource
(CmsResource startResource) Displays the start resource by opening all nodes in the tree leading to it.protected void
CmsResourceSelectDialog.updateRoot
(CmsObject rootCms, CmsResource siteRootResource) Updates the current site root resource.Modifier and TypeMethodDescriptionvoid
CmsResourceTreeTable.addResourceSelectionHandler
(I_CmsSelectionHandler<CmsResource> handler) Adds a resource selection handler.void
CmsResourceSelectDialog.addSelectionHandler
(I_CmsSelectionHandler<CmsResource> handler) Adds a resource selection handler.void
CmsResourceTreeTable.removeResourceSelectionHandler
(I_CmsSelectionHandler<CmsResource> handler) Removes the given resource selection handler.ModifierConstructorDescriptionCmsNavigationFilter
(CmsObject cms, CmsResource root) Creates a new instance.CmsResourceTreeTable
(CmsObject cms, CmsResource root, CmsResourceFilter filter) Creates a new instance.CmsResourceTreeTable
(CmsObject cms, CmsResource root, CmsResourceTreeContainer container) Creates a new instance. -
Uses of CmsResource in org.opencms.ui.dialogs
Modifier and TypeFieldDescriptionprotected CmsResource
A_CmsSelectResourceTypeDialog.m_createdResource
The created resource.protected CmsResource
A_CmsSelectResourceTypeDialog.m_folderResource
The current folder.protected CmsResource
CmsSecureExportDialog.m_resource
The current resource.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) 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 com.google.common.collect.Multimap<CmsResource,
CmsResource> CmsDeleteDialog.getBrokenLinks
(CmsObject cms, List<CmsResource> selectedResources, boolean includeSiblings, boolean reverse) Gets the broken links.CmsEmbeddedDialogContext.getResources()
Modifier and TypeMethodDescriptionprotected void
CmsCopyMoveDialog.performSingleOperation
(CmsResource source, CmsResource target, String name, CmsCopyMoveDialog.Action action, boolean overwrite, Map<String, String> macroMap) Performs the single resource operation.protected void
CmsCopyMoveDialog.performSingleOperation
(CmsResource source, CmsResource target, CmsCopyMoveDialog.Action action, boolean overwrite, Map<String, String> makroMap) Performs the single resource operation.void
CmsCopyMoveDialog.setTargetForlder
(CmsResource resource) Preselects the target folder.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.ModifierConstructorDescriptionA_CmsSelectResourceTypeDialog
(CmsResource folderResource, I_CmsDialogContext context) Creates a new instance.CmsGalleryOptimizeDialog
(I_CmsDialogContext context, CmsResource gallery) Creates a new instance of a gallery optimize dialog.CmsNewDialog
(CmsResource folderResource, I_CmsDialogContext context) Creates a new instance.ModifierConstructorDescriptionCmsEmbeddedDialogContext
(String appId, CmsEmbeddedDialogExtension extension, I_CmsDialogContext.ContextType contextType, List<CmsResource> resources, Map<String, String> parameters) Constructor. -
Uses of CmsResource in org.opencms.ui.dialogs.embedded
Modifier and TypeMethodDescriptionCmsDataViewAction.getVisibility
(CmsObject cms, List<CmsResource> resources) -
Uses of CmsResource in org.opencms.ui.dialogs.history.diff
Modifier and TypeMethodDescriptionstatic CmsResource
A_CmsAttributeDiff.readResource
(CmsObject cms, CmsHistoryResourceBean bean) Reads a historical resource for a history resource bean. -
Uses of CmsResource in org.opencms.ui.editors
Modifier and TypeMethodDescriptionCmsSourceEditor.getHighlightMode
(CmsResource resource) Returns the syntax highlighting type for the currently edited resource.void
A_CmsFrameEditor.initUI
(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) void
CmsSourceEditor.initUI
(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) void
I_CmsEditor.initUI
(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) Within this method the editor UI should be initialized.boolean
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 CmsResource 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.Modifier and TypeMethodDescriptionvoid
CmsMessageBundleEditor.initUI
(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) boolean
CmsMessageBundleEditor.matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) -
Uses of CmsResource in org.opencms.ui.favorites
Modifier and TypeMethodDescriptionvoid
CmsFavInfo.setResource
(CmsResource resource) Sets the resource -
Uses of CmsResource in org.opencms.ui.sitemap
Modifier and TypeFieldDescriptionprotected CmsResource
CmsUnlinkDialog.m_otherResource
The other resource.Modifier and TypeMethodDescriptionCmsSitemapTreeNodeData.getLinkedResource()
Gets the linked resource.CmsSitemapTreeNodeData.getResource()
Gets the sitemap entry resource.CmsLocaleComparePanel.getRoot()
CmsSitemapTreeController.getRoot()
Gets the resource corresponding to the tree's root.I_CmsLocaleCompareContext.getRoot()
Gets the root resource.CmsCopyPageDialog.TargetInfo.getTargetFolder()
Gets the target folder resource, or null if no target folder could be determined.protected CmsResource
CmsSitemapTreeController.readSitemapEntryFolderIfPossible
(CmsResource resource) If the given resource is the default file of a sitmeap entry folder, then returns that folder, else the original file.Modifier and TypeMethodDescriptionCmsSitemapTreeDataProvider.getData
(CmsResource resource) Gets the tree data for a resource.protected void
CmsLocaleComparePanel.initTree
(CmsResource rootRes) Initializes the tree with the given resource as a root.void
CmsLocaleLinkTargetSelectionDialog.onClickOk
(CmsResource selected) Executed when the 'OK' button is clicked.protected CmsResource
CmsSitemapTreeController.readSitemapEntryFolderIfPossible
(CmsResource resource) If the given resource is the default file of a sitmeap entry folder, then returns that folder, else the original file.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.CmsUnlinkDialog
(I_CmsDialogContext context, CmsResource otherResource) Creates a new instance.DialogContext
(CmsResource resource, CmsSitemapTreeNode node) Creates a new instance. -
Uses of CmsResource in org.opencms.ui.util
Modifier and TypeMethodDescriptionCmsNewResourceBuilder.createResource()
Triggers the resource creation.CmsNewResourceBuilder.getCreatedResource()
Gets the created resource.CmsNewResourceBuilder.safeCreateResource()
Creates a resource, but doesn't throw any exceptions.Modifier and TypeMethodDescriptionvoid
CmsNewResourceBuilder.setModel
(CmsResource modelResource) Sets the model resource. -
Uses of CmsResource in org.opencms.util
Modifier and TypeMethodDescriptionstatic List<CmsResource>
CmsFileUtil.removeRedundantResources
(List<CmsResource> resources) Removes all resources in the given List that are "redundant" because the parent folder is also contained in the List.Modifier and TypeMethodDescriptionCmsMacroResolver.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 String
CmsVfsUtil.readPropertyValueWithFolderFallbackForDefaultFiles
(CmsObject cms, CmsResource resource, String propertyName, Locale locale) Reads the property value for the provided name and resource.Modifier and TypeMethodDescriptionstatic String
CmsFileUtil.formatResourceNames
(CmsRequestContext context, List<CmsResource> resources) Returns a comma separated list of resource paths names, with the site root from the given OpenCms user context removed.static List<CmsResource>
CmsFileUtil.removeRedundantResources
(List<CmsResource> resources) Removes all resources in the given List that are "redundant" because the parent folder is also contained in the List. -
Uses of CmsResource in org.opencms.widgets
Modifier and TypeMethodDescriptionA_CmsWidget.CmsDummyWidgetDialog.getResource()
Gets the resource being edited.protected CmsResource
CmsCategoryWidget.getResource
(CmsObject cms, I_CmsWidgetParameter param) Returns the right resource, depending on the locale.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.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.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.static String
CmsVfsFileWidget.getDefaultSearchTypes
(CmsObject cms, CmsResource resource) Returns a comma separated list of the default search type names.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
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.void
A_CmsWidget.CmsDummyWidgetDialog.setResource
(CmsResource resource) Sets the resource being edited.ModifierConstructorDescriptionSearchTypesFactory
(CmsObject cms, CmsResource resource) Constructor. -
Uses of CmsResource in org.opencms.workflow
Modifier and TypeMethodDescriptionprotected 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.CmsDefaultPublishResourceFormatter.AlreadyPublishedValidator.findInvalidResources
(Set<CmsResource> resources) CmsDefaultPublishResourceFormatter.BlockingLockedValidator.findInvalidResources
(Set<CmsResource> resources) CmsDefaultPublishResourceFormatter.I_PublishResourceValidator.findInvalidResources
(Set<CmsResource> input) Finds the resources which should be excluded.CmsDefaultPublishResourceFormatter.NoPermissionsValidator.findInvalidResources
(Set<CmsResource> resources) protected com.google.common.base.Predicate<CmsResource>
CmsDefaultPublishResourceFormatter.getResourceMapFilter()
Gets the resource map filter.protected com.google.common.base.Predicate<CmsResource>
CmsExtendedPublishResourceFormatter.getResourceMapFilter()
CmsExtendedRealProjectWrapper.getResources
(CmsObject cms, Map<String, String> params, String workflowId) CmsWorkflowResources.getWorkflowResources()
Returns the workflowResources.Modifier and TypeMethodDescriptionboolean
CmsDefaultPublishResourceFormatter.PublishPermissionFilter.apply
(CmsResource input) protected CmsPublishResource
CmsDefaultPublishResourceFormatter.createPublishResource
(CmsResource resource) Creates a publish resource bean from a resource.CmsDefaultPublishResourceFormatter.AlreadyPublishedValidator.getInfoForResource
(CmsResource resource) CmsDefaultPublishResourceFormatter.BlockingLockedValidator.getInfoForResource
(CmsResource resource) CmsDefaultPublishResourceFormatter.I_PublishResourceValidator.getInfoForResource
(CmsResource resource) Gets the status information for an excluded resource.CmsDefaultPublishResourceFormatter.NoPermissionsValidator.getInfoForResource
(CmsResource resource) String[]
CmsWorkflowNotification.getResourceInfo
(CmsResource resource) Gets the fields which should be displayed for a single resource.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.protected void
CmsExtendedWorkflowManager.clearLocks
(CmsProject project, List<CmsResource> resources) Ensures that the resources to be released are unlocked.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 userCms, CmsWorkflowAction action, CmsPublishOptions options, List<CmsResource> resources) Executes a workflow action in the context of the current user.CmsDefaultPublishResourceFormatter.AlreadyPublishedValidator.findInvalidResources
(Set<CmsResource> resources) CmsDefaultPublishResourceFormatter.BlockingLockedValidator.findInvalidResources
(Set<CmsResource> resources) CmsDefaultPublishResourceFormatter.I_PublishResourceValidator.findInvalidResources
(Set<CmsResource> input) Finds the resources which should be excluded.CmsDefaultPublishResourceFormatter.NoPermissionsValidator.findInvalidResources
(Set<CmsResource> resources) protected void
CmsExtendedWorkflowManager.sendNotification
(CmsObject userCms, CmsUser recipient, CmsProject workflowProject, List<CmsResource> resources) Sends the notification for released resources.ModifierConstructorDescriptionCmsWorkflowNotification
(CmsObject adminCms, CmsObject userCms, CmsUser receiver, String notificationContent, CmsProject project, List<CmsResource> resources, String link) Creates a new workflow notification mail object.CmsWorkflowResources
(List<CmsResource> workflowResources, CmsWorkflow overrideWorkflow, Integer tooManyCount) Creates new instance. -
Uses of CmsResource in org.opencms.workplace
Modifier and TypeMethodDescriptionCmsWorkplaceLoginHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Modifier and TypeMethodDescriptionCmsWorkplaceLoginHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) static boolean
CmsWorkplace.isTemporaryFile
(CmsResource resource) Returnstrue
if the given resource is a temporary file. -
Uses of CmsResource 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. -
Uses of CmsResource in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionstatic boolean
CmsWorkplaceEditorManager.checkAcaciaEditorAvailable
(CmsObject cms, CmsResource resource) Checks whether GWT widgets are available for all fields of a content.abstract boolean
A_CmsPreEditorActionDefinition.doPreAction
(CmsResource resource, CmsDialog dialog, String originalParams) boolean
CmsPreEditorActionDefinitionXmlContent.doPreAction
(CmsResource resource, CmsDialog dialog, String originalParams) boolean
I_CmsPreEditorActionDefinition.doPreAction
(CmsResource resource, CmsDialog dialog, String originalParams) Returns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.protected static String
CmsEditorSessionInfo.getEditorSessionInfoKey
(CmsResource editedResource) Returns the session info key for the bean.boolean
CmsWorkplaceEditorManager.isEditorAvailableForResource
(CmsResource res) Checks if there is an editor which can process the given resource. -
Uses of CmsResource in org.opencms.workplace.editors.directedit
Modifier and TypeMethodDescriptionCmsDirectEditResourceInfo.getResource()
Returns the resource that is to be direct edited.ModifierConstructorDescriptionCmsDirectEditResourceInfo
(CmsDirectEditPermissions permissions, CmsResource resource, CmsLock lock) Creates a new direct edit resource info container. -
Uses of CmsResource 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
CmsResourceUtil.setResource
(CmsResource resource) Sets the resource.ModifierConstructorDescriptionCmsResourceUtil
(CmsObject cms, CmsResource resource) Creates a newCmsResourceUtil
object.CmsResourceUtil
(CmsResource resource) Creates a newCmsResourceUtil
object. -
Uses of CmsResource in org.opencms.workplace.galleries
Modifier and TypeMethodDescriptionprotected List<CmsResource>
A_CmsAjaxGallery.getCategoryItems()
Returns the resource items for the selected category.A_CmsAjaxGallery.getGalleries()
Returns a list of galleries which have the required gallery type id.static List<CmsResource>
A_CmsAjaxGallery.getGalleries
(int galleryTypeId, CmsObject cms) Returns a list of galleries which have the required gallery type id.A_CmsAjaxGallery.getGalleryItems()
Returns a list of gallery items (resources) for the currently selected gallery and resource type id.Modifier and TypeMethodDescriptionprotected void
A_CmsAjaxGallery.buildJsonItemCommonPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the information used for all resource types.protected JSONObject
A_CmsAjaxGallery.buildJsonItemObject
(CmsResource res) Returns a JSON object containing information of the given resource for usage in the gallery.protected abstract void
A_CmsAjaxGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for this resource type.protected void
CmsAjaxDownloadGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for download file resource type.protected void
CmsAjaxImageGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for image resource type.protected void
CmsAjaxLinkGallery.buildJsonItemSpecificPart
(JSONObject jsonObj, CmsResource res, String sitePath) Fills the JSON object with the specific information used for pointer file resource type.protected void
A_CmsAjaxGallery.writeTitleProperty
(CmsResource res) Changes the value of the property title for the specified resource.Modifier and TypeMethodDescriptionprotected void
A_CmsAjaxGallery.buildJsonResourceItems
(List<CmsResource> resourceitems, String parentFolder) Builds the JSON code to create items for the folder. -
Uses of CmsResource in org.opencms.xml
Modifier and TypeMethodDescriptionstatic CmsXmlContentDefinition
CmsXmlContentDefinition.getContentDefinitionForResource
(CmsObject cms, CmsResource resource) Factory method that returns the XML content definition instance for a given resource.static I_CmsXmlContentHandler
CmsXmlContentDefinition.getContentHandlerForResource
(CmsObject cms, CmsResource resource) Returns a content handler instance for the given resource. -
Uses of CmsResource in org.opencms.xml.containerpage
Modifier and TypeMethodDescriptionCmsLazyFolder.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.CmsConfigurationFileFinder.getConfigurationFile
(CmsObject cms, String containerPageUri) Returns the configuration file to use.CmsConfigurationItem.getFolder()
Returns the destination folder uri.Returns the folder if it already exists, or null if it doesn't.CmsDynamicFunctionBean.getFunctionFormatter()
Gets the generic function formatter resource.protected CmsResource
CmsDynamicFunctionParser.getFunctionFormatter
(CmsObject cms) Gets the function formatter resource, possibly from the cache.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.CmsContainerElementBean.getResource()
Returns the resource of this element.CmsConfigurationItem.getSourceFile()
Gets the source file uri.Modifier and TypeMethodDescriptionI_CmsADEConfiguration.getCreatableElements
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) Returns the list of creatable elements.I_CmsADEConfiguration.getSearchableResourceTypes
(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) Returns the list of searchable resource types.Modifier and TypeMethodDescriptionprotected 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.CmsXmlGroupContainerHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) CmsXmlInheritGroupContainerHandler.getCSSHeadIncludes
(CmsObject cms, CmsResource resource) CmsXmlDynamicFunctionHandler.getFormatterConfiguration
(CmsObject cms, CmsResource resource) I_CmsADEConfiguration.getFormattersForResource
(CmsObject cms, String containerPageRootPath, CmsResource res) Returns the formatter configuration for a given resource.CmsXmlGroupContainerHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) CmsXmlInheritGroupContainerHandler.getJSHeadIncludes
(CmsObject cms, CmsResource resource) protected CmsDynamicFunctionBean.Format
CmsDynamicFunctionParser.getMainFormat
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes) Parses the main format from the XML content.CmsXmlDynamicFunctionHandler.getSettings
(CmsObject cms, CmsResource res) 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.protected CmsDynamicFunctionBean
CmsDynamicFunctionParser.parseFunctionBean
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionRes, CmsResource functionFormatter) Parses a dynamic function bean.protected Map<String,
CmsXmlContentProperty> CmsDynamicFunctionParser.parseSettings
(CmsObject cms, I_CmsXmlContentLocation location, CmsResource functionResource) Parses the settings for the dynamic function from the XML content.protected void
CmsADECache.uncacheResource
(CmsResource resource) 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, 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.ModifierConstructorDescriptionCmsConfigurationItem
(CmsResource sourceFile, CmsResource destinationFolder, CmsLazyFolder lazyFolder, String pattern, boolean isDefault) Creates a new type configuration item.CmsDynamicFunctionBean
(CmsDynamicFunctionBean.Format mainFormat, List<CmsDynamicFunctionBean.Format> otherFormats, Map<String, CmsXmlContentProperty> settingConfig, CmsResource resource, CmsResource functionFormatter) Creates a new dynamic function bean.CmsLazyFolder
(CmsResource folder) Initializes this object with an existing folder.CmsSchemaFormatterBeanWrapper
(CmsObject cms, I_CmsFormatterBean wrappedBean, I_CmsXmlContentHandler contentHandler, CmsResource resource) Creates a new wrapper instance. -
Uses of CmsResource in org.opencms.xml.containerpage.mutable
ModifierConstructorDescriptionCmsContainerPageWrapper
(CmsObject cms, CmsResource res) Creates a new instance by reading the container page from a file. -
Uses of CmsResource in org.opencms.xml.content
Modifier and TypeMethodDescriptionCmsDefaultXmlContentHandler.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) 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.CmsDefaultXmlContentHandler.getFormatterConfiguration
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getFormatterConfiguration
(CmsObject cms, CmsResource res) Returns the container page element formatter configuration for a given resource.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.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.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.CmsDefaultXmlContentHandler.getSettings
(CmsObject cms, CmsResource resource) I_CmsXmlContentHandler.getSettings
(CmsObject cms, CmsResource resource) Returns the element settings defined for the container page formatters.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.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.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
CmsMappingResolutionContext.setAttribute
(CmsResource res, CmsMappingResolutionContext.AttributeType type, Long value) Helper method for setting release/expiration date.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. -
Uses of CmsResource in org.opencms.xml.page
Modifier and TypeMethodDescriptionstatic 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 CmsResource in org.opencms.xml.templatemapper
Modifier and TypeMethodDescriptionCmsTemplateMapperAction.getVisibility
(CmsObject cms, List<CmsResource> resources) ModifierConstructorDescriptionprotected
CmsTemplateMappingContentRewriter
(CmsObject cms, CmsResource folder) Creates a new instance. -
Uses of CmsResource in org.opencms.xml.xml2json
Modifier and TypeMethodDescriptionCmsJsonResult.getNextResource()
Gets the next resource which should be loaded.CmsJsonResourceHandler.initResource
(CmsResource origRes, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Modifier and TypeMethodDescriptionCmsJsonResourceHandler.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.ModifierConstructorDescriptionCmsJsonResult
(CmsResource resource) Creates a result which indicates that a different resource should be loaded instead.CmsResourceDataJsonHelper
(CmsObject cms, CmsResource resource, Predicate<String> propertyFilter) Creates a new instance. -
Uses of CmsResource in org.opencms.xml.xml2json.document
Modifier and TypeFieldDescriptionprotected CmsResource
CmsJsonDocumentResource.m_resource
The resource.Modifier and TypeMethodDescriptionprotected JSONObject
CmsJsonDocumentFolder.folderListingJson
(CmsResource target, int levelsLeft) Formats folder listing as a JSON object, with the individual file names in the folder as keys.protected void
CmsJsonDocumentXmlContent.insertJsonLinkedContent
(CmsResource resource) Inserts a JSON representation of a linked content into this JSON document.ModifierConstructorDescriptionCmsJsonDocumentResource
(CmsJsonRequest jsonRequest, CmsResource resource) Creates a new JSON document. -
Uses of CmsResource in org.opencms.xml.xml2json.handler
Modifier and TypeMethodDescriptionCmsJsonHandlerContext.getResource()
Gets the resource (may be null if there is no resource).ModifierConstructorDescriptionCmsJsonHandlerContext
(CmsObject cms, CmsObject rootCms, String path, CmsResource resource, Map<String, String> params, CmsParameterConfiguration handlerConfig, CmsJsonAccessPolicy policy) Creates a new instance. -
Uses of CmsResource in org.opencms.xml.xml2json.renderer
ModifierConstructorDescriptionCmsJsonRendererContainerPage
(CmsObject cms, CmsResource page, Predicate<String> propertyFilter) Creates a new renderer instance.
CmsObject.createResource(String, I_CmsResourceType)
instead.