|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
S - the content state type parameterpublic interface Customization<S>
An entity representing the customization of a content.
| Method Summary | |
|---|---|
Customization<S> |
customize(CustomizationMode mode,
Collection<CustomizationContext> contexts)
Customize the state with respect to the provided customization context. |
void |
destroy()
Destroys the customization. |
String |
getContentId()
Returns the content id this customization refers to. |
Set<CustomizationContext> |
getContexts()
Returns the contexts that are associated with that customization. |
Customization<S> |
getCustomization(Set<CustomizationContext> contexts)
Returns the stateful content associated with the specified customization contexts or null if no customization can be created for the desired contexts. |
String |
getName()
Returns the customization name or null if it does not have any name. |
S |
getState()
Returns the customization state. |
ContentType<S> |
getType()
Returns the content type this customization refers to. |
void |
setState(S state)
Updates the customization state. |
| Method Detail |
|---|
String getName()
String getContentId()
ContentType<S> getType()
Set<CustomizationContext> getContexts()
Customization<S> getCustomization(Set<CustomizationContext> contexts)
Returns the stateful content associated with the specified customization contexts or null if no customization can be created for the desired contexts. The returned customization may not honour all provided the customization contexts.
Calling the method with an empty set returns the default customization of the content or null if none is available.
Calling the method with a set of contexts that is not consistent will trigger an IllegalArgumentException to be thrown. For instance two workspace contexts specifying different pages cannot lead to determine a final context.
contexts - the customization contexts
Customization<S> customize(CustomizationMode mode,
Collection<CustomizationContext> contexts)
mode - the customization modecontexts - the customization context
S getState()
void setState(S state)
state - the customization statevoid destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||