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

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.plugin.delegates.Delegate
      extended by org.gcube.contentmanagement.contentmanager.plugin.delegates.FactoryDelegate
          extended by org.gcube.contentmanagement.contentmanager.plugin.defaultplugin.DefaultFactory

public class DefaultFactory
extends FactoryDelegate

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
DefaultFactory()
           
 
Method Summary
 java.util.List<? extends Collection> create(org.w3c.dom.Element parameters)
          Invoked by the service to create one or more collections from given creation parameters.
 
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

DefaultFactory

public DefaultFactory()
Method Detail

create

public java.util.List<? extends Collection> create(org.w3c.dom.Element parameters)
Invoked by the service to create one or more collections from given creation parameters.

Subclasses are expected to validate parameters and return collections as soon as the their identifiers can be found in, or computed from, the creation parameters. Collection-specific staging processes ought to be performed during the initialisation of the collection (cf. Collection#initialise(Element)), if and when the service requires it.

Specified by:
create in class FactoryDelegate
Parameters:
parameters - the parameters, served as an Element.
Returns:
the collections.