Package com.adobe.granite.resourcestatus
Interface ResourceStatusProvider
public interface ResourceStatusProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetStatuses(Resource resource) Returns a list ofResourceStatuses for a givenResource.getType()Returns the type of statuses that are provided by this provider.
-
Method Details
-
getType
Returns the type of statuses that are provided by this provider. The status type defines the module or feature the status originates from. The statuses returned bygetStatuses(Resource)must be of the this status type.- Returns:
- the type of the statuses provided by this provider
- See Also:
-
getStatuses
Returns a list ofResourceStatuses for a givenResource. The returned statuses must match the status type returned bygetType()and must not leak any information which theresource's underlying resource provider is not privileged to access.- Parameters:
resource- a resource- Returns:
- a list of statuses
- See Also:
-