com.evolveum.midpoint.common.refinery
Class RefinedResourceSchema

java.lang.Object
  extended by com.evolveum.midpoint.prism.schema.PrismSchema
      extended by com.evolveum.midpoint.common.refinery.RefinedResourceSchema
All Implemented Interfaces:
DebugDumpable, Dumpable

public class RefinedResourceSchema
extends PrismSchema
implements Dumpable, DebugDumpable

Author:
semancik

Field Summary
 
Fields inherited from class com.evolveum.midpoint.prism.schema.PrismSchema
definitions, namespace, prismContext
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Method Summary
 RefinedAccountDefinition findAccountDefinitionByObjectClass(QName objectClass)
           
 RefinedAccountDefinition getAccountDefinition(AccountShadowType shadow)
           
 RefinedAccountDefinition getAccountDefinition(String intent)
          if null accountType is provided, default account definition is returned.
 Collection<RefinedAccountDefinition> getAccountDefinitions()
           
 RefinedAccountDefinition getDefaultAccountDefinition()
           
 PrismObjectDefinition<AccountShadowType> getObjectDefinition(AccountShadowType shadow)
           
 PrismObjectDefinition<AccountShadowType> getObjectDefinition(String accountType)
           
 ResourceSchema getOriginalResourceSchema()
           
static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource)
           
static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource, PrismContext prismContext)
           
static RefinedResourceSchema getRefinedSchema(ResourceType resourceType)
           
static RefinedResourceSchema getRefinedSchema(ResourceType resourceType, PrismContext prismContext)
           
static ResourceSchema getResourceSchema(PrismObject<ResourceType> resource, PrismContext prismContext)
           
static ResourceSchema getResourceSchema(ResourceType resourceType, PrismContext prismContext)
           
static boolean hasParsedSchema(ResourceType resourceType)
           
static boolean hasRefinedSchema(ResourceType resourceType)
           
static RefinedResourceSchema parse(PrismObject<ResourceType> resource, PrismContext prismContext)
           
static RefinedResourceSchema parse(ResourceType resourceType, PrismContext prismContext)
           
<T extends ResourceObjectShadowType>
PrismObject<T>
refine(PrismObject<T> shadow)
          Make sure that the specified shadow has definitions pointing to this refined schema.
static void setParsedResourceSchemaConditional(ResourceType resourceType, ResourceSchema parsedSchema)
           
 String toString()
           
 
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
 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump
 

Method Detail

getAccountDefinitions

public Collection<RefinedAccountDefinition> getAccountDefinitions()

getOriginalResourceSchema

public ResourceSchema getOriginalResourceSchema()

getAccountDefinition

public RefinedAccountDefinition getAccountDefinition(AccountShadowType shadow)

getAccountDefinition

public RefinedAccountDefinition getAccountDefinition(String intent)
if null accountType is provided, default account definition is returned.


getDefaultAccountDefinition

public RefinedAccountDefinition getDefaultAccountDefinition()

getObjectDefinition

public PrismObjectDefinition<AccountShadowType> getObjectDefinition(String accountType)

getObjectDefinition

public PrismObjectDefinition<AccountShadowType> getObjectDefinition(AccountShadowType shadow)

findAccountDefinitionByObjectClass

public RefinedAccountDefinition findAccountDefinitionByObjectClass(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 String toString()
Overrides:
toString in class PrismSchema


Copyright © 2013 evolveum. All Rights Reserved.