Class CmsProjectBean

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<CmsProjectBean>

    public class CmsProjectBean
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<CmsProjectBean>
    A project bean.

    Since:
    7.6
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsProjectBean()
      For serialization.
        CmsProjectBean​(CmsUUID id, int type, java.lang.String name, java.lang.String description)
      Creates a new project bean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(CmsProjectBean otherProject)  
      java.lang.String getDefaultGroupName()
      The default name to use for publish groups computed from this project, if no other name is available.
      java.lang.String getDescription()
      Returns the project description.
      CmsUUID getId()
      Returns the id.
      java.lang.String getName()
      Returns the name.
      int getRank()
      Gets the sorting rank.
      int getType()
      Returns the project type.
      boolean isWorkflowProject()
      Returns if the project is of the type workflow project.
      void setDefaultGroupName​(java.lang.String defaultGroupName)
      Sets the default publish group name.
      void setRank​(int rank)
      Sets the sorting rank.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsProjectBean

        public CmsProjectBean​(CmsUUID id,
                              int type,
                              java.lang.String name,
                              java.lang.String description)
        Creates a new project bean.

        Parameters:
        id - the project id
        type - the project type
        name - the project name
        description - the project description
    • Method Detail

      • compareTo

        public int compareTo​(CmsProjectBean otherProject)
        Specified by:
        compareTo in interface java.lang.Comparable<CmsProjectBean>
        See Also:
        Comparable.compareTo(java.lang.Object)
      • getDefaultGroupName

        public java.lang.String getDefaultGroupName()
        The default name to use for publish groups computed from this project, if no other name is available.

        Returns:
        the default publish group name
      • getDescription

        public java.lang.String getDescription()
        Returns the project description.

        Returns:
        the project description
      • getId

        public CmsUUID getId()
        Returns the id.

        Returns:
        the id
      • getName

        public java.lang.String getName()
        Returns the name.

        Returns:
        the name
      • getRank

        public int getRank()
        Gets the sorting rank.

        Returns:
        the sorting rank
      • getType

        public int getType()
        Returns the project type.

        Returns:
        the project type
      • isWorkflowProject

        public boolean isWorkflowProject()
        Returns if the project is of the type workflow project.

        Returns:
        true if the project is of the type workflow project
      • setDefaultGroupName

        public void setDefaultGroupName​(java.lang.String defaultGroupName)
        Sets the default publish group name.

        Parameters:
        defaultGroupName - the default publish group name
      • setRank

        public void setRank​(int rank)
        Sets the sorting rank.

        Parameters:
        rank - the sorting rank