Interface IdentifiersDefinitionStore
- All Known Subinterfaces:
CompositeObjectDefinition
,CompositeObjectDefinitionDelegator
,ResourceObjectClassDefinition
,ResourceObjectClassDefinitionDelegator
,ResourceObjectDefinition
,ResourceObjectDefinitionDelegator
,ResourceObjectTypeDefinition
,ResourceObjectTypeDefinitionDelegator
,ShadowAttributesComplexTypeDefinition
- All Known Implementing Classes:
AbstractResourceObjectDefinitionImpl
,CompositeObjectDefinitionImpl
,ResourceObjectClassDefinitionImpl
,ResourceObjectTypeDefinitionImpl
public interface IdentifiersDefinitionStore
Provides information about primary and secondary identifiers.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>>
Returns both primary and secondary identifiers.default @NotNull Collection<QName>
default <T> @NotNull ShadowSimpleAttributeDefinition<T>
Currently, there must be exactly one primary identifier.@NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>>
Returns the definition of primary identifier attributes of a resource object.@NotNull Collection<QName>
Returns names of primary identifiers.default <T> @NotNull ShadowSimpleAttributeDefinition<T>
In general, there may be more (or zero) secondary identifiers present.@NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>>
Returns the definition of secondary identifier attributes of a resource object.@NotNull Collection<QName>
Returns names of secondary identifiers.default boolean
isIdentifier
(QName attrName) Returns true if the attribute is either primary or secondary identifier.default boolean
isPrimaryIdentifier
(QName attrName) Returns true if the attribute with a given name is among primary identifiers.default boolean
isSecondaryIdentifier
(QName attrName) Returns true if the attribute with a given name is among secondary identifiers.
-
Method Details
-
getPrimaryIdentifiers
Returns the definition of primary identifier attributes of a resource object. May return empty set if there are no identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Returns:
- definition of identifier attributes
-
getPrimaryIdentifierRequired
Currently, there must be exactly one primary identifier. -
getPrimaryIdentifiersNames
Returns names of primary identifiers.- See Also:
-
isPrimaryIdentifier
Returns true if the attribute with a given name is among primary identifiers. Matching is done using namespace-approximate method (testing only local part if no namespace is provided), so beware of incidental matching (e.g. ri:uid vs icfs:uid). -
getSecondaryIdentifiers
@NotNull @NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>> getSecondaryIdentifiers()Returns the definition of secondary identifier attributes of a resource object. May return empty set if there are no secondary identifier attributes. Must not return null. The exception should be never thrown unless there is some bug in the code. The validation of model consistency should be done at the time of schema parsing.- Returns:
- definition of secondary identifier attributes
-
getSecondaryIdentifierRequired
@VisibleForTesting @NotNull default <T> @NotNull ShadowSimpleAttributeDefinition<T> getSecondaryIdentifierRequired()In general, there may be more (or zero) secondary identifiers present. But in special cases we may expect just one. -
getSecondaryIdentifiersNames
Returns names of secondary identifiers.- See Also:
-
isSecondaryIdentifier
Returns true if the attribute with a given name is among secondary identifiers. Matching is done using namespace-approximate method (testing only local part if no namespace is provided), so beware of incidental matching (e.g. ri:uid vs icfs:uid). -
isIdentifier
Returns true if the attribute is either primary or secondary identifier. -
getAllIdentifiers
@NotNull default @NotNull Collection<? extends ShadowSimpleAttributeDefinition<?>> getAllIdentifiers()Returns both primary and secondary identifiers. -
getAllIdentifiersNames
-