Class CmsResourceStateUtil

java.lang.Object
org.opencms.gwt.client.util.CmsResourceStateUtil

public final class CmsResourceStateUtil extends Object
Utility class for the publish dialog.

Since:
8.0.0
  • Method Details

    • getStateName

      public static String getStateName(org.opencms.db.CmsResourceState state)
      Returns the human-readable name of a resource state.

      Parameters:
      state - the resource state
      Returns:
      the human-readable name of the code
    • getStateStyle

      public static String getStateStyle(org.opencms.db.CmsResourceState state)
      Returns the text style for a given resource state.

      Parameters:
      state - the resource state
      Returns:
      the style name for the resource's state