Class TemplateRequestBody

  • All Implemented Interfaces:
    Serializable

    public class TemplateRequestBody
    extends TemplateProperties
    TemplateRequestBody carries the parameters for creating a new asset using a template. The external source identifiers indicate whether the new asset should be created as an external element or not.
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateRequestBody

        public TemplateRequestBody()
        Default constructor
      • TemplateRequestBody

        public TemplateRequestBody​(TemplateRequestBody template)
        Copy/clone constructor
        Parameters:
        template - object to copy
      • TemplateRequestBody

        public TemplateRequestBody​(TemplateProperties template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getExternalSourceGUID

        public String getExternalSourceGUID()
        Return the unique identifier of the software server capability entity that represented the external source - null for local.
        Returns:
        string guid
      • setExternalSourceGUID

        public void setExternalSourceGUID​(String externalSourceGUID)
        Set up the unique identifier of the software server capability entity that represented the external source - null for local.
        Parameters:
        externalSourceGUID - string guid
      • getExternalSourceName

        public String getExternalSourceName()
        Return the unique name of the software server capability entity that represented the external source.
        Returns:
        string name
      • setExternalSourceName

        public void setExternalSourceName​(String externalSourceName)
        Set up the unique name of the software server capability entity that represented the external source.
        Parameters:
        externalSourceName - string name
      • getParentGUID

        public String getParentGUID()
        Return an optional parent GUID to attach the new element to.
        Returns:
        guid
      • setParentGUID

        public void setParentGUID​(String parentGUID)
        Set up an optional parent GUID to attach the new element to.
        Parameters:
        parentGUID - guid
      • toString

        public String toString()
        JSON-style toString
        Overrides:
        toString in class TemplateProperties
        Returns:
        return string containing the property names and values
      • equals

        public boolean equals​(Object objectToCompare)
        Return comparison result based on the content of the properties.
        Overrides:
        equals in class TemplateProperties
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class TemplateProperties
        Returns:
        int hash code