Enum Class 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>
,Constable
- Enclosing class:
- TreeStorageNodePrescription
public static enum TreeStorageNodePrescription.FieldContainedStatus
extends Enum<TreeStorageNodePrescription.FieldContainedStatus>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionField is fully contained in the storage in this node.Field is not contained in the storage in this node but parts of it might be contained in some child node as wellField is contained in the storage in this node but parts of it might be contained in some child node as well. -
Method Summary
Modifier and TypeMethodDescriptionReturns the status of the field if this field status in this node was stripped off the field statuss
.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULLY
Field is fully contained in the storage in this node. For example, attributefoo
or fieldNAME
stored in this node would beFULLY
contained field.- See Also:
-
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
Field is not contained in the storage in this node but parts of it might be contained in some child node as well
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
FULLY
orPARTIALLY
, 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
PARTIALLY
and 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_CONTAINED
at all, then the result remainsNOT_CONTAINED
regardless of the other node status
- If the field in this node is contained
-
max
-
max
-