Class ResourceObjectIdentification
- java.lang.Object
-
- com.evolveum.midpoint.schema.processor.ResourceObjectIdentification
-
- All Implemented Interfaces:
Serializable
public class ResourceObjectIdentification extends Object implements Serializable
- Author:
- semancik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceObjectIdentification(ResourceObjectDefinition resourceObjectDefinition, Collection<? extends ResourceAttribute<?>> primaryIdentifiers, Collection<? extends ResourceAttribute<?>> secondaryIdentifiers)
-
Method Summary
-
-
-
Constructor Detail
-
ResourceObjectIdentification
public ResourceObjectIdentification(ResourceObjectDefinition resourceObjectDefinition, Collection<? extends ResourceAttribute<?>> primaryIdentifiers, Collection<? extends ResourceAttribute<?>> secondaryIdentifiers)
-
-
Method Detail
-
getPrimaryIdentifiers
@NotNull public @NotNull Collection<? extends ResourceAttribute<?>> getPrimaryIdentifiers()
-
getPrimaryIdentifier
public <T> ResourceAttribute<T> getPrimaryIdentifier() throws SchemaException
- Throws:
SchemaException
-
getSecondaryIdentifiers
@NotNull public @NotNull Collection<? extends ResourceAttribute<?>> getSecondaryIdentifiers()
-
getSecondaryIdentifier
public <T> ResourceAttribute<T> getSecondaryIdentifier() throws SchemaException
- Throws:
SchemaException
-
getAllIdentifiers
public Collection<? extends ResourceAttribute<?>> getAllIdentifiers()
Returned collection should be never modified!
-
getResourceObjectDefinition
public ResourceObjectDefinition 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
public boolean equals(Object o)
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?
-
asBean
@NotNull public @NotNull ResourceObjectIdentityType asBean() throws SchemaException
- Throws:
SchemaException
-
-