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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Map<String,​Object> getData()
      Returns an unmodifiable map containing the status information and data needed to render this status.
      int getPriority()
      Returns the priority of this status corresponding to its importance (Integer.MAX_VALUE being the highest priority).
      String getResourceSuperType()
      Returns the resource super type to render this status.
      String getResourceType()
      Returns the resource type to render this status.
      String getType()
      Returns the type of this status defining the module or feature this status is associated with.
    • Method Detail

      • 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