Package com.adobe.granite.resourcestatus
Interface ResourceStatusProvider
-
public interface ResourceStatusProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ResourceStatus>
getStatuses(Resource resource)
Returns a list ofResourceStatus
es for a givenResource
.java.lang.String
getType()
Returns the type of statuses that are provided by this provider.
-
-
-
Method Detail
-
getType
@Nonnull java.lang.String 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:
ResourceStatus.getType()
-
getStatuses
@Nullable java.util.List<ResourceStatus> getStatuses(Resource resource)
Returns a list ofResourceStatus
es 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:
ResourceStatus
-
-