org.apache.lenya.cms.repository
Class SourceNodeMetaDataHandler

java.lang.Object
  extended by org.apache.lenya.cms.repository.SourceNodeMetaDataHandler
All Implemented Interfaces:
org.apache.lenya.cms.metadata.MetaDataOwner
Direct Known Subclasses:
ModifiableMetaDataHandler

public class SourceNodeMetaDataHandler
extends java.lang.Object
implements org.apache.lenya.cms.metadata.MetaDataOwner

Handles the meta data of source nodes.


Field Summary
protected static java.lang.String ATTRIBUTE_KEY
           
protected static java.lang.String ATTRIBUTE_NAMESPACE
           
protected static java.lang.String ELEMENT_ELEMENT
           
protected static java.lang.String ELEMENT_METADATA
           
protected static java.lang.String ELEMENT_SET
           
protected static java.lang.String ELEMENT_VALUE
           
protected static java.lang.String META_DATA_NAMESPACE
           
protected  java.util.Map namespace2metamap
           
 
Constructor Summary
SourceNodeMetaDataHandler(org.apache.avalon.framework.service.ServiceManager manager, java.lang.String sourceUri)
           
 
Method Summary
protected  void addValue(java.lang.String namespaceUri, java.lang.String key, java.lang.String value)
           
protected  long getLastModified()
           
 org.apache.lenya.cms.metadata.MetaData getMetaData(java.lang.String namespaceUri)
           
protected  java.util.Map getMetaDataMap(java.lang.String namespaceUri)
           
 java.lang.String[] getMetaDataNamespaceUris()
           
protected  java.util.List getValueList(java.lang.String namespaceUri, java.lang.String key)
           
protected  java.lang.String[] getValues(java.lang.String namespaceUri, java.lang.String key)
           
protected  java.lang.String[] getValues(java.lang.String namespaceUri, java.lang.String key, int revisionNumber)
           
protected  void loadLegacyMetaData(org.w3c.dom.Document xml)
           
protected  void loadMetaData()
           
protected  void removeAllValues(java.lang.String namespaceUri, java.lang.String key)
           
protected  void setValue(java.lang.String namespaceUri, java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace2metamap

protected java.util.Map namespace2metamap

META_DATA_NAMESPACE

protected static final java.lang.String META_DATA_NAMESPACE
See Also:
Constant Field Values

ELEMENT_METADATA

protected static final java.lang.String ELEMENT_METADATA
See Also:
Constant Field Values

ELEMENT_SET

protected static final java.lang.String ELEMENT_SET
See Also:
Constant Field Values

ELEMENT_ELEMENT

protected static final java.lang.String ELEMENT_ELEMENT
See Also:
Constant Field Values

ELEMENT_VALUE

protected static final java.lang.String ELEMENT_VALUE
See Also:
Constant Field Values

ATTRIBUTE_NAMESPACE

protected static final java.lang.String ATTRIBUTE_NAMESPACE
See Also:
Constant Field Values

ATTRIBUTE_KEY

protected static final java.lang.String ATTRIBUTE_KEY
See Also:
Constant Field Values
Constructor Detail

SourceNodeMetaDataHandler

public SourceNodeMetaDataHandler(org.apache.avalon.framework.service.ServiceManager manager,
                                 java.lang.String sourceUri)
Parameters:
manager - The service manager.
sourceUri - The soure URI.
Method Detail

getMetaData

public org.apache.lenya.cms.metadata.MetaData getMetaData(java.lang.String namespaceUri)
                                                   throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
getMetaData in interface org.apache.lenya.cms.metadata.MetaDataOwner
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getMetaDataMap

protected java.util.Map getMetaDataMap(java.lang.String namespaceUri)
                                throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

loadMetaData

protected void loadMetaData()
                     throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

loadLegacyMetaData

protected void loadLegacyMetaData(org.w3c.dom.Document xml)
                           throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getValues

protected java.lang.String[] getValues(java.lang.String namespaceUri,
                                       java.lang.String key,
                                       int revisionNumber)
                                throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getValues

protected java.lang.String[] getValues(java.lang.String namespaceUri,
                                       java.lang.String key)
                                throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getValueList

protected java.util.List getValueList(java.lang.String namespaceUri,
                                      java.lang.String key)
                               throws org.apache.lenya.cms.metadata.MetaDataException
Throws:
org.apache.lenya.cms.metadata.MetaDataException

addValue

protected void addValue(java.lang.String namespaceUri,
                        java.lang.String key,
                        java.lang.String value)
                 throws org.apache.lenya.cms.metadata.MetaDataException
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
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
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getMetaDataNamespaceUris

public java.lang.String[] getMetaDataNamespaceUris()
                                            throws org.apache.lenya.cms.metadata.MetaDataException
Specified by:
getMetaDataNamespaceUris in interface org.apache.lenya.cms.metadata.MetaDataOwner
Throws:
org.apache.lenya.cms.metadata.MetaDataException

getLastModified

protected long getLastModified()
                        throws org.apache.lenya.cms.repository.RepositoryException
Throws:
org.apache.lenya.cms.repository.RepositoryException


Copyright $ Apache Software Foundation. All Rights Reserved.