org.gatein.mop.core.api.workspace.content
Class AbstractCustomization

java.lang.Object
  extended by org.gatein.mop.core.api.workspace.content.AbstractCustomization
All Implemented Interfaces:
Customization<Object>
Direct Known Subclasses:
ContextSpecialization, WorkspaceCustomization

public abstract class AbstractCustomization
extends Object
implements Customization<Object>

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected static CustomizationContextComparator comparator
          .
 
Constructor Summary
AbstractCustomization()
           
 
Method Summary
abstract  PortletPreferencesState createPS()
           
 Customization<Object> customize(CustomizationMode mode, Collection<CustomizationContext> contexts)
           
 void destroy()
           
protected  Customization<Object> get(Collection<CustomizationContext> contexts, boolean create)
           
protected  Customization<Object> get(Iterator<CustomizationContext> contexts, boolean create)
           
abstract  CustomizationState getContentState()
           
 Set<CustomizationContext> getContexts()
           
 Customization<Object> getCustomization(Set<CustomizationContext> contexts)
           
abstract  CustomizationContext getCustomizationContext()
           
abstract  AbstractCustomization getParentCustomization()
           
 Object getState()
           
abstract  void setContentState(CustomizationState state)
           
 void setState(Object state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gatein.mop.api.content.Customization
getContentId, getName, getType
 

Field Detail

comparator

protected static final CustomizationContextComparator comparator
.

Constructor Detail

AbstractCustomization

public AbstractCustomization()
Method Detail

getContentState

public abstract CustomizationState getContentState()

setContentState

public abstract void setContentState(CustomizationState state)

createPS

public abstract PortletPreferencesState createPS()

getCustomizationContext

public abstract CustomizationContext getCustomizationContext()

getParentCustomization

public abstract AbstractCustomization getParentCustomization()

getState

public Object getState()
Specified by:
getState in interface Customization<Object>

setState

public void setState(Object state)
Specified by:
setState in interface Customization<Object>

destroy

public void destroy()
Specified by:
destroy in interface Customization<Object>

getCustomization

public Customization<Object> getCustomization(Set<CustomizationContext> contexts)
Specified by:
getCustomization in interface Customization<Object>

customize

public Customization<Object> customize(CustomizationMode mode,
                                       Collection<CustomizationContext> contexts)
Specified by:
customize in interface Customization<Object>

getContexts

public Set<CustomizationContext> getContexts()
Specified by:
getContexts in interface Customization<Object>

get

protected final Customization<Object> get(Collection<CustomizationContext> contexts,
                                          boolean create)

get

protected final Customization<Object> get(Iterator<CustomizationContext> contexts,
                                          boolean create)


Copyright © 2009 eXo Platform SAS. All Rights Reserved.