Class BaseEntityImpl

java.lang.Object
com.labs64.netlicensing.util.Visitable
com.labs64.netlicensing.domain.entity.impl.BaseEntityImpl
All Implemented Interfaces:
BaseEntity, Serializable
Direct Known Subclasses:
BundleImpl, CountryImpl, LicenseeImpl, LicenseImpl, LicenseTemplateImpl, NotificationImpl, PaymentMethodImpl, ProductImpl, ProductModuleImpl, TokenImpl, TransactionImpl

public abstract class BaseEntityImpl extends Visitable implements BaseEntity
Default implementation of BaseEntity.
See Also:
  • Constructor Details

    • BaseEntityImpl

      public BaseEntityImpl()
  • Method Details

    • getReservedProps

      public static List<String> getReservedProps()
      List of reserved properties is used for handling of custom properties. Property name that is included in the list can not be used as custom property name. The list is extended by each derived entity class until the final business entity.
      Returns:
      the list of reserved property names
    • getNumber

      public String getNumber()
      Specified by:
      getNumber in interface BaseEntity
    • setNumber

      public void setNumber(String number)
      Specified by:
      setNumber in interface BaseEntity
    • getActive

      public Boolean getActive()
      Specified by:
      getActive in interface BaseEntity
    • setActive

      public void setActive(Boolean active)
      Specified by:
      setActive in interface BaseEntity
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface BaseEntity
    • addProperty

      public void addProperty(String property, String value)
      Specified by:
      addProperty in interface BaseEntity
    • removeProperty

      public void removeProperty(String property)
      Specified by:
      removeProperty in interface BaseEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asRequestForm

      public javax.ws.rs.core.Form asRequestForm()
      Description copied from interface: BaseEntity
      Converts properties of the entity to the body of POST request
      Specified by:
      asRequestForm in interface BaseEntity
      Returns:
      object that represents HTML form data request encoded using the "application/x-www-form-urlencoded" content type
    • asPropertiesMap

      protected javax.ws.rs.core.MultivaluedMap<String,Object> asPropertiesMap()
    • toString

      protected String toString(javax.ws.rs.core.MultivaluedMap<String,Object> propMap)