public interface Aggregate extends Resource
ScopeCode.SERIES
for more examples.DataStore
instances.
metadata
/
metadataScope
/
resourceScope
sets to
ScopeCode.SERIES
or
ScopeCode.INITIATIVE
if applicable.
If not too expensive to compute, the names of all components should be listed as
associated resources with an AssociationType.IS_COMPOSED_OF
relation.Defined in the sis-storage
module
Modifier and Type | Method and Description |
---|---|
Resource |
add(Resource resource)
Adds a new
Resource in this Aggregate . |
Collection<Resource> |
components()
Returns the children resources of this aggregate.
|
void |
remove(Resource resource)
Removes a
Resource from this Aggregate . |
getMetadata
Collection<Resource> components() throws DataStoreException
The name of each child resource in the returned collection is given by the following metadata element:this.metadata
/identificationInfo
/associatedResource
withAssociationType.IS_COMPOSED_OF
child.metadata
/identificationInfo
/citation
/title
Collection
or Iterator
method, then the collection
or the iterator should wrap the exception in a BackingStoreException
.null
.DataStoreException
- if an error occurred while fetching the components.Resource add(Resource resource) throws ReadOnlyStorageException, DataStoreException
Resource
in this Aggregate
.
The given Resource
will 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:
CoordinateReferenceSystem
Metadata
Resource
structure
and the target Resource
structure. If the differences are too large,
then this Aggregate
may throw an exception.
resource
- the resource to copy in this Aggregate
.resource
itself 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 Aggregate
for another reason.void remove(Resource resource) throws ReadOnlyStorageException, DataStoreException
Resource
from this Aggregate
.
This operation is destructive: the Resource
and it's related data will be removed.
The default implementation throws ReadOnlyStorageException
.
resource
- child resource to remove, should not be null.ReadOnlyStorageException
- if this instance does not support write operations.DataStoreException
- if the given resource could not be removed for another reason.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.