java.lang.Object
com.priint.pubserver.plugin.entitydata.Client
All Implemented Interfaces:
Serializable

@Entity public class Client extends Object implements 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:
  • Field Details

    • DEFAULT_CLIENT

      public static final String DEFAULT_CLIENT
      Name of default client. Will be used if no client was stated.
      See Also:
  • Constructor Details

    • Client

      public Client()
      Default constructor.
    • Client

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

    • getIdentifier

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

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

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

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

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

      public void setAddress(String address)
      Parameters:
      address - see getAddress()
    • getCreatedBy

      public String getCreatedBy()
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • getCreatedOn

      public Date getCreatedOn()
    • setCreatedOn

      public void setCreatedOn(Date createdOn)
    • getUpdatedBy

      public String getUpdatedBy()
    • setUpdatedBy

      public void setUpdatedBy(String updatedBy)
    • getUpdatedOn

      public Date getUpdatedOn()
    • setUpdatedOn

      public void setUpdatedOn(Date updatedOn)
    • getUrl

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

      public void setUrl(String url)
      Parameters:
      url - see getUrl()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object