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

public class PreferenceVO extends org.ameba.http.AbstractBase<PreferenceVO>
A PreferenceVO.
Author:
Heiko Scherrer
  • Field Details

    • TYPE

      public static final String TYPE
      See Also:
    • SUB_TYPE

      public static final String SUB_TYPE
      See Also:
    • MEDIA_TYPE

      public static final String MEDIA_TYPE
      HTTP media type representation.
      See Also:
    • pKey

      private String pKey
      The persistent key of the resource.
    • key

      @NotBlank @Size(min=1, max=60) private @NotBlank @Size(min=1,max=60) String key
      The unique business key (along other identifying properties) of the resource, must not be null.
    • owner

      @Size(max=60) private @Size(max=60) String owner
      The owner of the resource.
    • description

      @Size(max=255) private @Size(max=255) String description
      A descriptive text of the Preference.
    • val

      @Size(max=4096) private @Size(max=4096) Serializable val
      The value of the Preference.
    • groupName

      @Size(max=36) private @Size(max=36) String groupName
      The groupName of the Preference.
    • type

      @NotBlank @Size(max=36) private @NotBlank @Size(max=36) String type
      The type of the Preference.
  • Constructor Details

    • PreferenceVO

      public PreferenceVO()
  • Method Details

    • getpKey

      public String getpKey()
    • hasPKey

      public boolean hasPKey()
    • setpKey

      public void setpKey(String pKey)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getVal

      public Serializable getVal()
    • setVal

      public void setVal(Serializable val)
    • getGroupName

      public String getGroupName()
    • setGroupName

      public void setGroupName(String groupName)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • equals

      public boolean equals(Object o)
      All fields.
      Overrides:
      equals in class org.springframework.hateoas.RepresentationModel<PreferenceVO>
    • hashCode

      public int hashCode()
      All fields.
      Overrides:
      hashCode in class org.springframework.hateoas.RepresentationModel<PreferenceVO>
    • getContentType

      public String getContentType()
      Returns the representation type of the Preference.
      Returns:
      Conforms to the HTTP Content-Type convention