org.gcube.contentmanagement.contentmanager.plugin.defaultplugin
Class DefaultCollection
java.lang.Object
org.gcube.contentmanagement.contentmanager.plugin.delegates.Delegate
org.gcube.contentmanagement.contentmanager.plugin.delegates.Collection
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCollection
public DefaultCollection(java.lang.String id)
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.