Class EditorResourceStatus

java.lang.Object
com.day.cq.wcm.commons.status.EditorResourceStatus
All Implemented Interfaces:
ResourceStatus

public class EditorResourceStatus extends Object implements ResourceStatus

Implementation of a ResourceStatus for resources that are authored in the Editor (such as pages or templates). EditorResourceStatuses are retrieved and displayed in a status bar in the Editor.

An EditorResourceStatus consists of the following information:

See Also:
  • Constructor Details

  • Method Details

    • getType

      @Nonnull public String getType()
      Description copied from interface: ResourceStatus
      Returns the type of this status defining the module or feature this status is associated with.
      Specified by:
      getType in interface ResourceStatus
      Returns:
      the status type
      See Also:
    • getPriority

      public int getPriority()
      Description copied from interface: ResourceStatus
      Returns the priority of this status corresponding to its importance (Integer.MAX_VALUE being the highest priority).
      Specified by:
      getPriority in interface ResourceStatus
      Returns:
      the status priority
    • getData

      @Nullable public Map<String,Object> getData()
      Description copied from interface: ResourceStatus
      Returns an unmodifiable map containing the status information and data needed to render this status.
      Specified by:
      getData in interface ResourceStatus
      Returns:
      a map containing key/value pairs
    • getResourceType

      @Nullable public String getResourceType()
      Description copied from interface: ResourceStatus
      Returns the resource type to render this status.
      Specified by:
      getResourceType in interface ResourceStatus
      Returns:
      a resource type or null
    • getResourceSuperType

      @Nullable public String getResourceSuperType()
      Description copied from interface: ResourceStatus
      Returns the resource super type to render this status.
      Specified by:
      getResourceSuperType in interface ResourceStatus
      Returns:
      a resource super type or null
    • getTitle

      @Nonnull public String getTitle()
      Returns the title of this status, which describes the module or feature the status is associated with. In contrast to the the status type (see getType()), the title is meant to be displayed in the user interface.
      Returns:
      the status title
    • getMessage

      public String getMessage()
      Returns the status message.
      Returns:
      the status message
    • getVariant

      @Nonnull public EditorResourceStatus.Variant getVariant()
      Returns the variant of this status.
      Returns:
      the status variant
      See Also:
    • getIcon

      @Nullable public String getIcon()
      Returns the name of a CoralUI icon to be displayed in the status. If no icon is set, then a default icon is assumed (depending on the specified EditorResourceStatus.Variant).
      Returns:
      the status icon or null
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Returns the additional data defined for this status, corresponding to the data that was added using EditorResourceStatus.Builder.addData(String, Object). In contrast, getData() returns a map containing all information defining this status (i.e. including title, message etc).
      Returns:
      the additional data of this status
    • getActions

      @Nonnull public List<EditorResourceStatus.Action> getActions()
      Returns the actions of this status.
      Returns:
      a list of actions
      See Also: