| Package | Description |
|---|---|
| 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.relations |
Classes to represent and validate the internal and external links/relations of resources in the OpenCms VFS.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
CmsPublishList |
CmsDriverManager.getRelatedResourcesToPublish(CmsDbContext dbc,
CmsPublishList publishList,
CmsRelationFilter filter)
Returns a new publish list that contains the unpublished resources related
to all resources in the given publish list, the related resources exclude
all resources in the given publish list and also locked (by other users) resources.
|
CmsPublishList |
CmsSecurityManager.getRelatedResourcesToPublish(CmsRequestContext context,
CmsPublishList publishList,
CmsRelationFilter filter)
Returns a new publish list that contains the unpublished resources related
to all resources in the given publish list, the related resources exclude
all resources in the given publish list and also locked (by other users) resources.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CmsVfsDriver.deleteRelations(CmsDbContext dbc,
CmsUUID projectId,
CmsResource resource,
CmsRelationFilter filter) |
protected java.lang.String |
CmsVfsDriver.prepareRelationConditions(CmsUUID projectId,
CmsRelationFilter filter,
CmsResource resource,
java.util.List<java.lang.Object> params,
boolean checkSource)
Build the whole WHERE sql statement part for the given relation filter.
|
java.util.List<CmsRelation> |
CmsVfsDriver.readRelations(CmsDbContext dbc,
CmsUUID projectId,
CmsResource resource,
CmsRelationFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
CmsObject.deleteRelationsFromResource(CmsResource resource,
CmsRelationFilter filter)
Deletes the relations to a given resource.
|
void |
CmsObject.deleteRelationsFromResource(java.lang.String resourceName,
CmsRelationFilter filter)
Deletes the relations to a given resource.
|
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.getRelationsForResource(java.lang.String resourceName,
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.
|
| Modifier and Type | Field and Description |
|---|---|
static CmsRelationFilter |
CmsRelationFilter.ALL
To filter all sources and targets.
|
static CmsRelationFilter |
CmsRelationFilter.SOURCES
To filter all sources.
|
static CmsRelationFilter |
CmsRelationFilter.TARGETS
To filter all targets.
|
| Modifier and Type | Method and Description |
|---|---|
CmsRelationFilter |
CmsRelationFilter.filterDefinedInContent()
Returns an extended filter with defined in content type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterIncludeChildren()
Returns an extended filter that will extend the result to the given path and all its subresources.
|
CmsRelationFilter |
CmsRelationFilter.filterInternal()
Returns an extended filter with internal type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterNotDefinedInContent()
Returns an extended filter with not defined in content type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterPath(java.lang.String path)
Returns an extended filter with the given source relation path restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterResource(CmsResource resource)
Returns an extended filter with the given resource (path and id) restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterStrong()
Returns an extended filter with strong type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterStructureId(CmsUUID structureId)
Returns an extended filter with the given structure id restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterType(CmsRelationType type)
Returns an extended filter with the given type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterUserDefined()
Returns an extended filter with user defined type restriction.
|
CmsRelationFilter |
CmsRelationFilter.filterWeak()
Returns an extended filter with weak type restriction.
|
static CmsRelationFilter |
CmsRelationFilter.relationsFromStructureId(CmsUUID structureId)
Utility method which prepares a filter for relations which point *from* a given structure id.
|
static CmsRelationFilter |
CmsRelationFilter.relationsToStructureId(CmsUUID structureId)
Utility method which prepares a filter for relations which point *to* a given structure id.
|