Class NotifReleaseProperty

java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.pojos.NotifReleaseProperty
All Implemented Interfaces:
Serializable

public class NotifReleaseProperty extends BasePOJO
An object representing a release property. The metadata is defined on the pipeline which is referenced by the release, and the value is defined on each release which uses the pipeline. For use within Notification Templates.
See Also:
  • Constructor Details

    • NotifReleaseProperty

      public NotifReleaseProperty(String pCode, String pName, DataTypeEnum pType, String pDescription, boolean pIsEncrypted, String pValueAsString)
      Contructs a release property from the given metadata and value.
      Parameters:
      pCode - The code of the release property.
      pName - The display name of the release property.
      pType - The datatype of the release property.
      pDescription - The description of the release property.
      pIsEncrypted - Whether the release property is encrypted or not. Supported for String properties only.
      pValueAsString - The value of the release property as a String. The value will be converted to appropriate primitive wrapper.
  • Method Details

    • getCode

      public String getCode()
      Returns the code of the release property.
      Returns:
      The release property code.
    • getName

      public String getName()
      Returns the display name of the release property.
      Returns:
      The release property display name.
    • getDescription

      public String getDescription()
      Returns the description of the release property
      Returns:
      The release property description.
    • isEncrypted

      public boolean isEncrypted()
      Returns whether the release property is encrypted.
      Returns:
      Whether the release property is encrypted.
    • getValue

      public Serializable getValue()
      Returns the value of the release property, converted to the corresponding datatype (i.e. String, Integer, Long, Double, Boolean). If the property is encrypted, the value that is returned will be masked.
      Returns:
      The value of release property. Concrete type will be one of [String, Integer, Long, Double, Boolean].
    • getTypeEnum

      public DataTypeEnum getTypeEnum()
      Returns the datatype for this release property.
      Returns:
      The replease property datatype.
    • getType

      public String getType()
      Returns the type name of the release property (i.e. String, Integer, Long, Double, Boolean).
      Returns:
      The release property datatype name.
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class BasePOJO
      Returns:
      A string representation of the object.