public class CmsPublishRelationFinder
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
CmsPublishRelationFinder.ResourceMap
A map from resources to sets of resources, which automtically instantiates an empty set when accessing a key that
doesn't exist via get().
|
构造器和说明 |
---|
CmsPublishRelationFinder(CmsObject cms,
java.util.Collection<CmsResource> resources,
boolean keepOriginalUnchangedResources)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
CmsPublishRelationFinder.ResourceMap |
getPublishRelatedResources()
Gets the related resources in the form of a ResourceMap.
|
void |
removeUnchangedTopLevelResources(CmsPublishRelationFinder.ResourceMap publishRelatedResources)
Removes unchanged resources from the top level, and if they have children which do not occur anywhere else,
moves these children to the top level.
|
public CmsPublishRelationFinder(CmsObject cms, java.util.Collection<CmsResource> resources, boolean keepOriginalUnchangedResources)
cms
- the CMS context to useresources
- the resources for which the related resources should be foundkeepOriginalUnchangedResources
- true if unchanged resources from the original resource list should be keptpublic CmsPublishRelationFinder.ResourceMap getPublishRelatedResources()
public void removeUnchangedTopLevelResources(CmsPublishRelationFinder.ResourceMap publishRelatedResources)
publishRelatedResources
- the resource map to modify