public abstract class AbstractFeatureStore extends Object implements FeatureStore
| Constructor and Description |
|---|
AbstractFeatureStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertFeatureExist(String uid)
Validate feature uid.
|
protected void |
assertFeatureNotExist(String uid)
Check that current feature does not exist.
|
protected void |
assertFeatureNotNull(Feature feature)
Validate feature uid.
|
protected void |
assertGroupExist(String groupName)
Validate feature uid.
|
void |
createSchema()
Initialize the target database schema by creating expected structures.
|
void |
importFeatures(Collection<Feature> features)
Import features from a set of feature.
|
Map<String,Feature> |
importFeaturesFromXmlFile(String xmlConfFile)
Initialize store from XML Configuration File.
|
String |
toJson() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddToGroup, clear, create, delete, disable, disableGroup, enable, enableGroup, exist, existGroup, grantRoleOnFeature, read, readAll, readAllGroups, readGroup, removeFromGroup, removeRoleFromFeature, updatepublic Map<String,Feature> importFeaturesFromXmlFile(String xmlConfFile)
xmlConfFile - xml configuration filepublic void createSchema()
createSchema in interface FeatureStorepublic void importFeatures(Collection<Feature> features)
importFeatures in interface FeatureStorefeatures - public String toJson()
protected void assertFeatureExist(String uid)
uid - target uidprotected void assertFeatureNotExist(String uid)
uid - current feature identifier.sprotected void assertGroupExist(String groupName)
uid - target uidprotected void assertFeatureNotNull(Feature feature)
uid - target uidCopyright © 2013–2017 FF4J. All rights reserved.