Class Client
java.lang.Object
com.priint.pubserver.plugin.entitydata.Client
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()getUrl()inthashCode()voidsetAddress(String address) voidsetCreatedBy(String createdBy) voidsetCreatedOn(Date createdOn) voidsetIdentifier(String identifier) Set identifier Throws NullArgumentException if argument isnull.voidSet label Throws NullArgumentException if argument isnull.voidsetUpdatedBy(String updatedBy) voidsetUpdatedOn(Date updatedOn) voidtoString()
-
Field Details
-
DEFAULT_CLIENT
Name of default client. Will be used if no client was stated.- See Also:
-
-
Constructor Details
-
Client
public Client()Default constructor. -
Client
Creates new client object and set identifier and label to name given.- Parameters:
name- identifier (and label)- Since:
- 4.0.0
-
-
Method Details
-
getIdentifier
- Returns:
- String identifier of the client. Not null.
-
setIdentifier
Set identifier Throws NullArgumentException if argument isnull.- Parameters:
identifier- String identifier of the client.
-
getLabel
- Returns:
- String label of the client. Typically identical with identifier. Not null.
-
setLabel
Set label Throws NullArgumentException if argument isnull.- Parameters:
label- name of the client.
-
getAddress
- Returns:
- Postal address of the client or empty string
-
setAddress
- Parameters:
address- seegetAddress()
-
getCreatedBy
-
setCreatedBy
-
getCreatedOn
-
setCreatedOn
-
getUpdatedBy
-
setUpdatedBy
-
getUpdatedOn
-
setUpdatedOn
-
getUrl
- Returns:
- Web site of the client or empty string
-
setUrl
- Parameters:
url- seegetUrl()
-
hashCode
public int hashCode() -
equals
-
toString
-