public interface FeatureModel
browse and modify the feature content by adding or removingcontent objects (IDProvider or data records.
To persist modifications to this feature call FeatureAgent.saveFeature(FeatureModel).
Missing References:missing references.
These references are differentiated in essential references andoptional references. A feature is transportablealthough it has missing essential references but during installing the
feature transport file to a target project the different types of missing references will be important.
Missing essential references which couldn't be mapped to existing elements in
target project will cause the feature to be not installable.
In contrast missing optional references which couldn't be mapped will cause
warnings but the feature will stay installable.FeatureAgent,
FeatureDescriptor| Modifier and Type | Interface and Description |
|---|---|
static interface |
FeatureModel.FeatureDatasetReference
Definition of an feature reference referencing a dataset.
|
static interface |
FeatureModel.FeatureElementReference
Definition of an feature reference referencing a store node.
|
static interface |
FeatureModel.FeatureReference<T extends IDProvider>
Definition representing a feature reference.
|
static class |
FeatureModel.FeatureReferencesType
Type of
feature references. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Collection<IDProvider> elementsToAdd)
Adds the given elements collection to this feature model.
|
boolean |
add(IDProvider elementToAdd)
Adds the given element to this feature model.
|
Map<Schema,Map<EntityType,Collection<Dataset>>> |
getDataRecords()
Returns all
data records contained in this feature model as an unmodifiable map. |
Pair<Collection<FeatureModel.FeatureReference<?>>,Collection<FeatureModel.FeatureReference<?>>> |
getMissingReferences()
Returns all missing references of this feature model existing at time calling this method.
|
Map<Store.Type,Collection<IDProvider>> |
getStoreNodes()
Returns all store nodes contained in this feature model as an unmodifiable mapping from
store typeto a collection of IdProvider. |
boolean |
remove(IDProvider toRemove)
Removes the given element from this feature model.
|
boolean add(IDProvider elementToAdd)
dataset provided by Content2.getDataset(Entity)to add a data record to this feature.elementToAdd - the element which should be added to the feature modelFeatureAgent.saveFeature(FeatureModel)boolean add(Collection<IDProvider> elementsToAdd)
datasets provided by Content2.getDataset(Entity)to add data records to this feature.elementsToAdd - the elements which should be added to the feature modelFeatureAgent.saveFeature(FeatureModel)boolean remove(IDProvider toRemove)
dataset provided by Content2.getDataset(Entity)to remove a data record from this feature.toRemove - the element which should be removedFeatureAgent.saveFeature(FeatureModel)Map<Store.Type,Collection<IDProvider>> getStoreNodes()
store typeto a collection of IdProvider. Returned map contains only start nodes, therefore all children of these nodes
are part of the feature too.add(IDProvider)or remove(IDProvider) will not affect the returned map.getDataRecords()Map<Schema,Map<EntityType,Collection<Dataset>>> getDataRecords()
data records contained in this feature model as an unmodifiable map.add(Dataset)or remove(Dataset) will not affect the returned map.getStoreNodes()Pair<Collection<FeatureModel.FeatureReference<?>>,Collection<FeatureModel.FeatureReference<?>>> getMissingReferences()
Pair.getKey() key and missing optional references as valueCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408