Uses of Class
org.opencms.relations.CmsRelation
Package
Description
This package contains the server-side classes for the publish module.
Low-level database connection and access functionality.
Generic (ANSI-SQL) 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.
Contains functions to import and export resources from the OpenCms VFS.
Classes to handle the OpenCms publish process.
Classes to represent and validate the internal and external links/relations of resources in the OpenCms VFS.
-
Uses of CmsRelation in org.opencms.ade.publish
Modifier and TypeMethodDescriptionCmsPublish.relationToBean
(CmsRelation relation) Creates a publish resource bean from the target information of a relation object. -
Uses of CmsRelation in org.opencms.cmis
Modifier and TypeMethodDescriptionCmsCmisRelationHelper.RelationKey.getRelation()
Gets the relation object.Modifier and TypeMethodDescriptionprotected 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.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.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 String
CmsCmisRelationHelper.createReadableName
(CmsRelation relation) Creates a user-readable name from the given relation object. -
Uses of CmsRelation in org.opencms.db
Modifier and TypeMethodDescriptionCmsDriverManager.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.I_CmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Reads all relations with the given filter for the given resource.CmsDriverManager.validateRelations
(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources.CmsSecurityManager.validateRelations
(CmsRequestContext context, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources.Modifier and TypeMethodDescriptionvoid
I_CmsVfsDriver.createRelation
(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation) Creates a newCmsRelation
object in the database.Modifier and TypeMethodDescriptionvoid
CmsDriverManager.ResourceOUMap.init
(Collection<CmsRelation> ouRelations, Collection<CmsOrganizationalUnit> ous) Initializes the OU resource data. -
Uses of CmsRelation in org.opencms.db.generic
Modifier and TypeMethodDescriptionprotected CmsRelation
CmsVfsDriver.internalReadRelation
(ResultSet res) Creates a newCmsRelation
object from the given result set entry.Modifier and TypeMethodDescriptionCmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Modifier and TypeMethodDescriptionvoid
CmsVfsDriver.createRelation
(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation) -
Uses of CmsRelation in org.opencms.file
Modifier and TypeMethodDescriptionprotected List<CmsRelation>
CmsLinkRewriter.findRelationsFromTargetToSource()
Finds relations from the target root folder or its children to the source root folder or its children.CmsObject.getRelationsForResource
(String resourceName, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsObject.getRelationsForResource
(CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsObject.readRelations
(CmsRelationFilter filter) Returns all relations matching the given filter.Modifier and TypeMethodDescriptionprotected void
CmsLinkRewriter.rewriteContent
(CmsFile file, Collection<CmsRelation> relations) Rewrites the links included in the content itself.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. -
Uses of CmsRelation in org.opencms.importexport
Modifier and TypeFieldDescriptionprotected Map<String,
List<CmsRelation>> CmsImportVersion5.m_importedRelations
Deprecated.Stores all relations defined in the import file to be created after all resources has been imported. -
Uses of CmsRelation in org.opencms.publish
Modifier and TypeMethodDescriptionCmsPublishManager.validateRelations
(CmsObject cms, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources. -
Uses of CmsRelation in org.opencms.relations
Modifier and TypeFieldDescriptionstatic final Comparator<CmsRelation>
CmsRelation.COMPARATOR
A comparator for the source & target path plus the relation type of 2 relations.protected Map<String,
List<CmsRelation>> CmsInternalLinksValidator.m_brokenRelations
The internal computed broken relations map.protected Map<String,
List<CmsRelation>> CmsRelationDeleteValidator.m_brokenRelations
The internal computed broken relations map.protected Map<String,
List<CmsRelation>> CmsRelationPublishValidator.m_brokenRelations
The internal computed broken relations map.Modifier and TypeMethodDescriptionCmsRelation.withTargetId
(CmsUUID id) Copies this relation, but sets the target id in the copy to the given value.Modifier and TypeMethodDescriptionCmsInternalLinksValidator.getBrokenLinksForResource
(String resourceName) Returns all broken links for the given resource.CmsRelationValidatorInfoEntry.getRelations()
Returns all the relations for this entry.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.CmsRelationSystemValidator.validateResources
(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Validates the relations against the online project.CmsRelationDeleteValidator.values()
CmsRelationPublishValidator.values()
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.ModifierConstructorDescriptionCmsRelationValidatorInfoEntry
(String entryName, String resourceName, String siteName, String siteRoot, List<CmsRelation> relations) Default constructor.