S - the content state type parameterpublic interface Customization<S>
| Modifier and Type | Method and Description |
|---|---|
Customization<S> |
customize(Collection<CustomizationContext> contexts)
Customize the state with respect to the provided customization context.
|
void |
destroy()
Destroys the customization.
|
Content<S> |
getContent()
Returns the content this customization refers to.
|
String |
getContentId()
Returns the content id this customization refers to.
|
CustomizationContext |
getContext()
Returns the related context of this customization.
|
Set<CustomizationContext> |
getContexts()
Returns the contexts that are associated with this 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 |
getId()
Returns the customization id
|
Customization |
getParent()
Returns the parent customization or null if this customization is full featured clone.
|
S |
getState()
Returns the customization state.
|
ContentType<S> |
getType()
Returns the content type this customization refers to.
|
S |
getVirtualState()
Returns the customization virtual state that is computed from various state of the customization hierarchy.
|
void |
setState(S state)
Updates the customization state.
|
String getId()
Content<S> getContent()
String getContentId()
ContentType<S> getType()
CustomizationContext getContext()
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 contextsCustomization<S> customize(Collection<CustomizationContext> contexts)
contexts - the customization contextCustomization getParent()
S getVirtualState()
S getState()
void setState(S state)
state - the customization statevoid destroy()
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.