Class Blueprint


  • public class Blueprint
    extends Object
    A Blueprint is provided by the developers to create and manage channels by the ChannelManager, and is defined by the node type hst:blueprint. Please see the hst.cnd for the node type definition
    • Constructor Detail

      • Blueprint

        public Blueprint()
    • Method Detail

      • getName

        public String getName()
        Get the name of the Blueprint as provided in the property hst:name, if the property doesn't exist, the id (node name) is returned as the name
        Returns:
        The name of the Blueprint
      • getDescription

        public String getDescription()
        Get value of hst:description of the Blueprint if available, null otherwise
        Returns:
        The Blueprint description
      • setDescription

        public void setDescription​(String description)
        Set the Blueprint description
        Parameters:
        description - The Blueprint description to set
      • getContentRoot

        public String getContentRoot()
        Get the Blueprint content root must start with a / and be a valid JCR path
        Returns:
        Absolute path of the hst:contentRoot of the Blueprint if available, null otherwise
      • setContentRoot

        public void setContentRoot​(String contentRoot)
        Set Blueprint content root
        Parameters:
        contentRoot - - The Blueprint content root to set
      • getHasContentPrototype

        public boolean getHasContentPrototype()
        Does the Blueprint have a content prototype. If so, it will be used to create a content structure
        Returns:
        true if a prototype exists, false otherwise
      • setHasContentPrototype

        public void setHasContentPrototype​(boolean hasContentPrototype)
        Set whether a Blueprint has content prototype or not
        Parameters:
        hasContentPrototype - - The Blueprint getHasContentPrototype flag value to set
      • setPrototypeChannel

        public void setPrototypeChannel​(Channel prototypeChannel)
        Set the prototype Channel
        Parameters:
        prototypeChannel - - The prototype Channel to set
      • getPath

        public String getPath()
        Get the normalized absolute path
        Returns:
        The normalized absolute path
      • setPath

        public void setPath​(String path)
        Set the normalized absolute path
        Parameters:
        path - - The normalized absolute path to set