org.gcube.contentmanagement.contentmanager.plugin.defaultplugin
Class DefaultCollection

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.plugin.delegates.Delegate
      extended by org.gcube.contentmanagement.contentmanager.plugin.delegates.Collection
          extended by org.gcube.contentmanagement.contentmanager.plugin.defaultplugin.DefaultCollection
All Implemented Interfaces:
java.io.Serializable

public class DefaultCollection
extends Collection

Author:
Fabio Simeoni (University of Strathclyde)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.contentmanagement.contentmanager.plugin.delegates.Collection
Collection.ChangeTopic
 
Constructor Summary
DefaultCollection(java.lang.String id)
           
 
Method Summary
 DefaultReader getReader()
          Return the collection reader.
 DefaultWriter getWriter()
          Return the collection writer.
 void initialise()
          Invoked by the service to initialise the collection.
 void onLoad()
          Invoked after the collection is first loaded form persistent storage.
 
Methods inherited from class org.gcube.contentmanagement.contentmanager.plugin.delegates.Collection
getCardinality, getCreationTime, getDescription, getID, getLastUpdate, getName, isUser, notifyDeletion, onLoad, setCardinality, setCreationTime, setDescription, setLastUpdate, setName, setReader, setUser, setWriter, store, subscribe
 
Methods inherited from class org.gcube.contentmanagement.contentmanager.plugin.delegates.Delegate
getScopeManager, getSecurityManager, setResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCollection

public DefaultCollection(java.lang.String id)
Method Detail

initialise

public void initialise()
                throws java.lang.Exception
Invoked by the service to initialise the collection.

Subclasses are expected to trigger staging processes during the execution of this method.

Specified by:
initialise in class Collection
Throws:
java.lang.Exception - if the collection could not be initialised.

getReader

public DefaultReader getReader()
Return the collection reader.

Overrides:
getReader in class Collection
Returns:
the reader.

getWriter

public DefaultWriter getWriter()
Return the collection writer.

Overrides:
getWriter in class Collection
Returns:
the writer.

onLoad

public void onLoad()
            throws java.lang.Exception
Invoked after the collection is first loaded form persistent storage.

Throws:
java.lang.Exception - if the collection fails to be loaded.