org.gcube.contentmanagement.contentmanager.state
Class CollectionManager

java.lang.Object
  extended by 
      extended by org.gcube.contentmanagement.contentmanager.state.CollectionManager
Direct Known Subclasses:
ReadManager, WriteManager

public abstract class CollectionManager
extends

Base class for collection managers.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
CollectionManager()
           
 
Method Summary
 long getCardinality()
          Returns the cardinality of the collection.
 java.lang.String getCollectionID()
          Returns the collection identifier.
 java.util.Calendar getLastUpdate()
          Returns the time in which the collection was last updated.
 java.lang.String getPlugin()
          Returns the name of the associated plugin.
abstract  java.lang.String getType()
          Returns the type of the resource.
<T1 extends Collection.ChangeTopic,P1 extends java.lang.Void>
void
onEvent(... events)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionManager

public CollectionManager()
Method Detail

getPlugin

public java.lang.String getPlugin()
                           throws org.globus.wsrf.ResourceException
Returns the name of the associated plugin.

Returns:
the name.
Throws:
org.globus.wsrf.ResourceException

getCollectionID

public java.lang.String getCollectionID()
                                 throws org.globus.wsrf.ResourceException
Returns the collection identifier.

Returns:
the identifier.
Throws:
org.globus.wsrf.ResourceException

getCardinality

public long getCardinality()
                    throws org.globus.wsrf.ResourceException
Returns the cardinality of the collection.

Parameters:
c - the cardinality.
Throws:
org.globus.wsrf.ResourceException

getLastUpdate

public java.util.Calendar getLastUpdate()
                                 throws org.globus.wsrf.ResourceException
Returns the time in which the collection was last updated.

Returns:
the time.
Throws:
org.globus.wsrf.ResourceException

getType

public abstract java.lang.String getType()
Returns the type of the resource.

Returns:
the type.

onEvent

public <T1 extends Collection.ChangeTopic,P1 extends java.lang.Void> void onEvent(... events)