Package org.openwms.core.preferences.api
Class PreferenceVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<PreferenceVO>
org.ameba.http.AbstractBase<PreferenceVO>
org.openwms.core.preferences.api.PreferenceVO
- Direct Known Subclasses:
ApplicationPreferenceVO
,ModulePreferenceVO
,RolePreferenceVO
,UserPreferenceVO
A PreferenceVO.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Size(max=255) String
A descriptive text of thePreference
.private @Size(max=36) String
The groupName of thePreference
.private @NotBlank @Size(min=1,max=60) String
The unique business key (along other identifying properties) of the resource, must not be null.static final String
HTTP media type representation.private @Size(max=60) String
The owner of the resource.private String
The persistent key of the resource.static final String
private @NotBlank @Size(max=36) String
The type of thePreference
.static final String
private @Size(max=4096) Serializable
The value of thePreference
.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
All fields.Returns the representation type of the Preference.getKey()
getOwner()
getpKey()
getType()
getVal()
int
hashCode()
All fields.boolean
hasPKey()
void
setDescription
(String description) void
setGroupName
(String groupName) void
void
void
void
void
setVal
(Serializable val) Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, setOl
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks, toString
-
Field Details
-
TYPE
- See Also:
-
SUB_TYPE
- See Also:
-
MEDIA_TYPE
HTTP media type representation.- See Also:
-
pKey
The persistent key of the resource. -
key
The unique business key (along other identifying properties) of the resource, must not be null. -
owner
The owner of the resource. -
description
A descriptive text of thePreference
. -
val
The value of thePreference
. -
groupName
The groupName of thePreference
. -
type
The type of thePreference
.
-
-
Constructor Details
-
PreferenceVO
public PreferenceVO()
-
-
Method Details
-
getpKey
-
hasPKey
public boolean hasPKey() -
setpKey
-
getKey
-
setKey
-
getOwner
-
setOwner
-
getDescription
-
setDescription
-
getVal
-
setVal
-
getGroupName
-
setGroupName
-
getType
-
setType
-
equals
All fields.- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<PreferenceVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<PreferenceVO>
-
getContentType
Returns the representation type of the Preference.- Returns:
- Conforms to the HTTP Content-Type convention
-