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