Class CmsProjectBean

java.lang.Object
org.opencms.ade.publish.shared.CmsProjectBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Comparable<CmsProjectBean>

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

Since:
7.6
  • Constructor Details

    • CmsProjectBean

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

      Parameters:
      id - the project id
      type - the project type
      name - the project name
      description - the project description
    • CmsProjectBean

      protected CmsProjectBean()
      For serialization.

  • Method Details

    • compareTo

      public int compareTo(CmsProjectBean otherProject)
      Specified by:
      compareTo in interface Comparable<CmsProjectBean>
      See Also:
    • 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

      Returns the project description.

      Returns:
      the project description
    • getId

      public CmsUUID getId()
      Returns the id.

      Returns:
      the id
    • getName

      public 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(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