Interface ResourceStatus

All Known Implementing Classes:
EditorResourceStatus

public interface ResourceStatus

Represents status information about a Resource. A ResourceStatus is defined by a type, a priority, a data map containing the status information and other data needed to render the status, and possibly a resource (super) type.

Consuming status components retrieve Resources wrapping a ResourceStatus (see com.adobe.granite.resourcestatus). These resources contain the status data as their properties, and can be rendered using the defined resource (super) type.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an unmodifiable map containing the status information and data needed to render this status.
    int
    Returns the priority of this status corresponding to its importance (Integer.MAX_VALUE being the highest priority).
    Returns the resource super type to render this status.
    Returns the resource type to render this status.
    Returns the type of this status defining the module or feature this status is associated with.
  • Method Details

    • getType

      @Nonnull String getType()
      Returns the type of this status defining the module or feature this status is associated with.
      Returns:
      the status type
      See Also:
    • getPriority

      int getPriority()
      Returns the priority of this status corresponding to its importance (Integer.MAX_VALUE being the highest priority).
      Returns:
      the status priority
    • getData

      @Nullable Map<String,Object> getData()
      Returns an unmodifiable map containing the status information and data needed to render this status.
      Returns:
      a map containing key/value pairs
    • getResourceType

      @Nullable String getResourceType()
      Returns the resource type to render this status.
      Returns:
      a resource type or null
    • getResourceSuperType

      @Nullable String getResourceSuperType()
      Returns the resource super type to render this status.
      Returns:
      a resource super type or null