<AdapterType> AdapterType |
ResourceProvider.adaptTo(@NotNull ResolveContext<T> ctx,
@NotNull Class<AdapterType> type) |
Adapts the provider to another type.
|
void |
ResourceProvider.commit(@NotNull ResolveContext<T> ctx) |
Commit all transient changes: create, delete and updates
|
boolean |
ResourceProvider.copy(@NotNull ResolveContext<T> ctx,
@NotNull String srcAbsPath,
@NotNull String destAbsPath) |
This method copies the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath .
|
@NotNull Resource |
ResourceProvider.create(@NotNull ResolveContext<T> ctx,
String path,
Map<String,Object> properties) |
Create a new resource at the given path.
|
void |
ResourceProvider.delete(@NotNull ResolveContext<T> ctx,
@NotNull Resource resource) |
Delete the resource at the given path.
|
Iterator<Resource> |
QueryLanguageProvider.findResources(@NotNull ResolveContext<T> ctx,
String query,
String language) |
Searches for resources using the given query formulated in the given
language.
|
@Nullable Object |
ResourceProvider.getAttribute(@NotNull ResolveContext<T> ctx,
@NotNull String name) |
Returns the value of the given resource provider attribute or null
if the attribute is not set or not visible (as e.g.
|
@Nullable Collection<String> |
ResourceProvider.getAttributeNames(@NotNull ResolveContext<T> ctx) |
|
@Nullable Resource |
ResourceProvider.getParent(@NotNull ResolveContext<T> ctx,
@NotNull Resource child) |
Returns the parent resource from this resource provider or null if
the resource provider cannot find it.
|
abstract @Nullable Resource |
ResourceProvider.getResource(@NotNull ResolveContext<T> ctx,
@NotNull String path,
@NotNull ResourceContext resourceContext,
@Nullable Resource parent) |
Returns a resource from this resource provider or null if
the resource provider cannot find it.
|
String[] |
QueryLanguageProvider.getSupportedLanguages(@NotNull ResolveContext<T> ctx) |
The supported languages of the resource provider.
|
boolean |
ResourceProvider.hasChanges(@NotNull ResolveContext<T> ctx) |
Are there any transient changes?
|
boolean |
ResourceProvider.isLive(@NotNull ResolveContext<T> ctx) |
Returns true if this resource provider has not been closed
yet and can still be used.
|
abstract @Nullable Iterator<Resource> |
ResourceProvider.listChildren(@NotNull ResolveContext<T> ctx,
@NotNull Resource parent) |
Returns an Iterator of Resource objects loaded from
the children of the given Resource .
|
boolean |
ResourceProvider.move(@NotNull ResolveContext<T> ctx,
@NotNull String srcAbsPath,
@NotNull String destAbsPath) |
This method moves the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath .
|
Iterator<ValueMap> |
QueryLanguageProvider.queryResources(@NotNull ResolveContext<T> ctx,
String query,
String language) |
Queries the storage using the given query formulated in the given
language.
|
void |
ResourceProvider.refresh(@NotNull ResolveContext<T> ctx) |
The provider is updated to reflect the latest state.
|
void |
ResourceProvider.revert(@NotNull ResolveContext<T> ctx) |
Revert all transient changes: create, delete and updates.
|