org.gcube.contentmanagement.contentmanager.stubs.calls
Class FactoryParameters

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.calls.FactoryParameters

public class FactoryParameters
extends java.lang.Object

The input model for a call to the factory.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
FactoryParameters()
          Creates a new instance
FactoryParameters(CMSCreateParameters parameters)
          Creates an instance around a CMSCreateParameters.
 
Method Summary
 org.w3c.dom.Element getPayload()
          Returns the input specific to the plugin.
 java.lang.String getPlugin()
          Returns the name of the target plugin.
 boolean isBroadcast()
          Indicates whether the input is to be broadcast to other running instances.
 void setBroadcast(boolean broadcast)
          Indicates whether the input is to be broadcast to other running instances.
 void setPayload(org.w3c.dom.Element element)
          Sets the input specific to the plugin.
 void setPlugin(java.lang.String name)
          Sets the name of the target plugin.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryParameters

public FactoryParameters()
Creates a new instance


FactoryParameters

public FactoryParameters(CMSCreateParameters parameters)
Creates an instance around a CMSCreateParameters.

Parameters:
parameters - the parameters.
Method Detail

getPlugin

public java.lang.String getPlugin()
Returns the name of the target plugin.

Returns:
the name.

setPlugin

public void setPlugin(java.lang.String name)
Sets the name of the target plugin.

Parameters:
name - the name.

isBroadcast

public boolean isBroadcast()
Indicates whether the input is to be broadcast to other running instances.

Returns:
true if it is, falseotherwise.

setBroadcast

public void setBroadcast(boolean broadcast)
Indicates whether the input is to be broadcast to other running instances.

Parameters:
true - if it is, falseotherwise.

getPayload

public org.w3c.dom.Element getPayload()
                               throws java.lang.Exception
Returns the input specific to the plugin.

Returns:
the input.
Throws:
java.lang.Exception - if the input could not returned;

setPayload

public void setPayload(org.w3c.dom.Element element)
Sets the input specific to the plugin.

Parameters:
element - the input.