public class ShadowUtil extends Object
Constructor and Description |
---|
ShadowUtil() |
public static Collection<ResourceAttribute<?>> getPrimaryIdentifiers(ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getPrimaryIdentifiers(PrismObject<? extends ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(PrismObject<? extends ShadowType> shadow)
public static ResourceAttribute<String> getSecondaryIdentifier(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(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(PrismObject<? extends ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getAllIdentifiers(ShadowType shadow)
public static ResourceAttribute<String> getNamingAttribute(ShadowType shadow)
public static ResourceAttribute<String> getNamingAttribute(PrismObject<? extends ShadowType> shadow)
public static Collection<ResourceAttribute<?>> getAttributes(ShadowType shadowType)
public static Collection<ResourceAttribute<?>> getAttributes(PrismObject<? extends ShadowType> shadow)
public static <T> ResourceAttribute<T> getAttribute(PrismObject<? extends ShadowType> shadow, QName attrName)
public static ResourceAttributeContainer getAttributesContainer(ShadowType shadowType)
public static ResourceAttributeContainer getAttributesContainer(PrismObject<? extends ShadowType> shadow)
public static ResourceAttributeContainer getAttributesContainer(PrismObject<? extends ShadowType> shadow, QName containerName)
public static ResourceAttributeContainer getAttributesContainer(PrismContainerValue<?> cval, QName containerName)
public static ResourceAttributeContainer getOrCreateAttributesContainer(PrismObject<? extends ShadowType> shadow, ObjectClassComplexTypeDefinition objectClassDefinition)
public static ObjectClassComplexTypeDefinition getObjectClassDefinition(ShadowType shadow)
public static ObjectClassComplexTypeDefinition getObjectClassDefinition(PrismObject<? extends ShadowType> shadow)
public static String getResourceOid(ShadowType shadowType)
public static String getResourceOid(PrismObject<ShadowType> shadow)
public static PolyString getResourceName(ShadowType shadowType)
public static PolyString getResourceName(PrismObject<ShadowType> shadow)
public static String getSingleStringAttributeValue(ShadowType shadow, QName attrName)
public static String getSingleStringAttributeValue(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(PrismObject<? extends ShadowType> shadow, QName attrName)
public static <T> T getAttributeValue(ShadowType shadowType, QName attrName) throws SchemaException
SchemaException
public static <T> T getAttributeValue(PrismObject<? extends ShadowType> shadow, QName attrName) throws SchemaException
SchemaException
public static void setPassword(ShadowType shadowType, ProtectedStringType password)
public static void setPasswordIncomplete(ShadowType shadowType) throws SchemaException
SchemaException
public static ActivationType getOrCreateActivation(ShadowType shadowType)
public static void applyResourceSchema(PrismObject<? extends ShadowType> shadow, ResourceSchema resourceSchema) throws SchemaException
SchemaException
public static PrismObjectDefinition<ShadowType> applyObjectClass(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 ItemName getAttributeName(ItemPath attributePath, String message) throws SchemaException
SchemaException
public static void checkConsistence(PrismObject<? extends ShadowType> shadow, String desc)
public static void checkConsistency(PrismContainerDefinition<ShadowAttributesType> attributesDefinition, String desc)
public static boolean isAccount(ShadowType shadowType)
public static boolean isProtected(PrismObject<? extends ShadowType> shadow)
public static boolean isDead(ShadowType shadow)
public static boolean isDead(PrismObject<ShadowType> shadow)
public static boolean isExists(ShadowType shadow)
public static boolean isExists(PrismObject<ShadowType> shadow)
public static boolean matches(ShadowType shadowType, String resourceOid, ShadowKindType kind, String intent)
public static boolean matches(PrismObject<ShadowType> shadow, ResourceShadowDiscriminator discr)
public static boolean matches(ShadowType shadowType, ResourceShadowDiscriminator discr)
public static boolean matchesPattern(ShadowType shadowType, ShadowDiscriminatorType discr)
public static boolean isConflicting(ShadowType shadow1, ShadowType shadow2)
public static String getHumanReadableName(PrismObject<? extends ShadowType> shadow)
public static String getHumanReadableName(ShadowType shadowType)
public static boolean isFullShadow(PrismObject<ShadowType> shadow)
public static <T extends ShadowType> PolyString determineShadowName(ShadowType shadow) throws SchemaException
SchemaException
public static <T extends ShadowType> PolyString determineShadowName(PrismObject<T> shadow) throws SchemaException
SchemaException
public static <T extends ShadowType> String determineShadowStringName(PrismObject<T> shadow) throws SchemaException
SchemaException
public static ResourceObjectIdentification getResourceObjectIdentification(PrismObject<ShadowType> shadow, ObjectClassComplexTypeDefinition objectClassDefinition)
public static boolean hasPrimaryIdentifier(Collection<? extends ResourceAttribute<?>> identifiers, ObjectClassComplexTypeDefinition objectClassDefinition)
public static boolean hasSecondaryIdentifier(Collection<? extends ResourceAttribute<?>> identifiers, ObjectClassComplexTypeDefinition objectClassDefinition)
public static ResourceAttribute<?> fixAttributePath(ResourceAttribute<?> attribute) throws SchemaException
SchemaException
public static void validateAttributeSchema(PrismObject<ShadowType> shadow, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException
SchemaException
public static ProtectedStringType getPasswordValue(ShadowType shadowType)
public static String shortDumpShadow(PrismObject<ShadowType> shadow)
Copyright © 2021 Evolveum. All rights reserved.