Uses of Class
org.opencms.relations.CmsRelation
-
Packages that use CmsRelation Package Description org.opencms.ade.publish This package contains the server-side classes for the publish module.org.opencms.cmis org.opencms.db Low-level database connection and access functionality.org.opencms.db.generic Generic (ANSI-SQL) implementation of the OpenCms database connector.org.opencms.file This important package provides the methods to access the OpenCms VFS repository with the permissions of an authenticated user.org.opencms.importexport Contains functions to import and export resources from the OpenCms VFS.org.opencms.publish Classes to handle the OpenCms publish process.org.opencms.relations 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
Methods in org.opencms.ade.publish with parameters of type CmsRelation Modifier and Type Method Description CmsPublishResource
CmsPublish. relationToBean(CmsRelation relation)
Creates a publish resource bean from the target information of a relation object. -
Uses of CmsRelation in org.opencms.cmis
Methods in org.opencms.cmis that return CmsRelation Modifier and Type Method Description CmsRelation
CmsCmisRelationHelper.RelationKey. getRelation()
Gets the relation object.Methods in org.opencms.cmis with parameters of type CmsRelation Modifier and Type Method Description 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.ObjectData
CmsCmisRelationHelper. collectObjectData(CmsCmisCallContext context, CmsObject cms, CmsResource resource, CmsRelation relation, java.util.Set<java.lang.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, java.util.Set<java.lang.String> orgfilter, org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
Gathers all base properties of a file or folder.protected java.lang.String
CmsCmisRelationHelper. createReadableName(CmsRelation relation)
Creates a user-readable name from the given relation object. -
Uses of CmsRelation in org.opencms.db
Methods in org.opencms.db that return types with arguments of type CmsRelation Modifier and Type Method Description java.util.List<CmsRelation>
CmsDriverManager. getRelationsForResource(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter)
Returns all relations for the given resource matching the given filter.java.util.List<CmsRelation>
CmsSecurityManager. getRelationsForResource(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter)
Returns all relations for the given resource matching the given filter.java.util.List<CmsRelation>
I_CmsVfsDriver. readRelations(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter)
Reads all relations with the given filter for the given resource.java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsDriverManager. validateRelations(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report)
Validates the relations for the given resources.java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsSecurityManager. validateRelations(CmsRequestContext context, CmsPublishList publishList, I_CmsReport report)
Validates the relations for the given resources.Methods in org.opencms.db with parameters of type CmsRelation Modifier and Type Method Description void
I_CmsVfsDriver. createRelation(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation)
Creates a newCmsRelation
object in the database.Method parameters in org.opencms.db with type arguments of type CmsRelation Modifier and Type Method Description void
CmsDriverManager.ResourceOUMap. init(java.util.Collection<CmsRelation> ouRelations, java.util.Collection<CmsOrganizationalUnit> ous)
Initializes the OU resource data. -
Uses of CmsRelation in org.opencms.db.generic
Methods in org.opencms.db.generic that return CmsRelation Modifier and Type Method Description protected CmsRelation
CmsVfsDriver. internalReadRelation(java.sql.ResultSet res)
Creates a newCmsRelation
object from the given result set entry.Methods in org.opencms.db.generic that return types with arguments of type CmsRelation Modifier and Type Method Description java.util.List<CmsRelation>
CmsVfsDriver. readRelations(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter)
Methods in org.opencms.db.generic with parameters of type CmsRelation Modifier and Type Method Description void
CmsVfsDriver. createRelation(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation)
-
Uses of CmsRelation in org.opencms.file
Methods in org.opencms.file that return types with arguments of type CmsRelation Modifier and Type Method Description protected java.util.List<CmsRelation>
CmsLinkRewriter. findRelationsFromTargetToSource()
Finds relations from the target root folder or its children to the source root folder or its children.java.util.List<CmsRelation>
CmsObject. getRelationsForResource(java.lang.String resourceName, CmsRelationFilter filter)
Returns all relations for the given resource matching the given filter.java.util.List<CmsRelation>
CmsObject. getRelationsForResource(CmsResource resource, CmsRelationFilter filter)
Returns all relations for the given resource matching the given filter.java.util.List<CmsRelation>
CmsObject. readRelations(CmsRelationFilter filter)
Returns all relations matching the given filter.Method parameters in org.opencms.file with type arguments of type CmsRelation Modifier and Type Method Description protected void
CmsLinkRewriter. rewriteContent(CmsFile file, java.util.Collection<CmsRelation> relations)
Rewrites the links included in the content itself.protected void
CmsLinkRewriter. rewriteLinks(CmsResource resource, java.util.Collection<CmsRelation> relations)
Rewrites the links for a single resource.protected void
CmsLinkRewriter. rewriteOtherRelations(CmsResource res, java.util.Collection<CmsRelation> relations)
Rewrites relations which are not derived from links in the content itself. -
Uses of CmsRelation in org.opencms.importexport
Fields in org.opencms.importexport with type parameters of type CmsRelation Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.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
Methods in org.opencms.publish that return types with arguments of type CmsRelation Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsPublishManager. validateRelations(CmsObject cms, CmsPublishList publishList, I_CmsReport report)
Validates the relations for the given resources. -
Uses of CmsRelation in org.opencms.relations
Fields in org.opencms.relations with type parameters of type CmsRelation Modifier and Type Field Description static java.util.Comparator<CmsRelation>
CmsRelation. COMPARATOR
A comparator for the source & target path plus the relation type of 2 relations.protected java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsInternalLinksValidator. m_brokenRelations
The internal computed broken relations map.protected java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsRelationDeleteValidator. m_brokenRelations
The internal computed broken relations map.protected java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsRelationPublishValidator. m_brokenRelations
The internal computed broken relations map.Methods in org.opencms.relations that return CmsRelation Modifier and Type Method Description CmsRelation
CmsRelation. withTargetId(CmsUUID id)
Copies this relation, but sets the target id in the copy to the given value.Methods in org.opencms.relations that return types with arguments of type CmsRelation Modifier and Type Method Description java.util.List<CmsRelation>
CmsInternalLinksValidator. getBrokenLinksForResource(java.lang.String resourceName)
Returns all broken links for the given resource.java.util.List<CmsRelation>
CmsRelationValidatorInfoEntry. getRelations()
Returns all the relations for this entry.protected java.util.List<CmsRelation>
CmsRelationSystemValidator. validateLinks(CmsDbContext dbc, CmsResource resource, java.util.Map<java.lang.String,CmsResource> fileLookup, CmsProject project, I_CmsReport report)
Validates the links for the specified resource.java.util.Map<java.lang.String,java.util.List<CmsRelation>>
CmsRelationSystemValidator. validateResources(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report)
Validates the relations against the online project.java.util.Collection<java.util.List<CmsRelation>>
CmsRelationDeleteValidator. values()
java.util.Collection<java.util.List<CmsRelation>>
CmsRelationPublishValidator. values()
Methods in org.opencms.relations with parameters of type CmsRelation Modifier and Type Method Description protected boolean
CmsRelationSystemValidator. checkLinkForDeletedLinkTarget(CmsRelation relation, java.lang.String link, java.util.Map<java.lang.String,CmsResource> fileLookup, com.google.common.collect.HashMultimap<java.lang.String,java.lang.String> relationTargets)
Checks a link to a resource which has been deleted.protected boolean
CmsRelationSystemValidator. checkLinkForNewOrChangedLinkSource(CmsDbContext dbc, CmsResource resource, CmsRelation relation, java.lang.String link, CmsProject project, java.util.Map<java.lang.String,CmsResource> fileLookup)
Checks a link from a resource which has changed.Constructor parameters in org.opencms.relations with type arguments of type CmsRelation Constructor Description CmsRelationValidatorInfoEntry(java.lang.String entryName, java.lang.String resourceName, java.lang.String siteName, java.lang.String siteRoot, java.util.List<CmsRelation> relations)
Default constructor.
-