Enum TreeStorageNodePrescription.FieldContainedStatus
- java.lang.Object
-
- java.lang.Enum<TreeStorageNodePrescription.FieldContainedStatus>
-
- org.keycloak.models.map.storage.tree.TreeStorageNodePrescription.FieldContainedStatus
-
- All Implemented Interfaces:
Serializable,Comparable<TreeStorageNodePrescription.FieldContainedStatus>
- Enclosing class:
- TreeStorageNodePrescription
public static enum TreeStorageNodePrescription.FieldContainedStatus extends Enum<TreeStorageNodePrescription.FieldContainedStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLYField is fully contained in the storage in this node.NOT_CONTAINEDField is not contained in the storage in this node but parts of it might be contained in some child node as wellPARTIALLYField is contained in the storage in this node but parts of it might be contained in some child node as well.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TreeStorageNodePrescription.FieldContainedStatusmax(Supplier<TreeStorageNodePrescription.FieldContainedStatus> otherFunc)TreeStorageNodePrescription.FieldContainedStatusmax(TreeStorageNodePrescription.FieldContainedStatus other)abstract TreeStorageNodePrescription.FieldContainedStatusminus(TreeStorageNodePrescription.FieldContainedStatus s)Returns the status of the field if this field status in this node was stripped off the field statuss.static TreeStorageNodePrescription.FieldContainedStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static TreeStorageNodePrescription.FieldContainedStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULLY
public static final TreeStorageNodePrescription.FieldContainedStatus FULLY
Field is fully contained in the storage in this node. For example, attributefooor fieldNAMEstored in this node would beFULLYcontained field.- See Also:
PARTIALLY
-
PARTIALLY
public static final TreeStorageNodePrescription.FieldContainedStatus PARTIALLY
Field is contained in the storage in this node but parts of it might be contained in some child node as well. For example, a few attributes can be partially supplied from an LDAP, and the rest could be supplied from the supplementing JPA node.This status is never used in the case of a fully specified field access but can be used for map-like attributes where the key is not specified.
-
NOT_CONTAINED
public static final TreeStorageNodePrescription.FieldContainedStatus NOT_CONTAINED
Field is not contained in the storage in this node but parts of it might be contained in some child node as well
-
-
Method Detail
-
values
public static TreeStorageNodePrescription.FieldContainedStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TreeStorageNodePrescription.FieldContainedStatus c : TreeStorageNodePrescription.FieldContainedStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeStorageNodePrescription.FieldContainedStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
minus
public abstract TreeStorageNodePrescription.FieldContainedStatus minus(TreeStorageNodePrescription.FieldContainedStatus s)
Returns the status of the field if this field status in this node was stripped off the field statuss. Specifically, for two nodes in parent/child relationship,parent.minus(child)answers the question: "How much of the field does parent contain that is not contained in the child?"- If the field in this node is contained
FULLYorPARTIALLY, and the field in the other node is containedFULLY, then there is no need to store any part of the field in this node, i.e. the result isNOT_CONTAINED - If the field in this node is contained
PARTIALLYand the field in the other node is also only containedPARTIALLY, then the portions might be disjunct, so it is still necessary to store a part of the field in this node, i.e. the result isPARTIALLY - If the field in this node is
NOT_CONTAINEDat all, then the result remainsNOT_CONTAINEDregardless of the other node status
- If the field in this node is contained
-
max
public TreeStorageNodePrescription.FieldContainedStatus max(TreeStorageNodePrescription.FieldContainedStatus other)
-
max
public TreeStorageNodePrescription.FieldContainedStatus max(Supplier<TreeStorageNodePrescription.FieldContainedStatus> otherFunc)
-
-