Class IncomingPolicyBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.transfer.IncomingPolicyBean
All Implemented Interfaces:
OjbImplementedBean, IncomingPolicy, ecmwf.web.model.ModelBean

public class IncomingPolicyBean extends ecmwf.web.dao.ModelBeanBase implements IncomingPolicy, OjbImplementedBean
The Class IncomingPolicyBean.
  • Constructor Details

    • IncomingPolicyBean

      protected IncomingPolicyBean(IncomingPolicy incomingPolicy)
      Instantiates a new incoming policy bean.
      Parameters:
      incomingPolicy - the incoming policy
  • Method Details

    • getOjbImplementation

      public DataBaseObject getOjbImplementation()
      Gets the ojb implementation. Gets the ojb implementation.
      Specified by:
      getOjbImplementation in interface OjbImplementedBean
      Returns:
      the ojb implementation
    • getBeanInterfaceName

      public String getBeanInterfaceName()
      Gets the bean interface name.
      Specified by:
      getBeanInterfaceName in interface ecmwf.web.model.ModelBean
      Specified by:
      getBeanInterfaceName in class ecmwf.web.dao.ModelBeanBase
    • getId

      public String getId()
      Gets the id. Gets the id.
      Specified by:
      getId in interface IncomingPolicy
      Specified by:
      getId in interface ecmwf.web.model.ModelBean
      Overrides:
      getId in class ecmwf.web.dao.ModelBeanBase
    • getComment

      public String getComment()
      Gets the comment. Gets the comment.
      Specified by:
      getComment in interface IncomingPolicy
      Returns:
      the comment
    • getActive

      public boolean getActive()
      Gets the active. Gets the active.
      Specified by:
      getActive in interface IncomingPolicy
      Returns:
      the active
    • getData

      public String getData()
      Gets the data. Gets the data.
      Specified by:
      getData in interface IncomingPolicy
      Returns:
      the data
    • getProperties

      public String getProperties()
      Gets the properties. Gets the properties.
      Specified by:
      getProperties in interface IncomingPolicy
      Returns:
      the properties
    • getCompletions

      public String getCompletions()
      Gets the completions. Gets the completions.
      Specified by:
      getCompletions in interface IncomingPolicy
      Returns:
      the completions
    • setId

      public void setId(String id)
      Sets the id. Sets the id.
      Specified by:
      setId in interface IncomingPolicy
      Specified by:
      setId in interface ecmwf.web.model.ModelBean
      Overrides:
      setId in class ecmwf.web.dao.ModelBeanBase
    • setComment

      public void setComment(String comment)
      Sets the comment. Sets the comment.
      Specified by:
      setComment in interface IncomingPolicy
      Parameters:
      comment - the new comment
    • setActive

      public void setActive(boolean active)
      Sets the active. Sets the active.
      Specified by:
      setActive in interface IncomingPolicy
      Parameters:
      active - the new active
    • setData

      public void setData(String data)
      Sets the data. Sets the data.
      Specified by:
      setData in interface IncomingPolicy
      Parameters:
      data - the new data
    • getIncomingPolicies

      public Collection<IncomingPolicy> getIncomingPolicies() throws IncomingPolicyException
      Gets the incoming policies.
      Returns:
      the incoming policies
      Throws:
      IncomingPolicyException - the incoming policy exception
    • addDestination

      public void addDestination(Destination d)
      Adds the destination. Adds the destination.
      Specified by:
      addDestination in interface IncomingPolicy
      Parameters:
      d - the d
    • deleteDestination

      public void deleteDestination(Destination d)
      Delete destination. Delete destination.
      Specified by:
      deleteDestination in interface IncomingPolicy
      Parameters:
      d - the d
    • getAddedDestinations

      protected Collection<Destination> getAddedDestinations()
      Gets the added destinations.
      Returns:
      the added destinations
    • getDeletedDestinations

      protected Collection<Destination> getDeletedDestinations()
      Gets the deleted destinations.
      Returns:
      the deleted destinations
    • getAssociatedDestinations

      public Collection<Destination> getAssociatedDestinations() throws TransferException
      Gets the associated destinations. Gets the associated destinations.
      Specified by:
      getAssociatedDestinations in interface IncomingPolicy
      Returns:
      the associated destinations
      Throws:
      TransferException - the transfer exception
    • equals

      public boolean equals(Object o)
      Equals.
      Overrides:
      equals in class Object
    • equals

      public boolean equals(IncomingPolicyBean d)
      Equals.
      Parameters:
      d - the d
      Returns:
      true, if successful
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object