org.apache.lenya.cms.repository
Class SourceNodeRevision

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.repository.SourceNodeRevision
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.cms.metadata.MetaDataOwner, org.apache.lenya.cms.repository.ContentHolder, org.apache.lenya.cms.repository.Revision

public class SourceNodeRevision
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.cms.repository.Revision

Revision implementation.


Constructor Summary
SourceNodeRevision(SourceNode node, int number, org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.logger.Logger logger)
           
 
Method Summary
 boolean exists()
           
 long getContentLength()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 org.apache.lenya.cms.metadata.MetaData getMetaData(java.lang.String namespaceUri)
           
protected  SourceNodeMetaDataHandler getMetaDataHandler()
           
 java.lang.String[] getMetaDataNamespaceUris()
           
protected  java.lang.String getMetaSourceUri()
           
 java.lang.String getMimeType()
           
 int getNumber()
           
 java.lang.String getSourceURI()
           
 long getTime()
           
 java.lang.String getUserId()
           
protected  void initialize()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceNodeRevision

public SourceNodeRevision(SourceNode node,
                          int number,
                          org.apache.avalon.framework.service.ServiceManager manager,
                          org.apache.avalon.framework.logger.Logger logger)
Parameters:
node - The node.
number - The revision number.
manager - The service manager.
logger - The logger.
Method Detail

getTime

public long getTime()
Specified by:
getTime in interface org.apache.lenya.cms.repository.Revision

initialize

protected void initialize()

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface org.apache.lenya.cms.repository.ContentHolder

getSourceURI

public java.lang.String getSourceURI()
Specified by:
getSourceURI in interface org.apache.lenya.cms.repository.ContentHolder

getNumber

public int getNumber()
Specified by:
getNumber in interface org.apache.lenya.cms.repository.Revision

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

getMetaDataHandler

protected SourceNodeMetaDataHandler getMetaDataHandler()

getMetaSourceUri

protected java.lang.String getMetaSourceUri()

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

exists

public boolean exists()
               throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
exists in interface org.apache.lenya.cms.repository.ContentHolder
Throws:
org.apache.lenya.cms.repository.RepositoryException

getContentLength

public long getContentLength()
                      throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
getContentLength in interface org.apache.lenya.cms.repository.ContentHolder
Throws:
org.apache.lenya.cms.repository.RepositoryException

getLastModified

public long getLastModified()
                     throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
getLastModified in interface org.apache.lenya.cms.repository.ContentHolder
Throws:
org.apache.lenya.cms.repository.RepositoryException

getMimeType

public java.lang.String getMimeType()
                             throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
getMimeType in interface org.apache.lenya.cms.repository.ContentHolder
Throws:
org.apache.lenya.cms.repository.RepositoryException

getUserId

public java.lang.String getUserId()
Specified by:
getUserId in interface org.apache.lenya.cms.repository.Revision


Copyright $ Apache Software Foundation. All Rights Reserved.