Class IncomingUserBean

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

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

    • IncomingUserBean

      protected IncomingUserBean(IncomingUser u)
      Instantiates a new incoming user bean.
      Parameters:
      u - the u
  • 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 IncomingUser
      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 IncomingUser
      Returns:
      the comment
    • getActive

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

      public boolean getIsSynchronized()
      Gets the checks if is synchronized. Gets the checks if is synchronized.
      Specified by:
      getIsSynchronized in interface IncomingUser
      Returns:
      the checks if is synchronized
    • getLastLoginHost

      public String getLastLoginHost()
      Gets the last login host. Gets the last login host.
      Specified by:
      getLastLoginHost in interface IncomingUser
      Returns:
      the last login host
    • getLastLogin

      public Date getLastLogin()
      Gets the last login. Gets the last login.
      Specified by:
      getLastLogin in interface IncomingUser
      Returns:
      the last login
    • getPassword

      public String getPassword()
      Gets the password. Gets the password.
      Specified by:
      getPassword in interface IncomingUser
      Returns:
      the password
    • getCountry

      public Country getCountry() throws TransferException
      Gets the country. Gets the country.
      Specified by:
      getCountry in interface IncomingUser
      Returns:
      the country
      Throws:
      TransferException - the transfer exception
    • getCountryIso

      public String getCountryIso()
      Gets the country iso. Gets the country iso.
      Specified by:
      getCountryIso in interface IncomingUser
      Returns:
      the country iso
    • getData

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

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

      public String getAuthorizedSSHKeys()
      Gets the authorized SSH keys. Gets the authorized SSH keys.
      Specified by:
      getAuthorizedSSHKeys in interface IncomingUser
      Returns:
      the authorized SSH keys
    • setCountryIso

      public void setCountryIso(String iso)
      Sets the country iso. Sets the country iso.
      Specified by:
      setCountryIso in interface IncomingUser
      Parameters:
      iso - the new country iso
    • setId

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

      public void setPassword(String password)
      Sets the password. Sets the password.
      Specified by:
      setPassword in interface IncomingUser
      Parameters:
      password - the new password
    • setComment

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

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

      public void setIsSynchronized(boolean synchronised)
      Sets the checks if is synchronized. Sets the checks if is synchronized.
      Specified by:
      setIsSynchronized in interface IncomingUser
      Parameters:
      synchronised - the new checks if is synchronized
    • setData

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

      public void setAuthorizedSSHKeys(String authorizedSSHKeys)
      Sets the authorized SSH keys. Sets the authorized SSH keys.
      Specified by:
      setAuthorizedSSHKeys in interface IncomingUser
      Parameters:
      authorizedSSHKeys - the new authorized SSH keys
    • getAssociatedIncomingPolicies

      public Collection<IncomingPolicy> getAssociatedIncomingPolicies() throws TransferException
      Gets the associated incoming policies. Gets the associated incoming policies.
      Specified by:
      getAssociatedIncomingPolicies in interface IncomingUser
      Returns:
      the associated incoming policies
      Throws:
      TransferException - the transfer exception
    • getAssociatedDestinations

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

      public Collection<Operation> getAssociatedOperations() throws OperationException
      Gets the associated operations. Gets the associated operations.
      Specified by:
      getAssociatedOperations in interface IncomingUser
      Returns:
      the associated operations
      Throws:
      OperationException - the operation exception
    • getIncomingUsers

      public Collection<IncomingUser> getIncomingUsers() throws IncomingUserException
      Gets the incoming users.
      Returns:
      the incoming users
      Throws:
      IncomingUserException - the incoming user exception
    • closeSession

      public void closeSession(ecmwf.web.model.users.User u, String id) throws OperationException
      Close session. Close session.
      Specified by:
      closeSession in interface IncomingUser
      Parameters:
      u - the u
      id - the id
      Throws:
      OperationException - the operation exception
    • addIncomingPolicy

      public void addIncomingPolicy(IncomingPolicy p)
      Adds the incoming policy. Adds the incoming policy.
      Specified by:
      addIncomingPolicy in interface IncomingUser
      Parameters:
      p - the p
    • deleteIncomingPolicy

      public void deleteIncomingPolicy(IncomingPolicy p)
      Delete incoming policy. Delete incoming policy.
      Specified by:
      deleteIncomingPolicy in interface IncomingUser
      Parameters:
      p - the p
    • getAddedIncomingPolicies

      protected Collection<IncomingPolicy> getAddedIncomingPolicies()
      Gets the added incoming policies.
      Returns:
      the added incoming policies
    • getDeletedIncomingPolicies

      protected Collection<IncomingPolicy> getDeletedIncomingPolicies()
      Gets the deleted incoming policies.
      Returns:
      the deleted incoming policies
    • addDestination

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

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

      public void addOperation(Operation o)
      Adds the operation. Adds the operation.
      Specified by:
      addOperation in interface IncomingUser
      Parameters:
      o - the o
    • deleteOperation

      public void deleteOperation(Operation o)
      Delete operation. Delete operation.
      Specified by:
      deleteOperation in interface IncomingUser
      Parameters:
      o - the o
    • getIncomingConnections

      public Collection<IncomingConnection> getIncomingConnections()
      Gets the incoming connections. Gets the incoming connections.
      Specified by:
      getIncomingConnections in interface IncomingUser
      Returns:
      the incoming connections
    • 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
    • getAddedOperations

      protected Collection<Operation> getAddedOperations()
      Gets the added operations.
      Returns:
      the added operations
    • getDeletedOperations

      protected Collection<Operation> getDeletedOperations()
      Gets the deleted operations.
      Returns:
      the deleted operations
    • getCompletions

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

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

      public boolean equals(IncomingUserBean 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