com.evolveum.midpoint.schema.util
Class ResourceObjectShadowUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ResourceObjectShadowUtil
public class ResourceObjectShadowUtil
- extends Object
Methods that would belong to the ResourceObjectShadowType class but cannot go there
because of JAXB.
- Author:
- Radovan Semancik
Method Summary |
static void |
applyResourceSchema(PrismObject<? extends ResourceObjectShadowType> shadow,
ResourceSchema resourceSchema)
This is not supposed to be used in production code! It is just for the tests. |
static void |
checkConsistence(PrismObject<? extends ResourceObjectShadowType> shadow,
String desc)
|
static void |
checkConsistency(PrismContainerDefinition<ResourceObjectShadowAttributesType> attributesDefinition,
String desc)
|
static Collection<ResourceAttribute<?>> |
getAttributes(PrismObject<? extends ResourceObjectShadowType> shadow)
|
static Collection<ResourceAttribute<?>> |
getAttributes(ResourceObjectShadowType shadowType)
|
static ResourceAttributeContainer |
getAttributesContainer(PrismObject<? extends ResourceObjectShadowType> shadow)
|
static ResourceAttributeContainer |
getAttributesContainer(ResourceObjectShadowType shadowType)
|
static
|
getAttributeValues(PrismObject<? extends ResourceObjectShadowType> shadow,
QName attrName)
|
static
|
getAttributeValues(ResourceObjectShadowType shadowType,
QName attrName)
|
static
|
getAttributeValues(ResourceObjectShadowType shadow,
QName attributeQname,
Class<T> type)
|
static Collection<ResourceAttribute<?>> |
getIdentifiers(PrismObject<? extends ResourceObjectShadowType> shadow)
|
static Collection<ResourceAttribute<?>> |
getIdentifiers(ResourceObjectShadowType shadowType)
|
static String |
getIntent(ResourceObjectShadowType shadow)
Returns intent from the shadow. |
static String |
getMultiStringAttributeValueAsSingle(ResourceObjectShadowType shadow,
QName attrName)
|
static ResourceAttributeContainerDefinition |
getObjectClassDefinition(ResourceObjectShadowType shadow)
|
static ActivationType |
getOrCreateActivation(ResourceObjectShadowType shadowType)
|
static ResourceAttributeContainer |
getOrCreateAttributesContainer(PrismObject<? extends ResourceObjectShadowType> shadow,
ObjectClassComplexTypeDefinition objectClassDefinition)
|
static String |
getResourceOid(ResourceObjectShadowType shadowType)
|
static Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers(PrismObject<? extends ResourceObjectShadowType> shadow)
|
static Collection<ResourceAttribute<?>> |
getSecondaryIdentifiers(ResourceObjectShadowType shadowType)
|
static String |
getSingleStringAttributeValue(ResourceObjectShadowType shadow,
QName attrName)
|
static void |
setPassword(AccountShadowType accountShadowType,
ProtectedStringType password)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceObjectShadowUtil
public ResourceObjectShadowUtil()
getIdentifiers
public static Collection<ResourceAttribute<?>> getIdentifiers(ResourceObjectShadowType shadowType)
getIdentifiers
public static Collection<ResourceAttribute<?>> getIdentifiers(PrismObject<? extends ResourceObjectShadowType> shadow)
getSecondaryIdentifiers
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(ResourceObjectShadowType shadowType)
getSecondaryIdentifiers
public static Collection<ResourceAttribute<?>> getSecondaryIdentifiers(PrismObject<? extends ResourceObjectShadowType> shadow)
getAttributes
public static Collection<ResourceAttribute<?>> getAttributes(ResourceObjectShadowType shadowType)
getAttributes
public static Collection<ResourceAttribute<?>> getAttributes(PrismObject<? extends ResourceObjectShadowType> shadow)
getAttributesContainer
public static ResourceAttributeContainer getAttributesContainer(ResourceObjectShadowType shadowType)
getAttributesContainer
public static ResourceAttributeContainer getAttributesContainer(PrismObject<? extends ResourceObjectShadowType> shadow)
getOrCreateAttributesContainer
public static ResourceAttributeContainer getOrCreateAttributesContainer(PrismObject<? extends ResourceObjectShadowType> shadow,
ObjectClassComplexTypeDefinition objectClassDefinition)
getObjectClassDefinition
public static ResourceAttributeContainerDefinition getObjectClassDefinition(ResourceObjectShadowType shadow)
getResourceOid
public static String getResourceOid(ResourceObjectShadowType shadowType)
getSingleStringAttributeValue
public static String getSingleStringAttributeValue(ResourceObjectShadowType shadow,
QName attrName)
getMultiStringAttributeValueAsSingle
public static String getMultiStringAttributeValueAsSingle(ResourceObjectShadowType shadow,
QName attrName)
getAttributeValues
public static <T> List<T> getAttributeValues(ResourceObjectShadowType shadowType,
QName attrName)
getAttributeValues
public static <T> List<T> getAttributeValues(PrismObject<? extends ResourceObjectShadowType> shadow,
QName attrName)
setPassword
public static void setPassword(AccountShadowType accountShadowType,
ProtectedStringType password)
getOrCreateActivation
public static ActivationType getOrCreateActivation(ResourceObjectShadowType shadowType)
applyResourceSchema
public static void applyResourceSchema(PrismObject<? extends ResourceObjectShadowType> shadow,
ResourceSchema resourceSchema)
throws SchemaException
- This is not supposed to be used in production code! It is just for the tests.
- Throws:
SchemaException
getIntent
public static String getIntent(ResourceObjectShadowType shadow)
- Returns intent from the shadow. Backwards compatible with older accountType. May also adjust for default
intent if necessary.
getAttributeValues
public static <T> Collection<T> getAttributeValues(ResourceObjectShadowType shadow,
QName attributeQname,
Class<T> type)
checkConsistence
public static void checkConsistence(PrismObject<? extends ResourceObjectShadowType> shadow,
String desc)
checkConsistency
public static void checkConsistency(PrismContainerDefinition<ResourceObjectShadowAttributesType> attributesDefinition,
String desc)
Copyright © 2013 evolveum. All Rights Reserved.