Class CmsResourceStateUtil


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

    Since:
    8.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getStateName​(org.opencms.db.CmsResourceState state)
      Returns the human-readable name of a resource state.
      static java.lang.String getStateStyle​(org.opencms.db.CmsResourceState state)
      Returns the text style for a given resource state.
      • Methods inherited from class java.lang.Object

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

      • getStateName

        public static java.lang.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 java.lang.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