Class Client

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class Client
    extends java.lang.Object
    implements java.io.Serializable

    The Client class represents a tenant.

    A Client is described by identifier and label. A client may additionally be described by address and URL.

    Since:
    4.0.0, 4.0.5 added JPA annotations
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_CLIENT
      Name of default client.
    • Constructor Summary

      Constructors 
      Constructor Description
      Client()
      Default constructor.
      Client​(java.lang.String name)
      Creates new client object and set identifier and label to name given.
    • Field Detail

      • DEFAULT_CLIENT

        public static final java.lang.String DEFAULT_CLIENT
        Name of default client. Will be used if no client was stated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Client

        public Client()
        Default constructor.
      • Client

        public Client​(java.lang.String name)
        Creates new client object and set identifier and label to name given.
        Parameters:
        name - identifier (and label)
        Since:
        4.0.0
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Returns:
        String identifier of the client. Not null.
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
        Set identifier Throws NullArgumentException if argument is null.
        Parameters:
        identifier - String identifier of the client.
      • getLabel

        public java.lang.String getLabel()
        Returns:
        String label of the client. Typically identical with identifier. Not null.
      • setLabel

        public void setLabel​(java.lang.String label)
        Set label Throws NullArgumentException if argument is null.
        Parameters:
        label - name of the client.
      • getAddress

        public java.lang.String getAddress()
        Returns:
        Postal address of the client or empty string
      • setAddress

        public void setAddress​(java.lang.String address)
        Parameters:
        address - see getAddress()
      • getCreatedBy

        public java.lang.String getCreatedBy()
      • setCreatedBy

        public void setCreatedBy​(java.lang.String createdBy)
      • getCreatedOn

        public java.util.Date getCreatedOn()
      • setCreatedOn

        public void setCreatedOn​(java.util.Date createdOn)
      • getUpdatedBy

        public java.lang.String getUpdatedBy()
      • setUpdatedBy

        public void setUpdatedBy​(java.lang.String updatedBy)
      • getUpdatedOn

        public java.util.Date getUpdatedOn()
      • setUpdatedOn

        public void setUpdatedOn​(java.util.Date updatedOn)
      • getUrl

        public java.lang.String getUrl()
        Returns:
        Web site of the client or empty string
      • setUrl

        public void setUrl​(java.lang.String url)
        Parameters:
        url - see getUrl()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object