org.outerj.daisy.repository.commonimpl
Class DocumentCollectionImpl
java.lang.Object
org.outerj.daisy.repository.commonimpl.DocumentCollectionImpl
- All Implemented Interfaces:
- java.lang.Comparable, org.outerj.daisy.repository.DocumentCollection
- public class DocumentCollectionImpl
- extends java.lang.Object
- implements org.outerj.daisy.repository.DocumentCollection, java.lang.Comparable
A user aware Collection implementation.
In order to use this awareness, a client needs of course
to be aware of the fact that the Collections being used
are in fact CollectionImpl object.
The extra methods in this interface that are not present
in the Collection interface are meant for internal use
and not for client use!
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentCollectionImpl
public DocumentCollectionImpl(CollectionStrategy collectionStrategy,
java.lang.String name,
AuthenticatedUser requestingUser)
- creates a new CollectionImpl object which is aware
of the user that requested the collection.
- Parameters:
collectionStrategy
- the strategy used to load and store dataname
- the name of the CollectionrequestingUser
- the User requesting the collection
getId
public long getId()
- Specified by:
getId
in interface org.outerj.daisy.repository.DocumentCollection
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.outerj.daisy.repository.DocumentCollection
setName
public void setName(java.lang.String collectionName)
- Specified by:
setName
in interface org.outerj.daisy.repository.DocumentCollection
save
public void save()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
save
in interface org.outerj.daisy.repository.DocumentCollection
- Throws:
org.outerj.daisy.repository.RepositoryException
getXml
public org.outerx.daisy.x10.CollectionDocument getXml()
- Specified by:
getXml
in interface org.outerj.daisy.repository.DocumentCollection
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface org.outerj.daisy.repository.DocumentCollection
getLastModifier
public long getLastModifier()
- Specified by:
getLastModifier
in interface org.outerj.daisy.repository.DocumentCollection
getIntimateAccess
public DocumentCollectionImpl.IntimateAccess getIntimateAccess(CollectionStrategy strategy)
- Parameters:
strategy
- the CollectionStrategy requesting intimate access
- Returns:
- an IntimateAccess object if the CollectionStrategy is the same as the
one supplied when creating the DocumentCollectionImpl object, null if it is
another one.
getUpdateCount
public long getUpdateCount()
- Specified by:
getUpdateCount
in interface org.outerj.daisy.repository.DocumentCollection
makeReadOnly
public void makeReadOnly()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
Copyright © -2005 . All Rights Reserved.