Class MidpointFunctionsImpl
- All Implemented Interfaces:
MidpointFunctions
- Author:
- semancik
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.api.expr.MidpointFunctions
MidpointFunctions.TriggerCustomizer -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ObjectType>
StringaddObject(PrismObject<T> newObject) <T extends ObjectType>
StringaddObject(PrismObject<T> newObject, ModelExecuteOptions options) <T extends ObjectType>
StringaddObject(T newObject) <T extends ObjectType>
StringaddObject(T newObject, ModelExecuteOptions options) <O extends ObjectType>
voidaddRecomputeTrigger(PrismObject<O> object, Long timestamp, MidpointFunctions.TriggerCustomizer triggerCustomizer) <O extends ObjectType>
voidapplyDefinition(O object) @NotNull Collection<PrismValue>collectAssignedFocusMappingsResults(@NotNull ItemPath path) Returns all non-negative values from all focus mappings (targeted to given path) from all non-negative evaluated assignments.collectExtensions(AssignmentPathType path, int startAt) <F extends FocusType>
ShadowPurposeTypecomputeDefaultProjectionPurpose(F focus, ShadowType shadow, ResourceType resource) Default function used to compute projection purpose.<T> IntegercountAccounts(ResourceType resourceType, String attributeName, T attributeValue) A variant ofMidpointFunctions.countAccounts(String, QName, Object).<T> IntegercountAccounts(ResourceType resourceType, QName attributeName, T attributeValue) A variant ofMidpointFunctions.countAccounts(String, QName, Object).<T> IntegercountAccounts(String resourceOid, QName attributeName, T attributeValue) Counts accounts having `attributeValue` of `attributeName`.<T extends ObjectType>
intcountObjects(Class<T> type, ObjectQuery query) Count objects.<T extends ObjectType>
intcountObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) Count objects.createAccountActivationLink(UserType userType) <T extends ObjectType>
TcreateEmptyObject(Class<T> type) Creates empty prism object of specified type in memory.<T extends ObjectType>
TcreateEmptyObjectWithName(Class<T> type, PolyString name) Creates empty prism object of specified type and with specified name in memory.<T extends ObjectType>
TcreateEmptyObjectWithName(Class<T> type, PolyStringType name) Creates empty prism object of specified type and with specified name in memory.<T extends ObjectType>
TcreateEmptyObjectWithName(Class<T> type, String name) Creates empty prism object of specified type and with specified name in memory.createInvitationLink(UserType user) <T extends AssignmentHolderType>
TcreateLinkedSource(String linkType) createPasswordResetLink(UserType userType) voidcreateRecomputeTrigger(Class<? extends ObjectType> type, String oid) Goes directly to repository service.createRegistrationConfirmationLink(UserType userType) @Nullable StringcreateWorkItemCompletionLink(@NotNull WorkItemId workItemId) Returns a link where given work item can be completed.<T extends ObjectType>
voiddeleteObject(Class<T> type, String oid) <T extends ObjectType>
voiddeleteObject(Class<T> type, String oid, ModelExecuteOptions options) <C extends Containerable>
S_ItemEntryReturns longer version of human-readable description of the resource object set: .Short version ofMidpointFunctions.describeResourceObjectSetLong(ResourceObjectSetType): .executeAdHocProvisioningScript(ResourceType resource, String language, String code) executeAdHocProvisioningScript(String resourceOid, String language, String code) final voidexecuteChanges(ObjectDelta<? extends ObjectType>... deltas) Execute the provided object deltas.voidexecuteChanges(Collection<ObjectDelta<? extends ObjectType>> deltas) Execute the provided object deltas.voidexecuteChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options) Execute the provided object deltas.executeChangesAsynchronously(Collection<ObjectDelta<?>> deltas, ModelExecuteOptions options, String templateTaskOid) executeChangesAsynchronously(Collection<ObjectDelta<?>> deltas, ModelExecuteOptions options, String templateTaskOid, Task opTask, OperationResult result) booleanextensionOptionIsNotFalse(String localName) booleanextensionOptionIsTrue(String localName) findCandidateOwners(@NotNull Class<F> focusType, @NotNull ShadowType shadow, @NotNull String resourceOid, @NotNull ShadowKindType kind, @NotNull String intent) Finds candidate owners using defined correlation rules.<T extends AssignmentHolderType>
TfindLinkedSource(Class<T> type) <T extends AssignmentHolderType>
TfindLinkedSource(String linkType) <T extends AssignmentHolderType>
List<T>findLinkedSources(Class<T> type) <T extends AssignmentHolderType>
List<T>findLinkedSources(String linkTypeName) <T extends AssignmentHolderType>
TfindLinkedTarget(Class<T> type, String archetypeOid) <T extends AssignmentHolderType>
TfindLinkedTarget(String linkTypeName) <T extends AssignmentHolderType>
@NotNull List<T>findLinkedTargets(Class<T> type, String archetypeOid) <T extends AssignmentHolderType>
@NotNull List<T>findLinkedTargets(String linkTypeName) <O extends ObjectType>
ArchetypeTypegetArchetype(O object) Deprecated.<O extends ObjectType>
StringgetArchetypeOid(O object) Deprecated.getArchetypeOids(ObjectType object) Returns a list of archetype OIDs for given object.<O extends ObjectType>
@NotNull List<ArchetypeType>getArchetypes(O object) <T> @NotNull ResourceAttributeDefinition<T>getAttributeDefinition(PrismObject<ResourceType> resource, String objectClassName, String attributeName) <T> @NotNull ResourceAttributeDefinition<T>getAttributeDefinition(PrismObject<ResourceType> resource, QName objectClassName, QName attributeName) getBooleanExtensionOption(String localName) @Nullable CaseTypegetCorrelationCaseForShadow(@Nullable ShadowType shadow) Returns a correlation case for given shadow.getCurrentResult(String operationName) @NotNull TaskJust a convenience method to allow writing `midpoint.evaluateNew` even after Groovy upgrade in 4.8.getExtensionOptionRealValue(String localName) <T> TgetExtensionOptionRealValue(String localName, Class<T> type) <F extends ObjectType>
ModelElementContext<F>@Nullable ObjectReferenceTypegetLinkedShadow(FocusType focus, String resourceOid, ShadowKindType kind, String intent, boolean repositoryObjectOnly) Null values of resource oid, kind, and intent mean "any".@NotNull List<ShadowType>getLinkedShadows(FocusType focus, String resourceOid, boolean repositoryObjectOnly) getManagers(UserType user) getManagers(UserType user, String orgType, boolean allowSelf) getManagersByOrgType(UserType user, String orgType) getManagersOfOrg(String orgOid) getManagersOids(UserType user) getManagersOidsExceptUser(@NotNull Collection<ObjectReferenceType> userRefList) <V extends PrismValue,D extends ItemDefinition<?>>
Mapping<V,D> getMembers(String orgOid) getMembersAsReferences(String orgOid) Item<?,?> <F extends ObjectType>
ModelContext<F><T extends ObjectType>
TReturns object for provided OID.<T extends ObjectType>
TgetObject(Class<T> type, String oid, Collection<SelectorOptions<GetOperationOptions>> options) Returns object for provided OID.<O extends ObjectType,T>
List<O>getObjectsInConflictOnPropertyValue(O object, String propertyPathString, T propertyValue, boolean getAllConflicting) @NotNull OptimizingTriggerCreatorgetOptimizingTriggerCreator(long fireAfter, long safetyMargin) getOrgByName(String name) getOrgByOid(String oid) getOrgUnits(UserType user) getOrgUnits(UserType user, QName relation) getParentOrgByArchetype(ObjectType object, String archetypeOid) Returns parent org of the specified object that have a specific archetype.getParentOrgByOrgType(ObjectType object, String orgType) Returns parent org of the specified object that have a specific orgType.getParentOrgs(ObjectType object) Returns all parent orgs of the specified object.getParentOrgs(ObjectType object, String relation, String orgType) Returns parent orgs of the specified object that have a specific relation and orgType.getParentOrgs(ObjectType object, QName relation, String orgType) Returns parent orgs of the specified object that have a specific relation and orgType.getParentOrgsByRelation(ObjectType object, String relation) Returns parent orgs of the specified object that have a specific relation.getParentOrgsByRelation(ObjectType object, QName relation) Returns parent orgs of the specified object that have a specific relation.getPlaintext(ProtectedStringType protectedStringType) getPlaintextAccountPassword(ShadowType account) getPlaintextAccountPasswordFromDelta(ObjectDelta<? extends ShadowType> delta) getPlaintextUserPasswordFromDeltas(List<ObjectDelta<? extends FocusType>> objectDeltas) Returns principal representing the user whose identity is used to execute the expression.Returns OID of the current principal.getResourceDelta(ModelContext<?> context, String resourceOid) Returns aggregated delta that is to be executed on a given resource.longgetSequenceCounter(String sequenceOid) Uses repository service directly, bypassing authorization checking.getShadowsToActivate(Collection<? extends ModelProjectionContext> projectionContexts) Used for account activation notifier to collect all shadows which are going to be activated.<O extends AssignmentHolderType>
@Nullable ArchetypeTypegetStructuralArchetype(O object) Returns the structural archetype for the object, possibly `null`.getUserByOid(String oid) Uses repository service directly, bypassing authorization checking.booleanhasActiveAssignmentTargetSubtype(String roleSubtype) <F extends ObjectType>
booleanhasLinkedAccount(String resourceOid) booleanReturns `true` if the current clockwork operation brings the projection into existence and being effectively enabled, i.e.booleanReturns `true` if the current clockwork operation causes the current projection to have `administrativeState` switched to a disabled value (e.g.booleanReturns `true` if the current clockwork operation causes the current projection to have `administrativeState` switched toActivationStatusType.ENABLED.booleanReturns `true` if the current clockwork operation deletes the projection or effectively disables it, i.e.booleanisDirectlyAssigned(ObjectType target) <F extends FocusType>
booleanisDirectlyAssigned(F focusType, ObjectType target) <F extends FocusType>
booleanisDirectlyAssigned(F focus, String targetOid) Returns `true` if `focus` has a `assignment` with `targetRef.OID` being equal to `targetOid`.booleanisDirectlyAssigned(String targetOid) Returns indication whether a script code is evaluating a new value.booleanDoes the current clockwork operation bring the focus into existence and being effectively enabled? (So, previously it was either non-existent or effectively disabled.)booleanDoes the current clockwork operation delete or effectively disable the focus? (So, previously it existed and was effectively enabled.)booleanbooleanReturns true if user is a manager of any organizational unit.booleanisManagerOf(UserType user, String orgOid) Returns true if user is a manager of specified organizational unit.booleanisManagerOfOrgType(UserType user, String orgType) booleanisMemberOf(UserType user, String orgOid) boolean<T> booleanisUniqueAccountValue(ResourceType resource, ShadowType shadow, String attributeName, T attributeValue) Checks if the value `attributeValue` of `attributeName` in given shadow is unique on given resource.<T> booleanisUniquePropertyValue(ObjectType objectType, String propertyPathString, T propertyValue) <T extends ObjectType>
voidmodifyObject(ObjectDelta<T> modifyDelta) <T extends ObjectType>
voidmodifyObject(ObjectDelta<T> modifyDelta, ModelExecuteOptions options) parseXmlToMap(String xml) Returns a map from the translated xml attribute - value pairs.<T> PreparedQuery<T>preparedQueryFor(Class<T> type, String query) <F extends ObjectType>
ModelContext<F>previewChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options) <F extends ObjectType>
ModelContext<F>previewChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options, OperationResult result) <T> TypedQuery<T><F extends FocusType>
voidRecomputes focal object with the specified OID.resolveEntitlement(ShadowAssociationType shadowAssociationType) <T extends ObjectType>
TresolveReference(ObjectReferenceType reference) <T extends ObjectType>
TresolveReferenceIfExists(ObjectReferenceType reference) <T extends ObjectType>
TsearchObjectByName(Class<T> type, PolyString name) Search for objects by name.<T extends ObjectType>
TsearchObjectByName(Class<T> type, PolyStringType name) Search for objects by name.<T extends ObjectType>
TsearchObjectByName(Class<T> type, String name) Search for objects by name.<T extends ObjectType>
List<T>searchObjects(TypedQuery<T> query) <T extends ObjectType>
List<T>searchObjects(Class<T> type, ObjectQuery query) Search for objects.<T extends ObjectType>
List<T>searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) Search for objects.<T extends ObjectType>
voidsearchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler) Search for objects in iterative fashion (using callback).<T extends ObjectType>
voidsearchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options) Search for objects in iterative fashion (using callback).<F extends FocusType>
PrismObject<F>searchShadowOwner(String accountOid) selectIdentityItemValues(@Nullable Collection<FocusIdentityType> identities, @Nullable FocusIdentitySourceType source, @NotNull ItemPath itemPath) Selects specified values from all relevant identity data.@NotNull StringsubmitTaskFromTemplate(@NotNull String templateOid, @NotNull ActivityCustomization customization) Submits a task from template (pointed to by `templateOid`), customizing it according to givenActivityCustomization.submitTaskFromTemplate(String templateTaskOid, List<Item<?, ?>> extensionItems) Deprecated.submitTaskFromTemplate(String templateTaskOid, Map<QName, Object> extensionValues) Deprecated.testResource(String resourceOid) Test the resource connection and basic resource connector functionality.translate(LocalizableMessage message) translate(LocalizableMessage message, boolean useDefaultLocale) Translates message parameter.translate(LocalizableMessageType message) translate(LocalizableMessageType message, boolean useDefaultLocale) Translates message parameter.ModelContext<?>unwrapModelContext(LensContextType lensContextType) wrap(AsyncUpdateMessageType message) wrapModelContext(ModelContext<?> lensContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.model.api.expr.MidpointFunctions
addRecomputeTrigger, addRecomputeTrigger, addRecomputeTrigger, describeResourceObjectSet, getFocusesByCorrelationRule, getLinkedShadow, getLinkedShadow, getLinkedShadow, getLinkedShadow, getLinkedShadow, getLinkedShadows, hasArchetype, isEffectivelyEnabled
-
Field Details
-
CLASS_DOT
-
-
Constructor Details
-
MidpointFunctionsImpl
public MidpointFunctionsImpl()
-
-
Method Details
-
hello
-
getPrismContext
- Specified by:
getPrismContextin interfaceMidpointFunctions
-
getRelationRegistry
- Specified by:
getRelationRegistryin interfaceMidpointFunctions
-
toList
- Specified by:
toListin interfaceMidpointFunctions
-
getUserByOid
Description copied from interface:MidpointFunctionsUses repository service directly, bypassing authorization checking.- Specified by:
getUserByOidin interfaceMidpointFunctions- Throws:
ObjectNotFoundExceptionSchemaException
-
isMemberOf
- Specified by:
isMemberOfin interfaceMidpointFunctions
-
getPlaintextUserPassword
- Specified by:
getPlaintextUserPasswordin interfaceMidpointFunctions- Throws:
EncryptionException
-
getPlaintextAccountPassword
- Specified by:
getPlaintextAccountPasswordin interfaceMidpointFunctions- Throws:
EncryptionException
-
getPlaintextAccountPasswordFromDelta
public String getPlaintextAccountPasswordFromDelta(ObjectDelta<? extends ShadowType> delta) throws EncryptionException - Specified by:
getPlaintextAccountPasswordFromDeltain interfaceMidpointFunctions- Throws:
EncryptionException
-
getPlaintextUserPasswordFromDeltas
public String getPlaintextUserPasswordFromDeltas(List<ObjectDelta<? extends FocusType>> objectDeltas) throws EncryptionException - Specified by:
getPlaintextUserPasswordFromDeltasin interfaceMidpointFunctions- Throws:
EncryptionException
-
hasLinkedAccount
- Specified by:
hasLinkedAccountin interfaceMidpointFunctions
-
isCurrentProjectionBeingEnabled
public boolean isCurrentProjectionBeingEnabled()Description copied from interface:MidpointFunctionsReturns `true` if the current clockwork operation causes the current projection to have `administrativeState` switched toActivationStatusType.ENABLED. Not always precise - the original value may not be known.- Specified by:
isCurrentProjectionBeingEnabledin interfaceMidpointFunctions
-
isCurrentProjectionBeingDisabled
public boolean isCurrentProjectionBeingDisabled()Description copied from interface:MidpointFunctionsReturns `true` if the current clockwork operation causes the current projection to have `administrativeState` switched to a disabled value (e.g.ActivationStatusType.DISABLEDorActivationStatusType.ARCHIVED). Not always precise - the original value may not be known. TODO what about deleting projections?- Specified by:
isCurrentProjectionBeingDisabledin interfaceMidpointFunctions
-
isCurrentProjectionActivated
public boolean isCurrentProjectionActivated() throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundExceptionDescription copied from interface:MidpointFunctionsReturns `true` if the current clockwork operation brings the projection into existence and being effectively enabled, i.e. with `administrativeState` set to `null` orActivationStatusType.ENABLED. (So, previously the projection was either non-existent or effectively disabled.) Loads the full shadow if necessary. -
isCurrentProjectionDeactivated
public boolean isCurrentProjectionDeactivated() throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundExceptionDescription copied from interface:MidpointFunctionsReturns `true` if the current clockwork operation deletes the projection or effectively disables it, i.e. sets `administrativeState`ActivationStatusType.DISABLEDorActivationStatusType.ARCHIVED. (So, previously the projection existed and was effectively enabled.) Loads the full shadow if necessary. -
isFocusActivated
public boolean isFocusActivated()Description copied from interface:MidpointFunctionsDoes the current clockwork operation bring the focus into existence and being effectively enabled? (So, previously it was either non-existent or effectively disabled.)- Specified by:
isFocusActivatedin interfaceMidpointFunctions
-
isFocusDeactivated
public boolean isFocusDeactivated()Description copied from interface:MidpointFunctionsDoes the current clockwork operation delete or effectively disable the focus? (So, previously it existed and was effectively enabled.)- Specified by:
isFocusDeactivatedin interfaceMidpointFunctions
-
isDirectlyAssigned
Description copied from interface:MidpointFunctionsReturns `true` if `focus` has a `assignment` with `targetRef.OID` being equal to `targetOid`. No other conditions are checked (e.g. validity, assignment condition, lifecycle states, and so on).- Specified by:
isDirectlyAssignedin interfaceMidpointFunctions
-
isDirectlyAssigned
- Specified by:
isDirectlyAssignedin interfaceMidpointFunctions
-
isDirectlyAssigned
- Specified by:
isDirectlyAssignedin interfaceMidpointFunctions
-
isDirectlyAssigned
- Specified by:
isDirectlyAssignedin interfaceMidpointFunctions
-
hasActiveAssignmentTargetSubtype
-
getLinkedShadows
@NotNull public @NotNull List<ShadowType> getLinkedShadows(FocusType focus, String resourceOid, boolean repositoryObjectOnly) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException - Specified by:
getLinkedShadowsin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-
getLinkedShadow
public ShadowType getLinkedShadow(FocusType focus, String resourceOid, ShadowKindType kind, String intent, boolean repositoryObjectOnly) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsNull values of resource oid, kind, and intent mean "any".- Specified by:
getLinkedShadowin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-
isFullShadow
public boolean isFullShadow()- Specified by:
isFullShadowin interfaceMidpointFunctions
-
isProjectionExists
public boolean isProjectionExists()- Specified by:
isProjectionExistsin interfaceMidpointFunctions
-
countAccounts
public <T> Integer countAccounts(String resourceOid, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsCounts accounts having `attributeValue` of `attributeName`. Note that this method uses the default definition ofShadowKindType.ACCOUNTobjects, if present.- Specified by:
countAccountsin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
countAccounts
public <T> Integer countAccounts(ResourceType resourceType, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsA variant ofMidpointFunctions.countAccounts(String, QName, Object).- Specified by:
countAccountsin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
countAccounts
public <T> Integer countAccounts(ResourceType resourceType, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsA variant ofMidpointFunctions.countAccounts(String, QName, Object). Attribute name is assumed to be in the `ri:` namespace.- Specified by:
countAccountsin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
isUniquePropertyValue
public <T> boolean isUniquePropertyValue(ObjectType objectType, String propertyPathString, T propertyValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException -
getObjectsInConflictOnPropertyValue
public <O extends ObjectType,T> List<O> getObjectsInConflictOnPropertyValue(O object, String propertyPathString, T propertyValue, boolean getAllConflicting) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException -
isUniqueAccountValue
public <T> boolean isUniqueAccountValue(ResourceType resource, ShadowType shadow, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsChecks if the value `attributeValue` of `attributeName` in given shadow is unique on given resource. A search on resource is invoked, and any occurrences (except the one in `shadowType`) are reported as violations. Notes: 1. `shadowType` should have an OID; 2. when constructing the query, the default `account` definition is used to provide attribute definitions. -
getModelContext
- Specified by:
getModelContextin interfaceMidpointFunctions
-
getFocusContext
- Specified by:
getFocusContextin interfaceMidpointFunctions
-
getProjectionContext
- Specified by:
getProjectionContextin interfaceMidpointFunctions
-
getMapping
- Specified by:
getMappingin interfaceMidpointFunctions
-
getCurrentTask
- Specified by:
getCurrentTaskin interfaceMidpointFunctions
-
getCurrentTaskRequired
-
getCurrentResult
- Specified by:
getCurrentResultin interfaceMidpointFunctions
-
getCurrentResult
- Specified by:
getCurrentResultin interfaceMidpointFunctions
-
unwrapModelContext
public ModelContext<?> unwrapModelContext(LensContextType lensContextType) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, ExpressionEvaluationException - Specified by:
unwrapModelContextin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-
wrapModelContext
- Specified by:
wrapModelContextin interfaceMidpointFunctions- Throws:
SchemaException
-
createEmptyObject
Description copied from interface:MidpointFunctionsCreates empty prism object of specified type in memory. This is used to construct Java instances of object before they are added to the repository.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
- Specified by:
createEmptyObjectin interfaceMidpointFunctions- Parameters:
type- Class of the object to create- Returns:
- empty object in memory
- Throws:
SchemaException- schema error instantiating the object (e.g. attempt to instantiate abstract type).
-
createEmptyObjectWithName
public <T extends ObjectType> T createEmptyObjectWithName(Class<T> type, String name) throws SchemaException Description copied from interface:MidpointFunctionsCreates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
- Specified by:
createEmptyObjectWithNamein interfaceMidpointFunctions- Parameters:
type- Class of the object to createname- Name of the object- Returns:
- empty object in memory
- Throws:
SchemaException- schema error instantiating the object (e.g. attempt to instantiate abstract type).
-
createEmptyObjectWithName
public <T extends ObjectType> T createEmptyObjectWithName(Class<T> type, PolyString name) throws SchemaException Description copied from interface:MidpointFunctionsCreates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
- Specified by:
createEmptyObjectWithNamein interfaceMidpointFunctions- Parameters:
type- Class of the object to createname- Name of the object- Returns:
- empty object in memory
- Throws:
SchemaException- schema error instantiating the object (e.g. attempt to instantiate abstract type).
-
createEmptyObjectWithName
public <T extends ObjectType> T createEmptyObjectWithName(Class<T> type, PolyStringType name) throws SchemaException Description copied from interface:MidpointFunctionsCreates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
- Specified by:
createEmptyObjectWithNamein interfaceMidpointFunctions- Parameters:
type- Class of the object to createname- Name of the object- Returns:
- empty object in memory
- Throws:
SchemaException- schema error instantiating the object (e.g. attempt to instantiate abstract type).
-
resolveReference
public <T extends ObjectType> T resolveReference(ObjectReferenceType reference) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException -
resolveReferenceIfExists
public <T extends ObjectType> T resolveReferenceIfExists(ObjectReferenceType reference) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException - Specified by:
resolveReferenceIfExistsin interfaceMidpointFunctions- Throws:
SchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
getObject
public <T extends ObjectType> T getObject(Class<T> type, String oid, Collection<SelectorOptions<GetOperationOptions>> options) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsReturns object for provided OID. It retrieves the object from an appropriate source for an object type (e.g. internal repository, resource or both), merging data as necessary, processing any policies, caching mechanisms, etc. This can be influenced by using options.
Fails if object with the OID does not exist.
- Specified by:
getObjectin interfaceMidpointFunctions- Parameters:
type- (class) of an object to getoid- OID of the object to getoptions- options influencing the retrieval and processing of the object- Returns:
- Retrieved object
- Throws:
ObjectNotFoundException- requested object does not existSchemaException- the object is not schema compliantCommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ExpressionEvaluationException
-
getObject
public <T extends ObjectType> T getObject(Class<T> type, String oid) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsReturns object for provided OID. It retrieves the object from an appropriate source for an object type (e.g. internal repository, resource or both), merging data as necessary, processing any policies, caching mechanisms, etc.
Fails if object with the OID does not exist.
- Specified by:
getObjectin interfaceMidpointFunctions- Parameters:
type- (class) of an object to getoid- OID of the object to get- Returns:
- Retrieved object
- Throws:
ObjectNotFoundException- requested object does not existSchemaException- the object is not schema compliantCommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ExpressionEvaluationException
-
executeChanges
public void executeChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException Description copied from interface:MidpointFunctionsExecute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
- Specified by:
executeChangesin interfaceMidpointFunctions- Parameters:
deltas- Collection of object deltas to executeoptions- options influencing processing of the deltas- Throws:
ObjectAlreadyExistsException- object with specified identifiers already exists, cannot addObjectNotFoundException- object required to complete the operation was not found (e.g. appropriate connector or resource definition)SchemaException- error dealing with resource schema, e.g. created object does not conform to schemaExpressionEvaluationException- evaluation of expression associated with the object has failedCommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException- Policy violation was detected during processing of the objectSecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)
-
executeChanges
public void executeChanges(Collection<ObjectDelta<? extends ObjectType>> deltas) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException Description copied from interface:MidpointFunctionsExecute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
- Specified by:
executeChangesin interfaceMidpointFunctions- Parameters:
deltas- Collection of object deltas to execute- Throws:
ObjectAlreadyExistsException- object with specified identifiers already exists, cannot addObjectNotFoundException- object required to complete the operation was not found (e.g. appropriate connector or resource definition)SchemaException- error dealing with resource schema, e.g. created object does not conform to schemaExpressionEvaluationException- evaluation of expression associated with the object has failedCommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException- Policy violation was detected during processing of the objectSecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)
-
executeChanges
@SafeVarargs public final void executeChanges(ObjectDelta<? extends ObjectType>... deltas) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException Description copied from interface:MidpointFunctionsExecute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
- Specified by:
executeChangesin interfaceMidpointFunctions- Parameters:
deltas- Collection of object deltas to execute- Throws:
ObjectAlreadyExistsException- object with specified identifiers already exists, cannot addObjectNotFoundException- object required to complete the operation was not found (e.g. appropriate connector or resource definition)SchemaException- error dealing with resource schema, e.g. created object does not conform to schemaExpressionEvaluationException- evaluation of expression associated with the object has failedCommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException- Policy violation was detected during processing of the objectSecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)
-
addObject
public <T extends ObjectType> String addObject(PrismObject<T> newObject, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
addObject
public <T extends ObjectType> String addObject(PrismObject<T> newObject) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
addObject
public <T extends ObjectType> String addObject(T newObject, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
addObject
public <T extends ObjectType> String addObject(T newObject) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
modifyObject
public <T extends ObjectType> void modifyObject(ObjectDelta<T> modifyDelta, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
modifyObject
public <T extends ObjectType> void modifyObject(ObjectDelta<T> modifyDelta) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
deleteObject
public <T extends ObjectType> void deleteObject(Class<T> type, String oid, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
deleteObject
public <T extends ObjectType> void deleteObject(Class<T> type, String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException -
recompute
public <F extends FocusType> void recompute(Class<F> type, String oid) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException Description copied from interface:MidpointFunctionsRecomputes focal object with the specified OID. The operation considers all the applicable policies and mapping and tries to re-apply them as necessary.- Specified by:
recomputein interfaceMidpointFunctions- Parameters:
type- type (class) of an object to recomputeoid- OID of the object to recompute- Throws:
SchemaExceptionPolicyViolationExceptionExpressionEvaluationExceptionObjectNotFoundExceptionObjectAlreadyExistsExceptionCommunicationExceptionConfigurationExceptionSecurityViolationException
-
searchShadowOwner
public <F extends FocusType> PrismObject<F> searchShadowOwner(String accountOid) throws ObjectNotFoundException, SecurityViolationException, SchemaException, ConfigurationException, ExpressionEvaluationException, CommunicationException -
searchObjects
public <T extends ObjectType> List<T> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects.
Searches through all object of a specified type. Returns a list of objects that match search criteria.
Note that this method has a very limited scaling capability as all the results are stored in the memory. DO NOT USE on large datasets. Recommended usage is only when using queries that cannot return large number of results (e.g. queries for unique values) or when combined with paging capability. For other cases use searchObjectsIterative instead.
Returns empty list if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjectsin interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search queryoptions- options influencing the retrieval and processing of the objects- Returns:
- all objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.ExpressionEvaluationException
-
searchObjects
public <T extends ObjectType> List<T> searchObjects(Class<T> type, ObjectQuery query) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects.
Searches through all object of a specified type. Returns a list of objects that match search criteria.
Note that this method has a very limited scaling capability as all the results are stored in the memory. DO NOT USE on large datasets. Recommended usage is only when using queries that cannot return large number of results (e.g. queries for unique values) or when combined with paging capability. For other cases use searchObjectsIterative instead.
Returns empty list if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjectsin interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search query- Returns:
- all objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.ExpressionEvaluationException
-
searchObjectsIterative
public <T extends ObjectType> void searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects in iterative fashion (using callback).
Searches through all object of a specified type. A handler is invoked for each object found.
The handler is not called at all if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjectsIterativein interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search queryhandler- callback handler that will be called for each found objectoptions- options influencing the retrieval and processing of the objects- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ExpressionEvaluationException
-
searchObjectsIterative
public <T extends ObjectType> void searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects in iterative fashion (using callback).
Searches through all object of a specified type. A handler is invoked for each object found.
The handler is not called at all if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjectsIterativein interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search queryhandler- callback handler that will be called for each found object- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ExpressionEvaluationException
-
searchObjectByName
public <T extends ObjectType> T searchObjectByName(Class<T> type, String name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
- Specified by:
searchObjectByNamein interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchname- Name of the object to look for- Returns:
- an object of specified type with a matching name or null
- Throws:
SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ObjectNotFoundException- object required for a search was not found (e.g. resource definition)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException- unknown property used in search queryExpressionEvaluationException
-
searchObjectByName
public <T extends ObjectType> T searchObjectByName(Class<T> type, PolyString name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
- Specified by:
searchObjectByNamein interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchname- Name of the object to look for- Returns:
- an object of specified type with a matching name or null
- Throws:
SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ObjectNotFoundException- object required for a search was not found (e.g. resource definition)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException- unknown property used in search queryExpressionEvaluationException
-
searchObjectByName
public <T extends ObjectType> T searchObjectByName(Class<T> type, PolyStringType name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsSearch for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
- Specified by:
searchObjectByNamein interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchname- Name of the object to look for- Returns:
- an object of specified type with a matching name or null
- Throws:
SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ObjectNotFoundException- object required for a search was not found (e.g. resource definition)CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException- unknown property used in search queryExpressionEvaluationException
-
countObjects
public <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsCount objects.
Searches through all object of a specified type and returns a count of such objects. This method is usually much more efficient than equivalent search method. It is used mostly for presentation purposes, e.g. displaying correct number of pages in the GUI listings.
- Specified by:
countObjectsin interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search queryoptions- options influencing the retrieval and processing of the objects- Returns:
- number of objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceExpressionEvaluationException
-
countObjects
public <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException, ExpressionEvaluationException Description copied from interface:MidpointFunctionsCount objects.
Searches through all object of a specified type and returns a count of such objects. This method is usually much more efficient than equivalent search method. It is used mostly for presentation purposes, e.g. displaying correct number of pages in the GUI listings.
- Specified by:
countObjectsin interfaceMidpointFunctions- Parameters:
type- (class) of an object to searchquery- search query- Returns:
- number of objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException- unknown property used in search queryObjectNotFoundException- object required for a search was not found (e.g. resource definition)SecurityViolationException- Security violation during operation execution. May be caused either by midPoint internal security mechanism but also by external mechanism (e.g. on the resource)ConfigurationException- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.CommunicationException- Communication (network) error during retrieval. E.g. error communicating with the resourceExpressionEvaluationException
-
testResource
public OperationResult testResource(String resourceOid) throws ObjectNotFoundException, SchemaException, ConfigurationException Description copied from interface:MidpointFunctionsTest the resource connection and basic resource connector functionality.
This operation will NOT throw exception in case the resource connection fails. It such case it will indicate the failure in the return message, but the operation itself succeeds. The operations fails only if the provided arguments are wrong, in case of system error, system misconfiguration, etc.
This returns OperationResult instead of taking it as in/out argument. This is different from the other methods. The testResource method is not using OperationResult to track its own execution but rather to track the execution of resource tests (that in fact happen in provisioning).
- Specified by:
testResourcein interfaceMidpointFunctions- Parameters:
resourceOid- OID of resource to test- Returns:
- results of executed tests
- Throws:
ObjectNotFoundException- specified object does not existSchemaExceptionConfigurationException
-
getResourceDelta
public ObjectDeltaType getResourceDelta(ModelContext<?> context, String resourceOid) throws SchemaException Description copied from interface:MidpointFunctionsReturns aggregated delta that is to be executed on a given resource.- Specified by:
getResourceDeltain interfaceMidpointFunctions- Parameters:
context- model contextresourceOid- OID of the resource in question- Throws:
SchemaException
-
getSequenceCounter
Description copied from interface:MidpointFunctionsUses repository service directly, bypassing authorization checking.- Specified by:
getSequenceCounterin interfaceMidpointFunctions- Throws:
ObjectNotFoundExceptionSchemaException
-
getManagersOids
public Collection<String> getManagersOids(UserType user) throws SchemaException, SecurityViolationException - Specified by:
getManagersOidsin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
getOrgUnits
- Specified by:
getOrgUnitsin interfaceMidpointFunctions
-
getParentOrgByOrgType
public OrgType getParentOrgByOrgType(ObjectType object, String orgType) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent org of the specified object that have a specific orgType.- Specified by:
getParentOrgByOrgTypein interfaceMidpointFunctions- Parameters:
object- base objectorgType- orgType to select- Returns:
- parent org of the specified object that have a specific orgType
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getParentOrgByArchetype
public OrgType getParentOrgByArchetype(ObjectType object, String archetypeOid) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent org of the specified object that have a specific archetype.- Specified by:
getParentOrgByArchetypein interfaceMidpointFunctions- Parameters:
object- base objectarchetypeOid- archetype OID to select (null means "any archetype")- Returns:
- parent org of the specified object that have a specific archetype
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getOrgByOid
- Specified by:
getOrgByOidin interfaceMidpointFunctions- Throws:
SchemaException
-
getParentOrgs
public Collection<OrgType> getParentOrgs(ObjectType object) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns all parent orgs of the specified object.- Specified by:
getParentOrgsin interfaceMidpointFunctions- Parameters:
object- base object- Returns:
- all parent orgs
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getOrgUnits
- Specified by:
getOrgUnitsin interfaceMidpointFunctions
-
getManagersOfOrg
public Collection<UserType> getManagersOfOrg(String orgOid) throws SchemaException, SecurityViolationException - Specified by:
getManagersOfOrgin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
isManagerOfOrgType
- Specified by:
isManagerOfOrgTypein interfaceMidpointFunctions- Throws:
SchemaException
-
getManagers
public Collection<UserType> getManagers(UserType user) throws SchemaException, SecurityViolationException - Specified by:
getManagersin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
getManagersByOrgType
public Collection<UserType> getManagersByOrgType(UserType user, String orgType) throws SchemaException, SecurityViolationException - Specified by:
getManagersByOrgTypein interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
isManagerOf
Description copied from interface:MidpointFunctionsReturns true if user is a manager of specified organizational unit.- Specified by:
isManagerOfin interfaceMidpointFunctions
-
getParentOrgsByRelation
public Collection<OrgType> getParentOrgsByRelation(ObjectType object, String relation) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent orgs of the specified object that have a specific relation.- Specified by:
getParentOrgsByRelationin interfaceMidpointFunctions- Parameters:
object- base objectrelation- local part of the relation (in the String form)- Returns:
- parent orgs of the specified object that have a specific relation
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getManagers
public Collection<UserType> getManagers(UserType user, String orgType, boolean allowSelf) throws SchemaException, SecurityViolationException - Specified by:
getManagersin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
getParentOrgs
public Collection<OrgType> getParentOrgs(ObjectType object, String relation, String orgType) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent orgs of the specified object that have a specific relation and orgType.- Specified by:
getParentOrgsin interfaceMidpointFunctions- Parameters:
object- base objectrelation- local part of the relation (in the String form)orgType- orgType to select- Returns:
- parent orgs of the specified object that have a specific relation and orgType
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getManagersOidsExceptUser
public Collection<String> getManagersOidsExceptUser(UserType user) throws SchemaException, SecurityViolationException - Specified by:
getManagersOidsExceptUserin interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
getManagersOidsExceptUser
public Collection<String> getManagersOidsExceptUser(@NotNull @NotNull Collection<ObjectReferenceType> userRefList) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException -
getOrgByName
- Specified by:
getOrgByNamein interfaceMidpointFunctions- Throws:
SchemaExceptionSecurityViolationException
-
getParentOrgsByRelation
public Collection<OrgType> getParentOrgsByRelation(ObjectType object, QName relation) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent orgs of the specified object that have a specific relation.- Specified by:
getParentOrgsByRelationin interfaceMidpointFunctions- Parameters:
object- base objectrelation- relation in the QName form- Returns:
- parent orgs of the specified object that have a specific relation
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
getParentOrgs
public Collection<OrgType> getParentOrgs(ObjectType object, QName relation, String orgType) throws SchemaException, SecurityViolationException Description copied from interface:MidpointFunctionsReturns parent orgs of the specified object that have a specific relation and orgType.- Specified by:
getParentOrgsin interfaceMidpointFunctions- Parameters:
object- base objectrelation- relation in the QName formorgType- orgType to select- Returns:
- parent orgs of the specified object that have a specific relation and orgType
- Throws:
SchemaException- Internal schema errorSecurityViolationException- Security violation
-
isManager
Description copied from interface:MidpointFunctionsReturns true if user is a manager of any organizational unit.- Specified by:
isManagerin interfaceMidpointFunctions
-
getProtector
- Specified by:
getProtectorin interfaceMidpointFunctions
-
getPlaintext
- Specified by:
getPlaintextin interfaceMidpointFunctions- Throws:
EncryptionException
-
parseXmlToMap
Description copied from interface:MidpointFunctionsReturns a map from the translated xml attribute - value pairs.- Specified by:
parseXmlToMapin interfaceMidpointFunctions- Parameters:
xml- A string representation of xml formatted data.
-
getMembersAsReferences
public List<ObjectReferenceType> getMembersAsReferences(String orgOid) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException, ObjectNotFoundException, ExpressionEvaluationException -
getMembers
public List<UserType> getMembers(String orgOid) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException - Specified by:
getMembersin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionSecurityViolationExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-
computeDefaultProjectionPurpose
public <F extends FocusType> ShadowPurposeType computeDefaultProjectionPurpose(F focus, ShadowType shadow, ResourceType resource) Description copied from interface:MidpointFunctionsDefault function used to compute projection purpose. It is provided here so it can be explicitly invoked from a custom expression and then the result can be changed for special cases.- Specified by:
computeDefaultProjectionPurposein interfaceMidpointFunctions
-
getPrincipal
Description copied from interface:MidpointFunctionsReturns principal representing the user whose identity is used to execute the expression.- Specified by:
getPrincipalin interfaceMidpointFunctions- Throws:
SecurityViolationException
-
getPrincipalOid
Description copied from interface:MidpointFunctionsReturns OID of the current principal. After login is complete, the returned OID is the same as getPrincipal().getOid(). However, during login process, this method returns the OID of the user that is being authenticated/logged-in.- Specified by:
getPrincipalOidin interfaceMidpointFunctions
-
getChannel
- Specified by:
getChannelin interfaceMidpointFunctions
-
getWorkflowService
- Specified by:
getWorkflowServicein interfaceMidpointFunctions
-
getShadowsToActivate
public List<ShadowType> getShadowsToActivate(Collection<? extends ModelProjectionContext> projectionContexts) Description copied from interface:MidpointFunctionsUsed for account activation notifier to collect all shadows which are going to be activated. Currently it simply collects all accounts with the purpose ofShadowPurposeType.INCOMPLETE.- Specified by:
getShadowsToActivatein interfaceMidpointFunctions
-
createRegistrationConfirmationLink
- Specified by:
createRegistrationConfirmationLinkin interfaceMidpointFunctions
-
createInvitationLink
- Specified by:
createInvitationLinkin interfaceMidpointFunctions
-
createPasswordResetLink
- Specified by:
createPasswordResetLinkin interfaceMidpointFunctions
-
createWorkItemCompletionLink
@Nullable public @Nullable String createWorkItemCompletionLink(@NotNull @NotNull WorkItemId workItemId) Description copied from interface:MidpointFunctionsReturns a link where given work item can be completed.- Specified by:
createWorkItemCompletionLinkin interfaceMidpointFunctions- Returns:
- null if such a link cannot be created
-
createAccountActivationLink
- Specified by:
createAccountActivationLinkin interfaceMidpointFunctions
-
getConst
- Specified by:
getConstin interfaceMidpointFunctions
-
resolveEntitlement
- Specified by:
resolveEntitlementin interfaceMidpointFunctions
-
collectExtensions
public ExtensionType collectExtensions(AssignmentPathType path, int startAt) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
executeChangesAsynchronously
public TaskType executeChangesAsynchronously(Collection<ObjectDelta<?>> deltas, ModelExecuteOptions options, String templateTaskOid) throws SecurityViolationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException -
executeChangesAsynchronously
public TaskType executeChangesAsynchronously(Collection<ObjectDelta<?>> deltas, ModelExecuteOptions options, String templateTaskOid, Task opTask, OperationResult result) throws SecurityViolationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException -
submitTaskFromTemplate
@Deprecated public TaskType submitTaskFromTemplate(String templateTaskOid, List<Item<?, ?>> extensionItems) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationExceptionDeprecated.Description copied from interface:MidpointFunctions -
submitTaskFromTemplate
@Deprecated public TaskType submitTaskFromTemplate(String templateTaskOid, Map<QName, Object> extensionValues) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationExceptionDeprecated.Description copied from interface:MidpointFunctions -
submitTaskFromTemplate
@NotNull public @NotNull String submitTaskFromTemplate(@NotNull @NotNull String templateOid, @NotNull @NotNull ActivityCustomization customization) throws CommonException Description copied from interface:MidpointFunctionsSubmits a task from template (pointed to by `templateOid`), customizing it according to givenActivityCustomization. The template must be compatible with the customization required. The currently logged-in user must possessModelAuthorizationAction.USEauthorization applicable for the specified task template.- Specified by:
submitTaskFromTemplatein interfaceMidpointFunctions- Throws:
CommonException
-
translate
- Specified by:
translatein interfaceMidpointFunctions
-
translate
- Specified by:
translatein interfaceMidpointFunctions
-
translate
Description copied from interface:MidpointFunctionsTranslates message parameter.- Specified by:
translatein interfaceMidpointFunctionsuseDefaultLocale- If true, default JVM locale will be used for translation -Locale.getDefault(). If false, Midpoint will check principal object for more appropriate login -MidPointPrincipal.getLocale(), if no locale availableLocale.getDefault()will be used.- Returns:
- translated string
-
translate
- Specified by:
translatein interfaceMidpointFunctions
-
translate
Description copied from interface:MidpointFunctionsTranslates message parameter.- Specified by:
translatein interfaceMidpointFunctionsuseDefaultLocale- If true, default JVM locale will be used for translation -Locale.getDefault(). If false, Midpoint will check principal object for more appropriate login -MidPointPrincipal.getLocale(), if no locale availableLocale.getDefault()will be used.- Returns:
- translated string
-
executeAdHocProvisioningScript
public Object executeAdHocProvisioningScript(ResourceType resource, String language, String code) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException -
executeAdHocProvisioningScript
public Object executeAdHocProvisioningScript(String resourceOid, String language, String code) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException -
isEvaluateNew
Description copied from interface:MidpointFunctionsReturns indication whether a script code is evaluating a new value. If this method returns true value then the script code is evaluating "new" value. That means a value that is going to be set to target, e.g. value from "add" or "replace" parts of the delta. If this method returns false value then the script code is evaluating "old" value. That means a value that is used for the purposes of removing values from target, e.g. value from "delete" part of the delta or values from an existing object. If this method returns null then the old/new status cannot be determined or this method is invoked in a situation when such a distinction is not applicable.- Specified by:
isEvaluateNewin interfaceMidpointFunctions
-
getEvaluateNew
Description copied from interface:MidpointFunctionsJust a convenience method to allow writing `midpoint.evaluateNew` even after Groovy upgrade in 4.8.- Specified by:
getEvaluateNewin interfaceMidpointFunctions
-
collectAssignedFocusMappingsResults
@NotNull public @NotNull Collection<PrismValue> collectAssignedFocusMappingsResults(@NotNull @NotNull ItemPath path) throws SchemaException Description copied from interface:MidpointFunctionsReturns all non-negative values from all focus mappings (targeted to given path) from all non-negative evaluated assignments. Highly experimental. Use at your own risk.- Specified by:
collectAssignedFocusMappingsResultsin interfaceMidpointFunctions- Throws:
SchemaException
-
findCandidateOwners
@NotNull public <F extends FocusType> @NotNull List<F> findCandidateOwners(@NotNull @NotNull Class<F> focusType, @NotNull @NotNull ShadowType shadow, @NotNull @NotNull String resourceOid, @NotNull @NotNull ShadowKindType kind, @NotNull @NotNull String intent) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Description copied from interface:MidpointFunctionsFinds candidate owners using defined correlation rules. (To be used e.g. in synchronization sorter expressions.) Limitations/notes: 1. Fully supported only for simple correlators: query, expression, and item. Other correlators may or may not work here. 2. The method call encompasses execution of "before correlation" mappings.- Specified by:
findCandidateOwnersin interfaceMidpointFunctions- Parameters:
focusType- Type of the owner looked for. It is merged with the type defined for given kind/intent; the more specific of the two is used.shadow- Resource object we want to correlateresourceOid- OID of the resource we want to do the correlation forkind- Pre-determined (or assumed) kind of the resource objectintent- Pre-determined (or assumed) intent of the resource object- Throws:
SchemaExceptionExpressionEvaluationExceptionCommunicationExceptionSecurityViolationExceptionConfigurationExceptionObjectNotFoundException
-
previewChanges
public <F extends ObjectType> ModelContext<F> previewChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options) throws CommunicationException, ObjectNotFoundException, ObjectAlreadyExistsException, ConfigurationException, SchemaException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException -
previewChanges
public <F extends ObjectType> ModelContext<F> previewChanges(Collection<ObjectDelta<? extends ObjectType>> deltas, ModelExecuteOptions options, OperationResult result) throws CommunicationException, ObjectNotFoundException, ObjectAlreadyExistsException, ConfigurationException, SchemaException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException -
applyDefinition
public <O extends ObjectType> void applyDefinition(O object) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, ExpressionEvaluationException - Specified by:
applyDefinitionin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-
deltaFor
- Specified by:
deltaForin interfaceMidpointFunctions- Throws:
SchemaException
-
getArchetype
@Deprecated public <O extends ObjectType> ArchetypeType getArchetype(O object) throws SchemaException Deprecated.DEPRECATED use getArchetypes(object) or getStructuralArchetype(object)- Specified by:
getArchetypein interfaceMidpointFunctions- Throws:
SchemaException
-
getStructuralArchetype
@Nullable public <O extends AssignmentHolderType> @Nullable ArchetypeType getStructuralArchetype(O object) throws SchemaException Description copied from interface:MidpointFunctionsReturns the structural archetype for the object, possibly `null`.- Specified by:
getStructuralArchetypein interfaceMidpointFunctions- Throws:
SchemaException
-
getArchetypes
@NotNull public <O extends ObjectType> @NotNull List<ArchetypeType> getArchetypes(O object) throws SchemaException - Specified by:
getArchetypesin interfaceMidpointFunctions- Throws:
SchemaException
-
getArchetypeOid
Deprecated.DEPRECATED use getArchetypeOids(object)- Specified by:
getArchetypeOidin interfaceMidpointFunctions- Throws:
SchemaException
-
getArchetypeOids
Description copied from interface:MidpointFunctionsReturns a list of archetype OIDs for given object. Currently, those OIDs are taken from archetype assignments. ArchetypeRef values are ignored.- Specified by:
getArchetypeOidsin interfaceMidpointFunctions
-
wrap
-
getMessageBodyAsMap
- Throws:
IOException
-
getMessageBodyAsPrismItem
- Throws:
SchemaException
-
addRecomputeTrigger
public <O extends ObjectType> void addRecomputeTrigger(PrismObject<O> object, Long timestamp, MidpointFunctions.TriggerCustomizer triggerCustomizer) throws ObjectAlreadyExistsException, SchemaException, ObjectNotFoundException - Specified by:
addRecomputeTriggerin interfaceMidpointFunctions- Throws:
ObjectAlreadyExistsExceptionSchemaExceptionObjectNotFoundException
-
getRepositoryService
- Specified by:
getRepositoryServicein interfaceMidpointFunctions
-
getOptimizingTriggerCreator
@NotNull public @NotNull OptimizingTriggerCreator getOptimizingTriggerCreator(long fireAfter, long safetyMargin) - Specified by:
getOptimizingTriggerCreatorin interfaceMidpointFunctions
-
getAttributeDefinition
@NotNull public <T> @NotNull ResourceAttributeDefinition<T> getAttributeDefinition(PrismObject<ResourceType> resource, QName objectClassName, QName attributeName) throws SchemaException - Specified by:
getAttributeDefinitionin interfaceMidpointFunctions- Throws:
SchemaException
-
getAttributeDefinition
@NotNull public <T> @NotNull ResourceAttributeDefinition<T> getAttributeDefinition(PrismObject<ResourceType> resource, String objectClassName, String attributeName) throws SchemaException - Specified by:
getAttributeDefinitionin interfaceMidpointFunctions- Throws:
SchemaException
-
findLinkedSource
@Experimental public <T extends AssignmentHolderType> T findLinkedSource(Class<T> type) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedSource
@Experimental public <T extends AssignmentHolderType> T findLinkedSource(String linkType) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedSources
@Experimental public <T extends AssignmentHolderType> List<T> findLinkedSources(Class<T> type) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedSources
@Experimental public <T extends AssignmentHolderType> List<T> findLinkedSources(String linkTypeName) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedTarget
@Experimental public <T extends AssignmentHolderType> T findLinkedTarget(Class<T> type, String archetypeOid) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedTarget
@Experimental public <T extends AssignmentHolderType> T findLinkedTarget(String linkTypeName) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedTargets
@Experimental @NotNull public <T extends AssignmentHolderType> @NotNull List<T> findLinkedTargets(Class<T> type, String archetypeOid) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
findLinkedTargets
@Experimental @NotNull public <T extends AssignmentHolderType> @NotNull List<T> findLinkedTargets(String linkTypeName) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
createLinkedSource
@Experimental public <T extends AssignmentHolderType> T createLinkedSource(String linkType) throws SchemaException, ConfigurationException -
getFocusObjectReference
-
createRecomputeTrigger
public void createRecomputeTrigger(Class<? extends ObjectType> type, String oid) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException Description copied from interface:MidpointFunctionsGoes directly to repository service.- Specified by:
createRecomputeTriggerin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectAlreadyExistsExceptionObjectNotFoundException
-
extensionOptionIsNotFalse
-
extensionOptionIsTrue
-
getBooleanExtensionOption
-
getExtensionOptionRealValue
-
getExtensionOptionRealValue
-
getCorrelationCaseForShadow
@Nullable public @Nullable CaseType getCorrelationCaseForShadow(@Nullable @Nullable ShadowType shadow) throws SchemaException Description copied from interface:MidpointFunctionsReturns a correlation case for given shadow. (Need not be full.)- Specified by:
getCorrelationCaseForShadowin interfaceMidpointFunctions- Throws:
SchemaException
-
describeResourceObjectSetLong
public String describeResourceObjectSetLong(ResourceObjectSetType set) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Description copied from interface:MidpointFunctionsReturns longer version of human-readable description of the resource object set: . resource name . object type display name (if known) . object type ID (kind, intent) . flag whether we are using default type definition . object class Currently, object types are resolved and named using theResourceSchemaUtil.findDefinitionForBulkOperation(ResourceType, ShadowKindType, String, QName)method that is used for import and reconciliation activities. Hence, the name should be quite precise in the context of these activities. -
describeResourceObjectSetShort
public String describeResourceObjectSetShort(ResourceObjectSetType set) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException Description copied from interface:MidpointFunctionsShort version ofMidpointFunctions.describeResourceObjectSetLong(ResourceObjectSetType): . only one of object type display name and type ID is shown; . object class is omitted when type is present -
selectIdentityItemValues
public Collection<PrismValue> selectIdentityItemValues(@Nullable @Nullable Collection<FocusIdentityType> identities, @Nullable @Nullable FocusIdentitySourceType source, @NotNull @NotNull ItemPath itemPath) Description copied from interface:MidpointFunctionsSelects specified values from all relevant identity data.- Specified by:
selectIdentityItemValuesin interfaceMidpointFunctions- Parameters:
identities- a collection of identities where we search for the datasource- specification of a source we are looking for; `null` means "all sources" The source is currently matched using resource OID, kind, intent, and tag. SeeFocusIdentityTypeUtil.matches(FocusIdentitySourceType, FocusIdentitySourceType)method.itemPath- item that should be provided- See Also:
-
queryFor
- Specified by:
queryForin interfaceMidpointFunctions- Throws:
SchemaException
-
preparedQueryFor
- Specified by:
preparedQueryForin interfaceMidpointFunctions- Throws:
SchemaException
-
searchObjects
public <T extends ObjectType> List<T> searchObjects(TypedQuery<T> query) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException - Specified by:
searchObjectsin interfaceMidpointFunctions- Throws:
SchemaExceptionObjectNotFoundExceptionSecurityViolationExceptionCommunicationExceptionConfigurationExceptionExpressionEvaluationException
-