Package com.evolveum.midpoint.model.impl
Class ModelWebService
- java.lang.Object
-
- com.evolveum.midpoint.model.common.util.AbstractModelWebService
-
- com.evolveum.midpoint.model.impl.ModelWebService
-
- All Implemented Interfaces:
ModelPort
,ModelPortType
@Service public class ModelWebService extends AbstractModelWebService implements ModelPortType, ModelPort
- Author:
- lazyman
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.common.util.AbstractModelWebService
auditService, modelService, prismContext, securityContextManager, taskManager
-
Fields inherited from interface com.evolveum.midpoint.model.api.ModelPort
CLASS_NAME_WITH_DOT, EXECUTE_CHANGES, EXECUTE_CHANGES_RESPONSE, EXECUTE_SCRIPTS, EXECUTE_SCRIPTS_RESPONSE, FIND_SHADOW_OWNER_RESPONSE, GET_OBJECT, GET_OBJECT_RESPONSE, IMPORT_FROM_RESOURCE, IMPORT_FROM_RESOURCE_RESPONSE, LIST_ACCOUNT_SHADOW_OWNER, NOTIFY_CHANGE, NOTIFY_CHANGE_RESPONSE, SEARCH_OBJECTS, SEARCH_OBJECTS_RESPONSE, TEST_RESOURCE, TEST_RESOURCE_RESPONSE
-
-
Constructor Summary
Constructors Constructor Description ModelWebService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FaultMessage
createIllegalArgumentFault(String message)
ObjectDeltaOperationListType
executeChanges(ObjectDeltaListType deltaList, ModelExecuteOptionsType optionsType)
Faults: any SystemFaultType TODO reword to FaultTypes ObjectAlreadyExistsException: object with specified identifiers already exists, cannot add ObjectNotFoundException: object required to complete the operation was not found (e.g.ExecuteScriptsResponseType
executeScripts(ExecuteScriptsType parameters)
void
findShadowOwner(String accountOid, javax.xml.ws.Holder<UserType> userHolder, javax.xml.ws.Holder<OperationResultType> result)
Faults (TODO): any SystemFaultType IllegalArgumentFaultType: wrong OID format ObjectNotFoundFaultType: object with specified OID does not existsvoid
getObject(QName objectType, String oid, SelectorQualifiedGetOptionsType optionsType, javax.xml.ws.Holder<ObjectType> objectHolder, javax.xml.ws.Holder<OperationResultType> resultHolder)
TaskType
importFromResource(String resourceOid, QName objectClass)
Faults (TODO): any SystemFaultType ObjectNotFoundFaultType: specified Resource definition does not existTaskType
notifyChange(ResourceObjectShadowChangeDescriptionType changeDescription)
static PipelineDataType
prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options)
void
searchObjects(QName objectType, QueryType query, SelectorQualifiedGetOptionsType optionsType, javax.xml.ws.Holder<ObjectListType> objectListHolder, javax.xml.ws.Holder<OperationResultType> result)
TODO Faults: any SystemFaultType IllegalArgumentFaultType: wrong object type SchemaViolationFaultType: unknown property used in search queryOperationResultType
testResource(String resourceOid)
Faults (TODO): any SystemFaultType ObjectNotFoundFaultType: specified Resource definition does not existvoid
throwFault(Throwable ex, OperationResult result)
-
Methods inherited from class com.evolveum.midpoint.model.common.util.AbstractModelWebService
auditLogin, auditLogout, createTaskInstance, setTaskOwner
-
-
-
-
Method Detail
-
getObject
public void getObject(QName objectType, String oid, SelectorQualifiedGetOptionsType optionsType, javax.xml.ws.Holder<ObjectType> objectHolder, javax.xml.ws.Holder<OperationResultType> resultHolder) throws FaultMessage
- Specified by:
getObject
in interfaceModelPortType
- Throws:
FaultMessage
-
searchObjects
public void searchObjects(QName objectType, QueryType query, SelectorQualifiedGetOptionsType optionsType, javax.xml.ws.Holder<ObjectListType> objectListHolder, javax.xml.ws.Holder<OperationResultType> result) throws FaultMessage
Description copied from interface:ModelPortType
TODO Faults: any SystemFaultType IllegalArgumentFaultType: wrong object type SchemaViolationFaultType: unknown property used in search query- Specified by:
searchObjects
in interfaceModelPortType
- Throws:
FaultMessage
-
executeChanges
public ObjectDeltaOperationListType executeChanges(ObjectDeltaListType deltaList, ModelExecuteOptionsType optionsType) throws FaultMessage
Description copied from interface:ModelPortType
Faults: any SystemFaultType TODO reword to FaultTypes ObjectAlreadyExistsException: object with specified identifiers already exists, cannot add ObjectNotFoundException: 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 schema ExpressionEvaluationException: evaluation of expression associated with the object has failed CommunicationException: Communication (network) error during retrieval. E.g. error communicating with the resource ConfigurationException: Configuration error. E.g. misconfigured resource parameters, invalid policies, etc. PolicyViolationException: Policy violation was detected during processing of the object 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) IllegalArgumentException: wrong OID format, etc.- Specified by:
executeChanges
in interfaceModelPortType
- Throws:
FaultMessage
-
findShadowOwner
public void findShadowOwner(String accountOid, javax.xml.ws.Holder<UserType> userHolder, javax.xml.ws.Holder<OperationResultType> result) throws FaultMessage
Description copied from interface:ModelPortType
Faults (TODO): any SystemFaultType IllegalArgumentFaultType: wrong OID format ObjectNotFoundFaultType: object with specified OID does not exists- Specified by:
findShadowOwner
in interfaceModelPortType
- Throws:
FaultMessage
-
testResource
public OperationResultType testResource(String resourceOid) throws FaultMessage
Description copied from interface:ModelPortType
Faults (TODO): any SystemFaultType ObjectNotFoundFaultType: specified Resource definition does not exist- Specified by:
testResource
in interfaceModelPortType
- Throws:
FaultMessage
-
executeScripts
public ExecuteScriptsResponseType executeScripts(ExecuteScriptsType parameters) throws FaultMessage
- Specified by:
executeScripts
in interfaceModelPortType
- Throws:
FaultMessage
-
prepareXmlData
public static PipelineDataType prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options) throws javax.xml.bind.JAXBException, SchemaException
- Throws:
javax.xml.bind.JAXBException
SchemaException
-
createIllegalArgumentFault
public FaultMessage createIllegalArgumentFault(String message)
-
throwFault
public void throwFault(Throwable ex, OperationResult result) throws FaultMessage
- Throws:
FaultMessage
-
importFromResource
public TaskType importFromResource(String resourceOid, QName objectClass) throws FaultMessage
Description copied from interface:ModelPortType
Faults (TODO): any SystemFaultType ObjectNotFoundFaultType: specified Resource definition does not exist- Specified by:
importFromResource
in interfaceModelPortType
- Throws:
FaultMessage
-
notifyChange
public TaskType notifyChange(ResourceObjectShadowChangeDescriptionType changeDescription) throws FaultMessage
- Specified by:
notifyChange
in interfaceModelPortType
- Throws:
FaultMessage
-
-