public class FeatureSet extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureSet.FeatureGroup |
static class |
FeatureSet.FeatureOperation |
| Constructor and Description |
|---|
FeatureSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(FeatureSet.FeatureGroup feature,
FeatureSet.FeatureOperation operation)
Adds the given
FeatureSet.FeatureOperation for the provided FeatureSet.FeatureGroup. |
static void |
addFeatureSupport(FeatureSet featureSet,
FeatureSet.FeatureGroup... groups)
Adds the given
FeatureSet.FeatureGroup values to the provided FeatureSet. |
void |
addRelationshipFeature(Class<? extends Relationship> relationshipClass,
FeatureSet.FeatureOperation operation)
Configures the given
FeatureSet.FeatureOperation for the provided Relationship type. |
static void |
addRelationshipSupport(FeatureSet featureSet,
Class<? extends Relationship>... relationshipClass)
Adds the given
Relationship types to the provided FeatureSet. |
protected void |
lock() |
void |
removeFeature(FeatureSet.FeatureGroup feature)
Removes the given
FeatureSet.FeatureGroup and all supported FeatureSet.FeatureOperation from the features set. |
void |
removeFeature(FeatureSet.FeatureGroup feature,
FeatureSet.FeatureOperation operation)
Removes the given
FeatureSet.FeatureOperation for the provided FeatureSet.FeatureGroup from the features set. |
void |
removeRelationshipFeature(Class<? extends Relationship> relationshipClass,
FeatureSet.FeatureOperation operation)
Removes the given
FeatureSet.FeatureOperation related to the provided Relationship type from the feature set. |
static void |
removeRelationshipSupport(FeatureSet featureSet,
Class<? extends Relationship>... relationshipClasses)
Removes the given
Relationship types from the provided FeatureSet. |
void |
setSupportsCustomRelationships(boolean value) |
void |
setSupportsMultiRealm(boolean value) |
boolean |
supports(FeatureSet.FeatureGroup feature)
Check if the
FeatureSet.FeatureGroup is supported. |
boolean |
supports(FeatureSet.FeatureGroup feature,
FeatureSet.FeatureOperation operation)
Check if the
FeatureSet.FeatureGroup and the given FeatureSet.FeatureOperation are supported. |
boolean |
supportsMultiRealm()
Indicates if multi realms are supported or not.
|
boolean |
supportsRelationship(Class<? extends Relationship> relationshipClass)
Check if the given
Relationship type is supported. |
boolean |
supportsRelationshipFeature(Class<? extends Relationship> relationshipClass,
FeatureSet.FeatureOperation operation)
Check if the given
FeatureSet.FeatureOperation is supported for the provided Relationship type. |
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)
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 - Copyright © 2013. All Rights Reserved.