Class BusinessData

java.lang.Object
org.bonitasoft.web.client.model.BusinessData
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.12.0") public class BusinessData extends Object implements Serializable
Retrieve business data value. Depending on the object attribute loading policy, the API returns either the full object in JSON representation or the HATEOAS links to the object attributes. Long attributes use a string representation added in 7.0.1 as a workaround for the JavaScript integer spectrum issue. Representation of object attributes with an _always load_ policy: ```json { \"persistenceId\": _number_, // <-- deprecated \"persistenceId_string\": \"_number_\" \"persistenceVersion\": _number_, // <-- deprecated \"persistenceVersion_string\": \"_number_\" \"attributeName\":_attributeType_ ... } ``` The string representation added in 7.0.1 for Long attributes is a workaround for the JavaScript integer spectrum issue. HATEOAS representation of object attribute with a _load when needed_ policy: ```json \"links\":[ { \"rel\":_string_ \"href\":_uri_ } ] ```
See Also:
  • Field Details

    • JSON_PROPERTY_PERSISTENCE_ID_STRING

      public static final String JSON_PROPERTY_PERSISTENCE_ID_STRING
      See Also:
    • JSON_PROPERTY_PERSISTENCE_VERSION_STRING

      public static final String JSON_PROPERTY_PERSISTENCE_VERSION_STRING
      See Also:
  • Constructor Details

    • BusinessData

      public BusinessData()
  • Method Details

    • persistenceIdString

      public BusinessData persistenceIdString(@Nullable String persistenceIdString)
    • getPersistenceIdString

      @Nullable public String getPersistenceIdString()
      Id of the business data object
      Returns:
      persistenceIdString
    • setPersistenceIdString

      public void setPersistenceIdString(@Nullable String persistenceIdString)
    • persistenceVersionString

      public BusinessData persistenceVersionString(@Nullable String persistenceVersionString)
    • getPersistenceVersionString

      @Nullable public String getPersistenceVersionString()
      Version of the business data object instance
      Returns:
      persistenceVersionString
    • setPersistenceVersionString

      public void setPersistenceVersionString(@Nullable String persistenceVersionString)
    • putAdditionalProperty

      public BusinessData putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - the name of the property
      value - the value of the property
      Returns:
      self reference
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) properties.
      Returns:
      the additional (undeclared) properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - the name of the property
      Returns:
      the additional (undeclared) property with the specified name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object