Class ArchetypeManager
- java.lang.Object
-
- com.evolveum.midpoint.model.common.ArchetypeManager
-
- All Implemented Interfaces:
Cache
@Component public class ArchetypeManager extends Object implements Cache
Component that can efficiently determine archetypes for objects. It is backed by caches, therefore this is supposed to be a low-overhead service that can be used in many places.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description ArchetypeManager()
-
Method Summary
-
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
getArchetype
public PrismObject<ArchetypeType> getArchetype(String oid, OperationResult result) throws ObjectNotFoundException, SchemaException
-
determineArchetypeRef
@Nullable public <O extends AssignmentHolderType> @Nullable ObjectReferenceType determineArchetypeRef(PrismObject<O> assignmentHolder) throws SchemaException
- Throws:
SchemaException
-
determineArchetypeRefs
@NotNull public <O extends AssignmentHolderType> @NotNull List<ObjectReferenceType> determineArchetypeRefs(PrismObject<O> assignmentHolder)
-
determineArchetypes
@NotNull public <O extends AssignmentHolderType> @NotNull List<PrismObject<ArchetypeType>> determineArchetypes(PrismObject<O> assignmentHolder, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
determineArchetypes
@NotNull public <AH extends AssignmentHolderType> @NotNull List<PrismObject<ArchetypeType>> determineArchetypes(PrismObject<AH> assignmentHolder, ObjectDelta<AH> delta, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
determineStructuralArchetype
public <O extends AssignmentHolderType> PrismObject<ArchetypeType> determineStructuralArchetype(PrismObject<O> assignmentHolder, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
determineArchetypePolicy
public <O extends ObjectType> ArchetypePolicyType determineArchetypePolicy(PrismObject<O> object, OperationResult result) throws SchemaException, ConfigurationException
-
determineArchetypePolicy
public <O extends ObjectType> ArchetypePolicyType determineArchetypePolicy(PrismObject<O> object, ObjectDelta<O> delta, OperationResult result) throws SchemaException, ConfigurationException
-
mergeArchetypePolicies
public ArchetypePolicyType mergeArchetypePolicies(PrismObject<ArchetypeType> archetype, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
determineExpressionProfile
public <O extends ObjectType> ExpressionProfile determineExpressionProfile(PrismObject<O> object, OperationResult result) throws SchemaException, ConfigurationException
-
determineObjectPolicyConfiguration
public static <O extends ObjectType> ObjectPolicyConfigurationType determineObjectPolicyConfiguration(Class<O> objectClass, List<String> objectSubtypes, SystemConfigurationType systemConfigurationType) throws ConfigurationException
- Throws:
ConfigurationException
-
determineLifecycleModel
public static <O extends ObjectType> LifecycleStateModelType determineLifecycleModel(PrismObject<O> object, PrismObject<SystemConfigurationType> systemConfiguration) throws ConfigurationException
- Throws:
ConfigurationException
-
determineLifecycleModel
public static <O extends ObjectType> LifecycleStateModelType determineLifecycleModel(PrismObject<O> object, SystemConfigurationType systemConfigurationType) throws ConfigurationException
- Throws:
ConfigurationException
-
invalidate
public void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
- Specified by:
invalidate
in interfaceCache
-
getStateInformation
@NotNull public @NotNull Collection<SingleCacheStateInformationType> getStateInformation()
- Specified by:
getStateInformation
in interfaceCache
-
dumpContent
public void dumpContent()
- Specified by:
dumpContent
in interfaceCache
-
-