org.gatein.mop.api.workspace
Interface WorkspaceCustomizationContext

All Superinterfaces:
CustomizationContext
All Known Subinterfaces:
Page, Site, Workspace

public interface WorkspaceCustomizationContext
extends CustomizationContext

A workspace customization context define root customization contexts.

Version:
$Revision$
Author:
Julien Viet

Field Summary
static String TYPE
          The context type returned that must be returned by implementations of the CustomizationContext.getContextType() method.
 
Method Summary
<S> Customization<S>
customize(String name, ContentType<S> contentType, String contentId, S state)
          Configure a root customization for the specified content.
<S> Customization<S>
customize(String name, Customization<S> customization)
          Configure a customization for extending the specified customization.
 Customization<?> getCustomization(String name)
          The root customization.
 
Methods inherited from interface org.gatein.mop.api.content.CustomizationContext
contains, getContextId, getContextType
 

Field Detail

TYPE

static final String TYPE
The context type returned that must be returned by implementations of the CustomizationContext.getContextType() method.

See Also:
Constant Field Values
Method Detail

getCustomization

Customization<?> getCustomization(String name)
The root customization.

Parameters:
name - the customization name
Returns:
the root customization

customize

<S> Customization<S> customize(String name,
                               ContentType<S> contentType,
                               String contentId,
                               S state)
Configure a root customization for the specified content.

Type Parameters:
S - the content state typa parameter
Parameters:
name - the customization name
contentType - the content type
contentId - the content id
state - the customization state
Returns:
the customization

customize

<S> Customization<S> customize(String name,
                               Customization<S> customization)
Configure a customization for extending the specified customization.

Type Parameters:
S - the content state typa parameter
Parameters:
name - the customization name
customization - the customization to extend
Returns:
the customization


Copyright © 2009 eXo Platform SAS. All Rights Reserved.