com.evolveum.midpoint.common.refinery
Class RefinedResourceSchema
java.lang.Object
com.evolveum.midpoint.prism.schema.PrismSchema
com.evolveum.midpoint.common.refinery.RefinedResourceSchema
- All Implemented Interfaces:
- DebugDumpable, Dumpable
public class RefinedResourceSchema
- extends PrismSchema
- implements Dumpable, DebugDumpable
- Author:
- semancik
Methods inherited from class com.evolveum.midpoint.prism.schema.PrismSchema |
add, createComplexTypeDefinition, createPropertyContainerDefinition, createPropertyContainerDefinition, createPropertyDefinition, createPropertyDefinition, createPropertyDefinition, debugDump, debugDump, dump, findComplexTypeDefinition, findContainerDefinitionByElementName, findContainerDefinitionByType, findItemDefinition, findItemDefinition, findItemDefinitionByType, findObjectDefinitionByCompileTimeClass, findObjectDefinitionByElementName, findObjectDefinitionByType, findObjectDefinitionByType, findPropertyDefinitionByElementName, getDefinitions, getDefinitions, getNamespace, getPrismContext, isEmpty, parse, parse, parse, parse, serializeToXsd, setNamespace, toElementName, toElementQName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.evolveum.midpoint.util.Dumpable |
dump |
getAccountDefinitions
public java.util.Collection<RefinedAccountDefinition> getAccountDefinitions()
getOriginalResourceSchema
public ResourceSchema getOriginalResourceSchema()
getAccountDefinition
public RefinedAccountDefinition getAccountDefinition(AccountShadowType shadow)
getAccountDefinition
public RefinedAccountDefinition getAccountDefinition(java.lang.String intent)
- if null accountType is provided, default account definition is returned.
getDefaultAccountDefinition
public RefinedAccountDefinition getDefaultAccountDefinition()
getObjectDefinition
public PrismObjectDefinition<AccountShadowType> getObjectDefinition(java.lang.String accountType)
getObjectDefinition
public PrismObjectDefinition<AccountShadowType> getObjectDefinition(AccountShadowType shadow)
findAccountDefinitionByObjectClass
public RefinedAccountDefinition findAccountDefinitionByObjectClass(javax.xml.namespace.QName objectClass)
getRefinedSchema
public static RefinedResourceSchema getRefinedSchema(ResourceType resourceType)
throws SchemaException
- Throws:
SchemaException
getRefinedSchema
public static RefinedResourceSchema getRefinedSchema(ResourceType resourceType,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
getRefinedSchema
public static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource)
throws SchemaException
- Throws:
SchemaException
getRefinedSchema
public static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
hasRefinedSchema
public static boolean hasRefinedSchema(ResourceType resourceType)
getResourceSchema
public static ResourceSchema getResourceSchema(ResourceType resourceType,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
getResourceSchema
public static ResourceSchema getResourceSchema(PrismObject<ResourceType> resource,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
setParsedResourceSchemaConditional
public static void setParsedResourceSchemaConditional(ResourceType resourceType,
ResourceSchema parsedSchema)
hasParsedSchema
public static boolean hasParsedSchema(ResourceType resourceType)
parse
public static RefinedResourceSchema parse(PrismObject<ResourceType> resource,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
parse
public static RefinedResourceSchema parse(ResourceType resourceType,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
refine
public <T extends ResourceObjectShadowType> PrismObject<T> refine(PrismObject<T> shadow)
throws SchemaException
- Make sure that the specified shadow has definitions pointing to this refined schema.
- Throws:
SchemaException
toString
public java.lang.String toString()
- Overrides:
toString
in class PrismSchema
Copyright © 2012 evolveum. All Rights Reserved.