public class ShadowUtil extends Object
Constructor and Description |
---|
ShadowUtil() |
Modifier and Type | Method and Description |
---|---|
static PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
applyObjectClass(PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadowDefinition,
ObjectClassComplexTypeDefinition objectClassDefinition) |
static void |
applyResourceSchema(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ResourceSchema resourceSchema)
This is not supposed to be used in production code! It is just for the tests.
|
static void |
checkConsistence(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
String desc) |
static void |
checkConsistency(PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType> attributesDefinition,
String desc) |
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
determineShadowName(PrismObject<T> shadow) |
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
determineShadowName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
determineShadowStringName(PrismObject<T> shadow) |
static ResourceAttribute<?> |
fixAttributePath(ResourceAttribute<?> attribute) |
static Collection<ResourceAttribute<?>> |
getAllIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static Collection<ResourceAttribute<?>> |
getAllIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static <T> ResourceAttribute<T> |
getAttribute(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
QName attrName) |
static QName |
getAttributeName(ItemPath attributePath,
String message) |
static Collection<ResourceAttribute<?>> |
getAttributes(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static Collection<ResourceAttribute<?>> |
getAttributes(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static ResourceAttributeContainer |
getAttributesContainer(PrismContainerValue<?> cval,
QName containerName) |
static ResourceAttributeContainer |
getAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static ResourceAttributeContainer |
getAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
QName containerName) |
static ResourceAttributeContainer |
getAttributesContainer(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static <T> T |
getAttributeValue(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
QName attrName) |
static <T> T |
getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
QName attrName) |
static <T> List<T> |
getAttributeValues(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
QName attrName) |
static <T> List<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
QName attrName) |
static <T> Collection<T> |
getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attributeQname,
Class<T> type) |
static String |
getHumanReadableName(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static String |
getHumanReadableName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static String |
getIntent(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
Returns intent from the shadow.
|
static com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType |
getKind(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static String |
getMultiStringAttributeValueAsSingle(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attrName) |
static ResourceAttribute<String> |
getNamingAttribute(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static ResourceAttribute<String> |
getNamingAttribute(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static ObjectClassComplexTypeDefinition |
getObjectClassDefinition(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static ObjectClassComplexTypeDefinition |
getObjectClassDefinition(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType |
getOrCreateActivation(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static ResourceAttributeContainer |
getOrCreateAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ObjectClassComplexTypeDefinition objectClassDefinition) |
static Collection<ResourceAttribute<?>> |
getPrimaryIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static Collection<ResourceAttribute<?>> |
getPrimaryIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static PolyString |
getResourceName(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static PolyString |
getResourceName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static ResourceObjectIdentification |
getResourceObjectIdentification(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ObjectClassComplexTypeDefinition objectClassDefinition) |
static String |
getResourceOid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static String |
getResourceOid(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static ResourceAttribute<?> |
getSecondaryIdentifier(ObjectClassComplexTypeDefinition objectClassDefinition,
Collection<? extends ResourceAttribute<?>> identifiers) |
static ResourceAttribute<String> |
getSecondaryIdentifier(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static String |
getSecondaryIdentifierRealValue(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers(Collection<? extends ResourceAttribute<?>> identifiers,
ObjectClassComplexTypeDefinition objectClassDefinition) |
static Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static String |
getSingleStringAttributeValue(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
QName attrName) |
static String |
getSingleStringAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
QName attrName) |
static boolean |
hasPrimaryIdentifier(Collection<? extends ResourceAttribute<?>> identifiers,
ObjectClassComplexTypeDefinition objectClassDefinition) |
static boolean |
isAccount(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType) |
static boolean |
isDead(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) |
static boolean |
isFullShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static boolean |
isProtected(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static boolean |
matches(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ResourceShadowDiscriminator discr) |
static boolean |
matches(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
ResourceShadowDiscriminator discr) |
static boolean |
matches(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static boolean |
matchesAttribute(ItemPath path,
QName attributeName) |
static void |
setPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
ProtectedStringType password) |
public static Collection<ResourceAttribute<?>> getPrimaryIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getPrimaryIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static ResourceAttribute<String> getSecondaryIdentifier(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) throws SchemaException
SchemaException
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(Collection<? extends ResourceAttribute<?>> identifiers, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
SchemaException
public static String getSecondaryIdentifierRealValue(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) throws SchemaException
SchemaException
public static ResourceAttribute<?> getSecondaryIdentifier(ObjectClassComplexTypeDefinition objectClassDefinition, Collection<? extends ResourceAttribute<?>> identifiers) throws SchemaException
SchemaException
public static Collection<ResourceAttribute<?>> getAllIdentifiers(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getAllIdentifiers(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static ResourceAttribute<String> getNamingAttribute(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static ResourceAttribute<String> getNamingAttribute(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getAttributes(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getAttributes(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static <T> ResourceAttribute<T> getAttribute(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, QName attrName)
public static ResourceAttributeContainer getAttributesContainer(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static ResourceAttributeContainer getAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static ResourceAttributeContainer getAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, QName containerName)
public static ResourceAttributeContainer getAttributesContainer(PrismContainerValue<?> cval, QName containerName)
public static ResourceAttributeContainer getOrCreateAttributesContainer(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ObjectClassComplexTypeDefinition objectClassDefinition)
public static ObjectClassComplexTypeDefinition getObjectClassDefinition(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static ObjectClassComplexTypeDefinition getObjectClassDefinition(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static String getResourceOid(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static String getResourceOid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static PolyString getResourceName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static PolyString getResourceName(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static String getSingleStringAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attrName)
public static String getSingleStringAttributeValue(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, QName attrName)
public static String getMultiStringAttributeValueAsSingle(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attrName)
public static <T> List<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, QName attrName)
public static <T> List<T> getAttributeValues(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, QName attrName)
public static <T> T getAttributeValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, QName attrName) throws SchemaException
SchemaException
public static <T> T getAttributeValue(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, QName attrName) throws SchemaException
SchemaException
public static void setPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, ProtectedStringType password)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType getOrCreateActivation(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static void applyResourceSchema(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ResourceSchema resourceSchema) throws SchemaException
SchemaException
public static PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> applyObjectClass(PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadowDefinition, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
SchemaException
public static String getIntent(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType getKind(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static <T> Collection<T> getAttributeValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, QName attributeQname, Class<T> type)
public static QName getAttributeName(ItemPath attributePath, String message) throws SchemaException
SchemaException
public static void checkConsistence(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, String desc)
public static void checkConsistency(PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowAttributesType> attributesDefinition, String desc)
public static boolean isAccount(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static boolean isProtected(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static boolean isDead(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow)
public static boolean matches(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
public static boolean matches(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ResourceShadowDiscriminator discr)
public static boolean matches(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, ResourceShadowDiscriminator discr)
public static String getHumanReadableName(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static String getHumanReadableName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType)
public static boolean isFullShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> PolyString determineShadowName(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow) throws SchemaException
SchemaException
public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> PolyString determineShadowName(PrismObject<T> shadow) throws SchemaException
SchemaException
public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> String determineShadowStringName(PrismObject<T> shadow) throws SchemaException
SchemaException
public static ResourceObjectIdentification getResourceObjectIdentification(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ObjectClassComplexTypeDefinition objectClassDefinition)
public static boolean hasPrimaryIdentifier(Collection<? extends ResourceAttribute<?>> identifiers, ObjectClassComplexTypeDefinition objectClassDefinition)
public static ResourceAttribute<?> fixAttributePath(ResourceAttribute<?> attribute) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.