public interface CustomLayoutManager
Modifier and Type | Method and Description |
---|---|
Collection<DefaultDecorator> |
getAllDefaultDecorators()
Retrieves a collection of all default decorators without customization
|
Collection<PersistentDecorator> |
getApplicableCustomDecoratorsForSpace(String spaceKey)
Returns allcustom decorators that apply to a space, whether they are space level or global level.
|
Collection<PersistentDecorator> |
getCustomGlobalDecorators()
Returns all global custom decorators (does not retrieve space level decorators)
|
Collection<PersistentDecorator> |
getCustomSpaceDecorators(String spaceKey)
Returns all custom decorators defined for a specific space only (does not retrieve global decorators)
|
DefaultDecorator |
getDefaultDecorator(String decoratorName)
Retrieves the default decorator for a given decorator name without customization
|
PersistentDecorator |
getPersistentDecorator(String spaceKey,
String decoratorName)
Retrieves a custom decorator for the (spaceKey, name) combination.
|
boolean |
hasCustomDecorator(String spaceKey,
String decoratorName)
Determines if a given space overrides a default decorator with a custom one.
|
boolean |
hasCustomGlobalDecorator(String decoratorName)
Determines if a given default decorator is overridden globally
|
boolean |
hasCustomSpaceDecorator(String spaceKey,
String decoratorName)
Determines if a given space overrides a default decorator with a custom one at the space level
|
void |
remove(PersistentDecorator persistentDecorator)
Removes the given custom decorator, and flushes it from the velocity cache
|
void |
remove(String spaceKey,
String decoratorName)
Removes the custom decorator with the given (spaceKey, name) pair, and flushes it from the velocity cache
|
void |
removeAllCustomGlobalDecorators()
Removes all globally defines custom decorators (does not remove space level custom decorators)
|
void |
removeAllCustomSpaceDecorators(String spaceKey)
Removes all custom decorators defined for a given space (does not remove global ones)
|
void |
saveOrUpdate(PersistentDecorator persistentDecorator)
Saves the given decorator (or updates it if it already exists), and updates the velocity cache
|
void |
saveOrUpdate(String spaceKey,
String decoratorName,
String content)
Creates a decorator for the given spaceKey with the given name, and saves it.
|
boolean |
usesCustomLayout(String spaceKey)
Determines if a space has any custom layout decorators defined.
|
void saveOrUpdate(PersistentDecorator persistentDecorator)
void saveOrUpdate(String spaceKey, String decoratorName, String content)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorcontent
- the decorator bodyPersistentDecorator getPersistentDecorator(String spaceKey, String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorCollection<PersistentDecorator> getCustomSpaceDecorators(String spaceKey)
spaceKey
- null spaceKey indicates a global decoratorCollection<PersistentDecorator> getApplicableCustomDecoratorsForSpace(String spaceKey)
Collection<PersistentDecorator> getCustomGlobalDecorators()
boolean hasCustomSpaceDecorator(String spaceKey, String decoratorName)
spaceKey
- null spaceKey indicates globaldecoratorName
- the filename of the decoratorboolean hasCustomGlobalDecorator(String decoratorName)
decoratorName
- the filename of the decoratorboolean hasCustomDecorator(String spaceKey, String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorboolean usesCustomLayout(String spaceKey)
spaceKey
- null spaceKey indicates globalvoid remove(String spaceKey, String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorvoid remove(PersistentDecorator persistentDecorator)
persistentDecorator
- the custom decorator to deletevoid removeAllCustomSpaceDecorators(String spaceKey)
spaceKey
- null spaceKey indicates globalvoid removeAllCustomGlobalDecorators()
DefaultDecorator getDefaultDecorator(String decoratorName)
decoratorName
- The filename of the default decoratorCollection<DefaultDecorator> getAllDefaultDecorators()
Copyright © 2003–2017 Atlassian. All rights reserved.