public interface Aggregate extends Resource
ScopeCode.SERIESfor more examples.
ScopeCode.INITIATIVEif applicable. If not too expensive to compute, the names of all components should be listed as associated resources with an
Defined in the
|Modifier and Type||Method and Description|
Adds a new
Returns the children resources of this aggregate.
Collection<Resource> components() throws DataStoreException
The name of each child resource in the returned collection is given by the following metadata element:
Iteratormethod, then the collection or the iterator should wrap the exception in a
DataStoreException- if an error occurred while fetching the components.
Resource add(Resource resource) throws ReadOnlyStorageException, DataStoreException
Aggregate. The given
Resourcewill be copied, and the effectively added resource returned. The effectively added resource may differ from the given resource in many aspects. The possible changes may include the followings but not only:
Resourcestructure and the target
Resourcestructure. If the differences are too large, then this
Aggregatemay throw an exception.
resource- the resource to copy in this
resourceitself if it has been added verbatim.
ReadOnlyStorageException- if this instance does not support write operations.
DataStoreException- if the given resource can not be stored in this
Aggregatefor another reason.
void remove(Resource resource) throws ReadOnlyStorageException, DataStoreException
Aggregate. This operation is destructive: the
Resourceand it's related data will be removed.
The default implementation throws
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.