org.apache.lenya.cms.repository
Class ModifiableMetaDataHandler

java.lang.Object
  extended by org.apache.lenya.cms.repository.SourceNodeMetaDataHandler
      extended by org.apache.lenya.cms.repository.ModifiableMetaDataHandler
All Implemented Interfaces:
org.apache.lenya.cms.metadata.MetaDataOwner, org.apache.lenya.cms.repository.Persistable

public class ModifiableMetaDataHandler
extends SourceNodeMetaDataHandler
implements org.apache.lenya.cms.repository.Persistable

Modifiable meta data handler.


Field Summary
 
Fields inherited from class org.apache.lenya.cms.repository.SourceNodeMetaDataHandler
ATTRIBUTE_KEY, ATTRIBUTE_NAMESPACE, ELEMENT_ELEMENT, ELEMENT_METADATA, ELEMENT_SET, ELEMENT_VALUE, META_DATA_NAMESPACE, namespace2metamap
 
Constructor Summary
ModifiableMetaDataHandler(org.apache.avalon.framework.service.ServiceManager manager, MetaSourceWrapper sourceWrapper)
           
 
Method Summary
protected  void addValue(java.lang.String namespaceUri, java.lang.String key, java.lang.String value)
           
 boolean isModified()
           
protected  void removeAllValues(java.lang.String namespaceUri, java.lang.String key)
           
 void save()
           
protected  void setValue(java.lang.String namespaceUri, java.lang.String key, java.lang.String value)
           
 
Methods inherited from class org.apache.lenya.cms.repository.SourceNodeMetaDataHandler
getLastModified, getMetaData, getMetaDataMap, getMetaDataNamespaceUris, getValueList, getValues, getValues, loadLegacyMetaData, loadMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiableMetaDataHandler

public ModifiableMetaDataHandler(org.apache.avalon.framework.service.ServiceManager manager,
                                 MetaSourceWrapper sourceWrapper)
Parameters:
manager - The service manager.
sourceWrapper - The source wrapper.
Method Detail

save

public void save()
          throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
save in interface org.apache.lenya.cms.repository.Persistable
Throws:
org.apache.lenya.cms.repository.RepositoryException

addValue

protected void addValue(java.lang.String namespaceUri,
                        java.lang.String key,
                        java.lang.String value)
                 throws org.apache.lenya.cms.metadata.MetaDataException
Overrides:
addValue in class SourceNodeMetaDataHandler
Throws:
org.apache.lenya.cms.metadata.MetaDataException

removeAllValues

protected void removeAllValues(java.lang.String namespaceUri,
                               java.lang.String key)
                        throws org.apache.lenya.cms.metadata.MetaDataException
Overrides:
removeAllValues in class SourceNodeMetaDataHandler
Throws:
org.apache.lenya.cms.metadata.MetaDataException

setValue

protected void setValue(java.lang.String namespaceUri,
                        java.lang.String key,
                        java.lang.String value)
                 throws org.apache.lenya.cms.metadata.MetaDataException
Overrides:
setValue in class SourceNodeMetaDataHandler
Throws:
org.apache.lenya.cms.metadata.MetaDataException

isModified

public boolean isModified()
Specified by:
isModified in interface org.apache.lenya.cms.repository.Persistable


Copyright © $ Apache Software Foundation. All Rights Reserved.