Class LinkManager
java.lang.Object
com.evolveum.midpoint.model.common.LinkManager
Manages link definitions.
Current implementation is very limited as it deals only with locally-defined links in an archetype.
Future extensions:
- consider links defined in object policy configuration (in system configuration)
- consider links globally e.g. target link A->B defined in archetype A is visible as source link in archetype B
- define global links also in system configuration
- allow restriction also for defining object (i.e. not only 'the other side') using object selectors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSourceLinkTypeDefinition
(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) @NotNull LinkTypeDefinitionType
getSourceLinkTypeDefinitionRequired
(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) getTargetLinkTypeDefinition
(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) @NotNull LinkTypeDefinitionType
getTargetLinkTypeDefinitionRequired
(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result)
-
Constructor Details
-
LinkManager
public LinkManager()
-
-
Method Details
-
getSourceLinkTypeDefinitionRequired
@NotNull public @NotNull LinkTypeDefinitionType getSourceLinkTypeDefinitionRequired(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) throws SchemaException, ConfigurationException -
getSourceLinkTypeDefinition
public LinkTypeDefinitionType getSourceLinkTypeDefinition(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) throws SchemaException, ConfigurationException -
getTargetLinkTypeDefinitionRequired
@NotNull public @NotNull LinkTypeDefinitionType getTargetLinkTypeDefinitionRequired(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) throws SchemaException, ConfigurationException -
getTargetLinkTypeDefinition
public LinkTypeDefinitionType getTargetLinkTypeDefinition(String linkTypeName, List<PrismObject<? extends ObjectType>> objectVariants, OperationResult result) throws SchemaException, ConfigurationException
-