org.olat.core.util.vfs.version
Class NotVersioned

java.lang.Object
  extended by org.olat.core.util.vfs.version.NotVersioned
All Implemented Interfaces:
Versions

public class NotVersioned
extends java.lang.Object
implements Versions

Description:
This class implements the @see org.olat.core.util.vfs.version.Versions interface for a file which is not versioned and will never be.

Initial Date: 21 sept. 2009

Author:
srosse

Constructor Summary
NotVersioned()
           
 
Method Summary
 boolean addVersion(Identity identity, java.lang.String comment, java.io.InputStream newVersion)
          add a new version of the file
 boolean delete(Identity identity, java.util.List<VFSRevision> versionsToDelete)
          Delete the list of revisions given as parameter
 java.lang.String getComment()
           
 java.lang.String getCreator()
           
 java.lang.String getRevisionNr()
           
 java.util.List<VFSRevision> getRevisions()
           
 boolean isVersioned()
           
 boolean move(VFSContainer container)
          move the file
 boolean restore(Identity identity, VFSRevision version, java.lang.String comment)
          restore the file to the revision given as parameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotVersioned

public NotVersioned()
Method Detail

isVersioned

public boolean isVersioned()
Specified by:
isVersioned in interface Versions
Returns:
true if the file is versioned

getRevisions

public java.util.List<VFSRevision> getRevisions()
Specified by:
getRevisions in interface Versions
Returns:
the list of revisions

getCreator

public java.lang.String getCreator()
Specified by:
getCreator in interface Versions
Returns:
creator of the file

getComment

public java.lang.String getComment()
Specified by:
getComment in interface Versions
Returns:
comment on the current version

getRevisionNr

public java.lang.String getRevisionNr()
Specified by:
getRevisionNr in interface Versions
Returns:
the current version number

addVersion

public boolean addVersion(Identity identity,
                          java.lang.String comment,
                          java.io.InputStream newVersion)
Description copied from interface: Versions
add a new version of the file

Specified by:
addVersion in interface Versions
Returns:

move

public boolean move(VFSContainer container)
Description copied from interface: Versions
move the file

Specified by:
move in interface Versions
Returns:

delete

public boolean delete(Identity identity,
                      java.util.List<VFSRevision> versionsToDelete)
Description copied from interface: Versions
Delete the list of revisions given as parameter

Specified by:
delete in interface Versions
Returns:

restore

public boolean restore(Identity identity,
                       VFSRevision version,
                       java.lang.String comment)
Description copied from interface: Versions
restore the file to the revision given as parameter

Specified by:
restore in interface Versions
Returns: