org.apache.cocoon.portal.profile.impl
Class CopletDataManager

java.lang.Object
  extended by org.apache.cocoon.portal.profile.impl.CopletDataManager
All Implemented Interfaces:
DeltaApplicable, DeltaApplicableReferencesAdjustable

public class CopletDataManager
extends Object
implements DeltaApplicableReferencesAdjustable

Holds instances of CopletData.

Version:
CVS $Id: CopletDataManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Björn Lütkemeier

Constructor Summary
CopletDataManager()
           
 
Method Summary
 void adjustReferences(Object object)
          Updates the references to contained DeltaApplicable objects if no delta has been applied to them.
 boolean applyDelta(Object object)
          Applies the specified delta.
 boolean deltaApplied()
          Checks if a delta has been applied.
 Map getCopletData()
          Gets all coplet data.
 CopletData getCopletData(String name)
          Gets the specified coplet data.
 void putCopletData(CopletData data)
          Puts the specified coplet data to the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopletDataManager

public CopletDataManager()
Method Detail

getCopletData

public Map getCopletData()
Gets all coplet data.


getCopletData

public CopletData getCopletData(String name)
Gets the specified coplet data.


putCopletData

public void putCopletData(CopletData data)
Puts the specified coplet data to the manager.


applyDelta

public boolean applyDelta(Object object)
Applies the specified delta.

Specified by:
applyDelta in interface DeltaApplicable
Returns:
true if the delta could be successfully applied, false otherwise. false can be used if object references stored in maps must be replaced by the caller instead of a delta being applied.
Throws:
ClassCastException - If the object is not of the expected type.

deltaApplied

public boolean deltaApplied()
Checks if a delta has been applied.

Specified by:
deltaApplied in interface DeltaApplicable

adjustReferences

public void adjustReferences(Object object)
Updates the references to contained DeltaApplicable objects if no delta has been applied to them.

Specified by:
adjustReferences in interface DeltaApplicableReferencesAdjustable
Throws:
ClassCastException - If the object is not of the expected type.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.