Class DecoratorName
java.lang.Object
com.atlassian.confluence.setup.velocity.DecoratorName
Encapsulates the logic around creating and parsing decorator path names.
These are in the form:
- @[space-key]/[template-name] -- custom space decorators
- /[template-name]/ -- global decorators
-
Constructor Summary
ConstructorsConstructorDescriptionDecoratorName(String source) DecoratorName(String spaceKey, String templateName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic booleanisSpaceDecoratorSource(String source) toString()
-
Constructor Details
-
DecoratorName
- Parameters:
spaceKey- if a space custom decorator the key of the space, otherwise null.templateName- the name of the template, usually a path on the filesystem.
-
DecoratorName
- Parameters:
source- the full path of the decorator, which will be split according to the decorator path name rules.- Throws:
IllegalArgumentException- if there is a problem parsing the source
-
-
Method Details
-
isSpaceDecoratorSource
-
getSpaceKey
- Returns:
- the space key of the space the decorator belongs to, or null if this decorator is a global decorator.
-
getTemplateName
-
isGlobalDecorator
public boolean isGlobalDecorator() -
isSpaceDecorator
public boolean isSpaceDecorator() -
getSource
-
toString
-