public class FeatureSet extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureSet.FeatureGroup |
static class |
FeatureSet.FeatureOperation |
| Constructor and Description |
|---|
FeatureSet() |
public void addFeature(FeatureSet.FeatureGroup feature, FeatureSet.FeatureOperation operation) throws SecurityConfigurationException
Adds the given FeatureSet.FeatureOperation for the provided FeatureSet.FeatureGroup.
feature - operation - SecurityConfigurationException - If this instance is locked and changes are no more allowed.public void removeFeature(FeatureSet.FeatureGroup feature, FeatureSet.FeatureOperation operation) throws SecurityConfigurationException
Removes the given FeatureSet.FeatureOperation for the provided FeatureSet.FeatureGroup from the features set.
feature - operation - SecurityConfigurationException - If this instance is locked and changes are no more allowed.public void removeFeature(FeatureSet.FeatureGroup feature) throws SecurityConfigurationException
Removes the given FeatureSet.FeatureGroup and all supported FeatureSet.FeatureOperation from the features set.
feature - SecurityConfigurationException - If this instance is locked and changes are no more allowed.public boolean supports(FeatureSet.FeatureGroup feature, FeatureSet.FeatureOperation operation)
Check if the FeatureSet.FeatureGroup and the given FeatureSet.FeatureOperation are supported.
feature - operation - public boolean supports(FeatureSet.FeatureGroup feature)
Check if the FeatureSet.FeatureGroup is supported.
feature - operation - public void addRelationshipFeature(Class<? extends Relationship> relationshipClass, FeatureSet.FeatureOperation operation)
Configures the given FeatureSet.FeatureOperation for the provided Relationship type.
feature - operation - SecurityConfigurationException - If this instance is locked and changes are no more allowed.public void removeRelationshipFeature(Class<? extends Relationship> relationshipClass, FeatureSet.FeatureOperation operation)
Removes the given FeatureSet.FeatureOperation related to the provided Relationship type from the feature set.
feature - operation - SecurityConfigurationException - If this instance is locked and changes are no more allowed.public boolean supportsRelationshipFeature(Class<? extends Relationship> relationshipClass, FeatureSet.FeatureOperation operation)
Check if the given FeatureSet.FeatureOperation is supported for the provided Relationship type.
feature - operation - public boolean supportsRelationship(Class<? extends Relationship> relationshipClass)
Check if the given Relationship type is supported.
feature - public boolean supportsMultiRealm()
Indicates if multi realms are supported or not.
public void setSupportsCustomRelationships(boolean value)
public void setSupportsMultiRealm(boolean value)
public Map<FeatureSet.FeatureGroup,Set<FeatureSet.FeatureOperation>> getSupportedFeatures()
public Map<Class<? extends Relationship>,Set<FeatureSet.FeatureOperation>> getSupportedRelationships()
protected void lock()
public static void addFeatureSupport(FeatureSet featureSet, FeatureSet.FeatureGroup... groups)
Adds the given FeatureSet.FeatureGroup values to the provided FeatureSet.
featureSet - groups - public static void addRelationshipSupport(FeatureSet featureSet, Class<? extends Relationship>... relationshipClass)
Adds the given Relationship types to the provided FeatureSet. If you do not provide any class only the
default ones will be added.
featureSet - relationshipClass - public static void removeRelationshipSupport(FeatureSet featureSet, Class<? extends Relationship>... relationshipClasses)
Removes the given Relationship types from the provided FeatureSet.
featureSet - relationshipClass - protected static List<Class<? extends Relationship>> getDefaultRelationshipClasses()
Copyright © 2013. All Rights Reserved.