public class CmsStaticExportExportRule
extends java.lang.Object
| 构造器和说明 |
|---|
CmsStaticExportExportRule(java.lang.String name,
java.lang.String description)
Default constructor.
|
CmsStaticExportExportRule(java.lang.String name,
java.lang.String description,
java.util.List<java.util.regex.Pattern> modifiedResources,
java.util.List<java.lang.String> exportResourcePatterns)
Full Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExportResourcePattern(java.lang.String exportResource)
Adds a export Resource expression.
|
void |
addModifiedResource(java.lang.String modifiedRegex)
Adds a modified Resource regular expression.
|
java.lang.String |
getDescription()
Returns the description.
|
java.util.List<java.lang.String> |
getExportResourcePatterns()
Returns the export Resources list.
|
java.util.Set<CmsPublishedResource> |
getExportResources(CmsObject cms)
Returns a set of
objects containing all resources specified by the
<export-resources> node of this rule. |
java.util.List<java.util.regex.Pattern> |
getModifiedResources()
Returns the modified Resources list as list of
. |
java.lang.String |
getName()
Returns the name.
|
java.util.Set<CmsPublishedResource> |
getRelatedResources(CmsObject cms,
CmsPublishedResource publishedResource)
Returns a set of
objects specified by the
<export-resources> node of this rule, if the publishedResource
matches a modified Resource regular expression. |
boolean |
match(java.lang.String vfsName)
Checks if a vfsName matches the given modified resource patterns.
|
java.lang.String |
toString() |
public CmsStaticExportExportRule(java.lang.String name,
java.lang.String description)
name - the name of the ruledescription - the description for the rulepublic CmsStaticExportExportRule(java.lang.String name,
java.lang.String description,
java.util.List<java.util.regex.Pattern> modifiedResources,
java.util.List<java.lang.String> exportResourcePatterns)
name - the name of the ruledescription - the description of the rulemodifiedResources - a list of patterns to identify modified resourcesexportResourcePatterns - a list of strings to export resourcespublic void addExportResourcePattern(java.lang.String exportResource)
exportResource - the export Resource expression to addpublic void addModifiedResource(java.lang.String modifiedRegex)
modifiedRegex - the modified Resource regular expression to addpublic java.lang.String getDescription()
public java.util.List<java.lang.String> getExportResourcePatterns()
public java.util.Set<CmsPublishedResource> getExportResources(CmsObject cms) throws CmsException
CmsPublishedResource objects containing all resources specified by the
<export-resources> node of this rule.cms - the current OpenCms contextCmsException - if something goes wrongpublic java.util.List<java.util.regex.Pattern> getModifiedResources()
Pattern.Patternpublic java.lang.String getName()
public java.util.Set<CmsPublishedResource> getRelatedResources(CmsObject cms, CmsPublishedResource publishedResource) throws CmsException
CmsPublishedResource objects specified by the
<export-resources> node of this rule, if the publishedResource
matches a modified Resource regular expression.cms - the cms contextpublishedResource - a published resource to testnull if resource does not matchCmsException - if something goes wrongpublic boolean match(java.lang.String vfsName)
vfsName - the vfs name of a resource to checkpublic java.lang.String toString()
toString 在类中 java.lang.ObjectObject.toString()