org.apache.cocoon.components.source
Interface VersionableSource

All Superinterfaces:
Source
All Known Implementing Classes:
SlideSource, SourceDTO

public interface VersionableSource
extends Source

A source, which could exist in different versions

Version:
CVS $Id: VersionableSource.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stephan Michels

Method Summary
 String getLatestSourceRevision()
          Get the latest revision
 String getSourceRevision()
          Get the current revision of the source
 String getSourceRevisionBranch()
          Get the current branch of the revision from the source
 boolean isVersioned()
          If this source versioned
 void setSourceRevision(String sourcerevision)
          Sets the wanted revision of the source
 void setSourceRevisionBranch(String sourcerevisionbranch)
          Sets the wanted branch of the revision from the source
 
Methods inherited from interface org.apache.excalibur.source.Source
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 

Method Detail

isVersioned

boolean isVersioned()
                    throws SourceException
If this source versioned

Throws:
SourceException

getSourceRevision

String getSourceRevision()
                         throws SourceException
Get the current revision of the source

Throws:
SourceException

setSourceRevision

void setSourceRevision(String sourcerevision)
                       throws SourceException
Sets the wanted revision of the source

Throws:
SourceException

getSourceRevisionBranch

String getSourceRevisionBranch()
                               throws SourceException
Get the current branch of the revision from the source

Throws:
SourceException

setSourceRevisionBranch

void setSourceRevisionBranch(String sourcerevisionbranch)
                             throws SourceException
Sets the wanted branch of the revision from the source

Throws:
SourceException

getLatestSourceRevision

String getLatestSourceRevision()
                               throws SourceException
Get the latest revision

Throws:
SourceException


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