Class CMAContentType


  • public class CMAContentType
    extends CMAResource
    Represents a resource of type Content Type.
    • Constructor Detail

      • CMAContentType

        public CMAContentType()
        Create a CMAContentType, filling it's CMASystem field.
    • Method Detail

      • addField

        public CMAContentType addField​(CMAField field)
        Adds a new field.
        Parameters:
        field - CMAField instance
        Returns:
        this CMAContentType
      • getName

        public java.lang.String getName()
        Returns:
        the name of this Content Type.
      • setName

        public CMAContentType setName​(java.lang.String name)
        Sets the name for this Content Type.
        Parameters:
        name - name
        Returns:
        this CMAContentType
      • getFields

        public java.util.List<CMAField> getFields()
        Returns:
        a list of fields for this Content Type.
      • setFields

        public CMAContentType setFields​(java.util.List<CMAField> fields)
        Sets a list of fields for this Content Type.
        Parameters:
        fields - List of fields
        Returns:
        this CMAContentType instance
      • getDisplayField

        public java.lang.String getDisplayField()
        Returns:
        the display field of this Content Type.
      • setDisplayField

        public CMAContentType setDisplayField​(java.lang.String displayField)
        Sets the display field for this Content Type.
        Parameters:
        displayField - the field to be set
        Returns:
        this CMAContentType instance
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description of this Content Type.
      • setDescription

        public CMAContentType setDescription​(java.lang.String description)
        Sets the description field for this Content Type.
        Parameters:
        description - the description to be set
        Returns:
        this CMAContentType instance
      • setSystem

        public CMAContentType setSystem​(CMASystem system)
        Sets the system field.
        Overrides:
        setSystem in class CMAResource
        Parameters:
        system - sets the system property.
        Returns:
        this, as casted to a resource, for the ease of chaining.
      • getVersion

        public java.lang.Integer getVersion()
        Convenience for getting the version of this resource.
        Overrides:
        getVersion in class CMAResource
        Returns:
        the calling instance for chaining.
      • setVersion

        public CMAContentType setVersion​(java.lang.Integer version)
        Convenience: Update the version of this entry without going through CMAResource.getSystem().
        Overrides:
        setVersion in class CMAResource
        Parameters:
        version - to be set.
        Returns:
        the calling instance for chaining.
      • setSpaceId

        public CMAContentType setSpaceId​(java.lang.String spaceId)
        Convenience: Update the space id of this entry without going through CMAResource.getSystem().
        Overrides:
        setSpaceId in class CMAResource
        Parameters:
        spaceId - to be set.
        Returns:
        the calling instance for chaining.
      • setEnvironmentId

        public CMAContentType setEnvironmentId​(java.lang.String environmentId)
        Convenience method for setting an environment id.
        Overrides:
        setEnvironmentId in class CMAResource
        Parameters:
        environmentId - the id to be set.
        Returns:
        the calling CMAResource for chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class CMAResource
        Returns:
        a human readable string, representing the object.