public class CmsConfigurationItem extends java.lang.Object
A configuration item describes which file should be used as a template for new content elements, and at which location in the VFS they should be created.
It does not contain a type, since the type is given by the type of the source file.
Constructor and Description |
---|
CmsConfigurationItem(CmsResource sourceFile,
CmsResource destinationFolder,
CmsLazyFolder lazyFolder,
java.lang.String pattern,
boolean isDefault)
Creates a new type configuration item.
|
Modifier and Type | Method and Description |
---|---|
CmsResource |
getFolder()
Returns the destination folder uri.
|
CmsLazyFolder |
getLazyFolder()
Returns a helper object which represents a folder which may still have to be created.
|
java.lang.String |
getPattern()
Returns the file pattern.
|
CmsResource |
getSourceFile()
Gets the source file uri.
|
boolean |
isDefault()
Returns if this item is default for it's resource-type.
|
public CmsConfigurationItem(CmsResource sourceFile, CmsResource destinationFolder, CmsLazyFolder lazyFolder, java.lang.String pattern, boolean isDefault)
sourceFile
- the source filedestinationFolder
- the destination folderlazyFolder
- the lazy folder objectpattern
- the file patternisDefault
- true
if this item is default for it's resource-typepublic CmsResource getFolder()
public CmsLazyFolder getLazyFolder()
public java.lang.String getPattern()
public CmsResource getSourceFile()
public boolean isDefault()
true
if this item is default for it's resource-type