|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomLayoutManager
Manager for layouts -- theme-like Velocity templates that can be edited from within the Confluence administrative UI.
Method Summary | |
---|---|
java.util.Collection<DefaultDecorator> |
getAllDefaultDecorators()
Retrieves a collection of all default decorators without customization |
java.util.Collection<PersistentDecorator> |
getApplicableCustomDecoratorsForSpace(java.lang.String spaceKey)
Returns allcustom decorators that apply to a space, whether they are space level or global level. |
java.util.Collection<PersistentDecorator> |
getCustomGlobalDecorators()
Returns all global custom decorators (does not retrieve space level decorators) |
java.util.Collection<PersistentDecorator> |
getCustomSpaceDecorators(java.lang.String spaceKey)
Returns all custom decorators defined for a specific space only (does not retrieve global decorators) |
DefaultDecorator |
getDefaultDecorator(java.lang.String decoratorName)
Retrieves the default decorator for a given decorator name without customization |
PersistentDecorator |
getPersistentDecorator(java.lang.String spaceKey,
java.lang.String decoratorName)
Retrieves a custom decorator for the (spaceKey, name) combination. |
boolean |
hasCustomDecorator(java.lang.String spaceKey,
java.lang.String decoratorName)
Determines if a given space overrides a default decorator with a custom one. |
boolean |
hasCustomGlobalDecorator(java.lang.String decoratorName)
Determines if a given default decorator is overridden globally |
boolean |
hasCustomSpaceDecorator(java.lang.String spaceKey,
java.lang.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(java.lang.String spaceKey,
java.lang.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(java.lang.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(java.lang.String spaceKey,
java.lang.String decoratorName,
java.lang.String content)
Creates a decorator for the given spaceKey with the given name, and saves it. |
boolean |
usesCustomLayout(java.lang.String spaceKey)
Determines if a space has any custom layout decorators defined. |
Method Detail |
---|
void saveOrUpdate(PersistentDecorator persistentDecorator)
void saveOrUpdate(java.lang.String spaceKey, java.lang.String decoratorName, java.lang.String content)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorcontent
- the decorator bodyPersistentDecorator getPersistentDecorator(java.lang.String spaceKey, java.lang.String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decorator
java.util.Collection<PersistentDecorator> getCustomSpaceDecorators(java.lang.String spaceKey)
spaceKey
- null spaceKey indicates a global decorator
java.util.Collection<PersistentDecorator> getApplicableCustomDecoratorsForSpace(java.lang.String spaceKey)
java.util.Collection<PersistentDecorator> getCustomGlobalDecorators()
boolean hasCustomSpaceDecorator(java.lang.String spaceKey, java.lang.String decoratorName)
spaceKey
- null spaceKey indicates globaldecoratorName
- the filename of the decorator
boolean hasCustomGlobalDecorator(java.lang.String decoratorName)
decoratorName
- the filename of the decorator
boolean hasCustomDecorator(java.lang.String spaceKey, java.lang.String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decorator
boolean usesCustomLayout(java.lang.String spaceKey)
spaceKey
- null spaceKey indicates global
void remove(java.lang.String spaceKey, java.lang.String decoratorName)
spaceKey
- null spaceKey indicates a global decoratordecoratorName
- the filename of the decoratorvoid remove(PersistentDecorator persistentDecorator)
persistentDecorator
- the custom decorator to deletevoid removeAllCustomSpaceDecorators(java.lang.String spaceKey)
spaceKey
- null spaceKey indicates globalvoid removeAllCustomGlobalDecorators()
DefaultDecorator getDefaultDecorator(java.lang.String decoratorName)
decoratorName
- The filename of the default decoratorjava.util.Collection<DefaultDecorator> getAllDefaultDecorators()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |