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
FieldsModifier and TypeFieldDescriptionprivate @Size(max=255) StringA descriptive text of thePreference.private @Size(max=36) StringThe groupName of thePreference.private @NotBlank @Size(min=1,max=60) StringThe unique business key (along other identifying properties) of the resource, must not be null.static final StringHTTP media type representation.private @Size(max=60) StringThe owner of the resource.private StringThe persistent key of the resource.static final Stringprivate @NotBlank @Size(max=36) StringThe type of thePreference.static final Stringprivate @Size(max=4096) SerializableThe value of thePreference.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAll fields.Returns the representation type of the Preference.getKey()getOwner()getpKey()getType()getVal()inthashCode()All fields.booleanhasPKey()voidsetDescription(String description) voidsetGroupName(String groupName) voidvoidvoidvoidvoidsetVal(Serializable val) Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, setOlMethods 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:
equalsin classorg.ameba.http.AbstractBase<PreferenceVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCodein classorg.ameba.http.AbstractBase<PreferenceVO>
-
getContentType
Returns the representation type of the Preference.- Returns:
- Conforms to the HTTP Content-Type convention
-