Class ResourceObjectIdentification
java.lang.Object
com.evolveum.midpoint.schema.processor.ResourceObjectIdentification
- All Implemented Interfaces:
Serializable
- Author:
- semancik
- See Also:
-
Constructor Summary
ConstructorDescriptionResourceObjectIdentification
(ResourceObjectDefinition resourceObjectDefinition, Collection<? extends ResourceAttribute<?>> primaryIdentifiers, Collection<? extends ResourceAttribute<?>> secondaryIdentifiers) -
Method Summary
Modifier and TypeMethodDescription@NotNull ResourceObjectIdentityType
asBean()
static ResourceObjectIdentification
create
(ResourceObjectDefinition objectDefinition, Collection<? extends ResourceAttribute<?>> allIdentifiers) static ResourceObjectIdentification
createFromAttributes
(@NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull Collection<? extends ResourceAttribute<?>> attributes) static ResourceObjectIdentification
createFromShadow
(@NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull ShadowType shadow) boolean
TODO Or should we compare only relevant parts of the definition? And compare identifiers in unordered way?Collection<? extends ResourceAttribute<?>>
Returned collection should be never modified!<T> ResourceAttribute<T>
@NotNull Collection<? extends ResourceAttribute<?>>
<T> ResourceAttribute<T>
@NotNull Collection<? extends ResourceAttribute<?>>
int
hashCode()
TODO Or should we compare only relevant parts of the definition? And compare identifiers in unordered way?boolean
toString()
void
-
Constructor Details
-
ResourceObjectIdentification
public ResourceObjectIdentification(ResourceObjectDefinition resourceObjectDefinition, Collection<? extends ResourceAttribute<?>> primaryIdentifiers, Collection<? extends ResourceAttribute<?>> secondaryIdentifiers)
-
-
Method Details
-
getPrimaryIdentifiers
-
getPrimaryIdentifier
- Throws:
SchemaException
-
getSecondaryIdentifiers
-
getSecondaryIdentifier
- Throws:
SchemaException
-
getAllIdentifiers
Returned collection should be never modified! -
getResourceObjectDefinition
-
create
public static ResourceObjectIdentification create(ResourceObjectDefinition objectDefinition, Collection<? extends ResourceAttribute<?>> allIdentifiers) throws SchemaException - Throws:
SchemaException
-
createFromAttributes
public static ResourceObjectIdentification createFromAttributes(@NotNull @NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull @NotNull Collection<? extends ResourceAttribute<?>> attributes) -
createFromShadow
public static ResourceObjectIdentification createFromShadow(@NotNull @NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull @NotNull ShadowType shadow) -
validatePrimaryIdentifiers
public void validatePrimaryIdentifiers() -
hasPrimaryIdentifiers
public boolean hasPrimaryIdentifiers() -
equals
TODO Or should we compare only relevant parts of the definition? And compare identifiers in unordered way? -
hashCode
public int hashCode()TODO Or should we compare only relevant parts of the definition? And compare identifiers in unordered way? -
toString
-
asBean
- Throws:
SchemaException
-