public interface ResourceProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getResource(SessionToken session,
ResourceDescriptor resourceDescriptor)
Gets the the resource identified by the resource descriptor.
|
byte[] |
getResource(SessionToken session,
java.util.UUID resourceID)
Gets the (latest revision of the) designated resource or
null
in case no resource with the designated ID exists. |
ResourceDescriptor |
getResourceDescriptor(SessionToken session,
java.util.UUID resourceID)
Gets the latest revision of the designated resource descriptor or
null in case no resource descriptor with the designated ID
exists. |
ServerStream |
getResourceIncrementally(SessionToken session,
ResourceDescriptor resourceDescriptor)
The same as
getResource(SessionToken, ResourceDescriptor) but with
incremental retrieval of the resource. |
ServerStream |
getResourceIncrementally(SessionToken session,
java.util.UUID resourceID)
The same as
getResource(SessionToken, UUID) but with incremental
retrieval of the resource. |
ResourceDescriptor getResourceDescriptor(SessionToken session, java.util.UUID resourceID)
null in case no resource descriptor with the designated ID
exists.session - The session which is used to check for access rights on this
method.resourceID - The ID of the resource descriptor of which to retrieve
the latest revision.null in case the corresponding
resource descriptor does not exist.byte[] getResource(SessionToken session, java.util.UUID resourceID)
null
in case no resource with the designated ID exists.session - The session which is used to check for access rights on this
method.resourceID - The ID of the resource of which to retrieve the latest
revision.null in case the corresponding resource does not
exist.ServerStream getResourceIncrementally(SessionToken session, java.util.UUID resourceID)
getResource(SessionToken, UUID) but with incremental
retrieval of the resource.session - The session which is used to check for access rights on this
method.resourceID - The ID of the resource of which to retrieve the latest
revision.ServerStream or null in case the
corresponding resource does not exist.byte[] getResource(SessionToken session, ResourceDescriptor resourceDescriptor)
session - The session which is used to check for access rights on this
method.resourceDescriptor - The descriptor providing the resource ID as well
as the revision for which to retrieve resource.java.lang.IllegalArgumentException - If the designated resource descriptor is
invalid, for instance it has an invalid resource ID or revision,
an IllegalArgumentException will be thrown.ServerStream getResourceIncrementally(SessionToken session, ResourceDescriptor resourceDescriptor)
getResource(SessionToken, ResourceDescriptor) but with
incremental retrieval of the resource.session - The session which is used to check for access rights on this
method.resourceDescriptor - The descriptor providing the resource ID as well
as the revision for which to retrieve resource.ServerStream or
null in case the corresponding resource does not
exist.java.lang.IllegalArgumentException - If the designated resource descriptor is
invalid, for instance it has an invalid resource ID or revision,
an IllegalArgumentException will be thrown.