org.gcube.contentmanagement.viewmanager.state
Class Factory

java.lang.Object
  extended by GCUBEWSResource
      extended by org.gcube.contentmanagement.viewmanager.state.Factory

public class Factory
extends GCUBEWSResource

The singleton resource of the factory port-type.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
Factory()
           
 
Method Summary
 ViewResource create(java.lang.String pluginName, View view)
          Creates a view resource with given plugin and a given view definition.
 java.util.Set<java.lang.String> getActivationRecords()
           
 PluginContext getContext(java.lang.String name)
          Returns the context of a plugin with a given name.
 java.lang.String[] getPropertyNames()
          
 void setActivationRecords(java.util.Set<java.lang.String> activationRecords)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

getActivationRecords

public java.util.Set<java.lang.String> getActivationRecords()
Returns:

setActivationRecords

public void setActivationRecords(java.util.Set<java.lang.String> activationRecords)
Parameters:
activationRecords -

create

public ViewResource create(java.lang.String pluginName,
                           View view)
                    throws java.lang.Exception
Creates a view resource with given plugin and a given view definition.

Parameters:
pluginName - the name of the plugin.
view - the view definition.
Returns:
the resource.
Throws:
java.lang.Exception - if the resource could not be created.

getContext

public PluginContext getContext(java.lang.String name)
                         throws java.lang.Exception
Returns the context of a plugin with a given name.

Parameters:
name - the name.
Returns:
the context, or null if the plugin is unknown.
Throws:
java.lang.Exception

getPropertyNames

public java.lang.String[] getPropertyNames()