|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.staticexport.CmsStaticExportExportRule
public class CmsStaticExportExportRule
Help class for storing of export-rules.
Constructor Summary | |
---|---|
CmsStaticExportExportRule(java.lang.String name,
java.lang.String description)
Default constructor. |
|
CmsStaticExportExportRule(java.lang.String name,
java.lang.String description,
java.util.List modifiedResources,
java.util.List exportResourcePatterns)
Full Constructor. |
Method Summary | |
---|---|
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 |
getExportResourcePatterns()
Returns the export Resources list. |
java.util.Set |
getExportResources(CmsObject cms)
Returns a set of objects containing all resources specified by the
<export-resources> node of this rule. |
java.util.List |
getModifiedResources()
Returns the modified Resources list as list of . |
java.lang.String |
getName()
Returns the name. |
java.util.Set |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 modifiedResources, java.util.List 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 resourcesMethod Detail |
---|
public 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 getExportResourcePatterns()
public java.util.Set getExportResources(CmsObject cms) throws CmsException
CmsPublishedResource
objects containing all resources specified by the
<export-resources>
node of this rule.
cms
- the current OpenCms context
CmsException
- if something goes wrongpublic java.util.List getModifiedResources()
Pattern
.
Pattern
public java.lang.String getName()
public java.util.Set 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 test
null
if resource does not match
CmsException
- if something goes wrongpublic boolean match(java.lang.String vfsName)
vfsName
- the vfs name of a resource to check
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |