com.evolveum.midpoint.xml.ns._public.model.model_1_wsdl
Interface ModelPortType
- All Known Implementing Classes:
- ModelPortTypeImpl, ModelWebService
public interface ModelPortType
This class was generated by Apache CXF 2.4.3
2013-03-04T20:32:19.650+01:00
Generated source version: 2.4.3
Method Summary |
void |
addObject(ObjectType object,
Holder<String> oid,
Holder<OperationResultType> result)
Add new object. |
OperationResultType |
deleteObject(String objectType,
String oid)
Deleted object with provided OID. |
void |
getObject(String objectType,
String oid,
OperationOptionsType options,
Holder<ObjectType> object,
Holder<OperationResultType> result)
Returns object for provided OID. |
TaskType |
importFromResource(String resourceOid,
QName objectClass)
TODO: update description
Launch import task that will import all the accounts from the
resource. |
void |
listAccountShadowOwner(String accountOid,
Holder<UserType> user,
Holder<OperationResultType> result)
Returns the User object representing owner of specified account
(account shadow). |
void |
listObjects(String objectType,
PagingType paging,
OperationOptionsType options,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
Returns all objects of specified type in the repository. |
void |
listResourceObjects(String resourceOid,
QName objectType,
PagingType paging,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
WARNING:
This operation should not be here. |
void |
listResourceObjectShadows(String resourceOid,
String resourceObjectShadowType,
Holder<ResourceObjectShadowListType> resourceObjectShadowList,
Holder<OperationResultType> result)
Search for resource object shadows of a specified type that
belong to the specified resource. |
OperationResultType |
modifyObject(String objectType,
ObjectModificationType objectChange)
Modifies object using relative change description. |
void |
searchObjects(String objectType,
QueryType query,
OperationOptionsType options,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
Search for objects in the repository. |
OperationResultType |
testResource(String resourceOid)
WARNING:
This operation should not be here. |
deleteObject
OperationResultType deleteObject(String objectType,
String oid)
throws FaultMessage
- Deleted object with provided OID.
Must fail if object with specified OID does not exists.
Should be atomic.
Faults:
any SystemFaultType
ObjectNotFoundFaultType: object with specified OID does not exists
IllegalArgumentFaultType: wrong OID format
- Throws:
FaultMessage
listObjects
void listObjects(String objectType,
PagingType paging,
OperationOptionsType options,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
throws FaultMessage
- Returns all objects of specified type in the repository.
Not very practical, but good for now.
Will be improved later.
Faults:
any SystemFaultType
IllegalArgumentFaultType: wrong object type
- Throws:
FaultMessage
listAccountShadowOwner
void listAccountShadowOwner(String accountOid,
Holder<UserType> user,
Holder<OperationResultType> result)
throws FaultMessage
- Returns the User object representing owner of specified account
(account shadow).
May return (null?? empty??) object if there is no owner
specified for the account.
Implements the backward "owns" association between account
shadow and user. Forward association is implemented by property
"account" of user object.
Faults:
any SystemFaultType
IllegalArgumentFaultType: wrong OID format
ObjectNotFoundFaultType: object with specified OID does not exists
- Throws:
FaultMessage
addObject
void addObject(ObjectType object,
Holder<String> oid,
Holder<OperationResultType> result)
throws FaultMessage
- Add new object.
The OID provided in the input message may be empty. In that case
the OID will be assigned by the implementation of this method
and it will be provided as return value.
This operation should fail if such object already exists (if
object with the provided OID already exists).
The operation may fail if provided OID is in an unusable format
for the storage. Generating own OIDs and providing them to this
method is not recommended for normal operation.
Should be atomic. Should not allow creation of two objects with
the same OID (even if created in parallel).
The operation may fail if the object to be created does not
comform to the underlying schema of the storage system or the
schema enforced by the implementation.
Faults:
any SystemFaultType
ObjectAlreadyExistsFaultType
IllegalArgumentFaultType: wrong OID format
SchemaViolationFaultType: provided object violates datastore schema
- Throws:
FaultMessage
searchObjects
void searchObjects(String objectType,
QueryType query,
OperationOptionsType options,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
throws FaultMessage
- Search for objects in the repository. Searches through all
object types. Returns a list of objects that match search
criteria.
Faults:
any SystemFaultType
IllegalArgumentFaultType: wrong object type
SchemaViolationFaultType: unknown property used in search query
- Throws:
FaultMessage
listResourceObjectShadows
void listResourceObjectShadows(String resourceOid,
String resourceObjectShadowType,
Holder<ResourceObjectShadowListType> resourceObjectShadowList,
Holder<OperationResultType> result)
throws FaultMessage
- Search for resource object shadows of a specified type that
belong to the specified resource. Returns a list of such object
shadows or empty list if nothing was found.
Implements the backward "has" association between resource and
resource object shadows. Forward association is implemented by
property "resource" of resource object shadow.
Faults:
any SystemFaultType
IllegalArgumentFaultType: wrong OID format
ObjectNotFoundFaultType: object with specified OID does not exists
- Throws:
FaultMessage
importFromResource
TaskType importFromResource(String resourceOid,
QName objectClass)
throws FaultMessage
- TODO: update description
Launch import task that will import all the accounts from the
resource.
WARNING: This operation is not considered public. It is a
temporary solution until we have full-featured task management.
It may be removed any time without a warning.
DO NOT USE IT unless you are really sure you know what you
are doing.
Faults:
any SystemFaultType
ObjectNotFoundFaultType: specified Resource definition does not exist
- Throws:
FaultMessage
listResourceObjects
void listResourceObjects(String resourceOid,
QName objectType,
PagingType paging,
Holder<ObjectListType> objectList,
Holder<OperationResultType> result)
throws FaultMessage
- WARNING:
This operation should not be here. It is in fact
just a diagnostics methods from the provisioning interface
that need to be accessed from GUI. Do not use it for
anything serious. It will disappear eventually.
Returns all objects of specified type that are available to the
implementation.
Returns empty list if object type is correct but there are no
objects of that type.
Should fail if object type is wrong (e.g. specified type is
not part of resource schema).
This method does NOT use any shadow objects for reference or any
other business objects in the local repository. It goes directly
to the resource.
The returned objects (indirectly) complies with the resource
schema, but it is returned re-formated in a form of detached
shadow object. Although the form is the same as shadow object,
this is NOT really a shadow object because it is not stored in
the repository (it is detached). It does NOT have oid.
The object is identified by whatever identification
properties/attributes are defined by the resource schema.
This method is not required to implement any form of caching,
queueing, reference resolution or any other "smart" algorithm.
any SystemFaultType
IllegalArgumentFaultType: wrong object type
ProvisioningFaultType: ???
Use of this method is not recommended if there is a way how to
do the same using the standard "object access" methods. E.g.
if accounts can be namipulated using account shadows, the
shadows should be used. This method is provided only to support
the rare case that an unknown resource object type should be
used in business logic and for diagnostics reasons.
- Throws:
FaultMessage
getObject
void getObject(String objectType,
String oid,
OperationOptionsType options,
Holder<ObjectType> object,
Holder<OperationResultType> result)
throws FaultMessage
- Returns object for provided OID.
Must fail if object with the OID does not exists.
Reference resolution is SUPPORTED by this operation.
Faults:
any SystemFaultType
IllegalArgumentFaultType: wrong OID format
ObjectNotFoundFaultType: object with specified OID does not exists
- Throws:
FaultMessage
modifyObject
OperationResultType modifyObject(String objectType,
ObjectModificationType objectChange)
throws FaultMessage
- Modifies object using relative change description.
Must fail if user with provided OID does not exists.
Must fail if any of the described changes cannot be applied.
Should be atomic.
If two or more modify operations are executed in parallel, the
operations should be merged. In case that the operations are in
conflict (e.g. one operation adding a value and the other
removing the same value), the result is not deterministic.
The operation may fail if the modified object does not
comform to the underlying schema of the storage system or the
schema enforced by the implementation.
TODO: optimistic locking
Faults:
any SystemFaultType
ObjectNotFoundFaultType: object with specified OID does not exists
IllegalArgumentFaultType: wrong OID format
InapplicableOperationFaultType: decribed change is not applicable
SchemaViolationFaultType: resulting object would violate datastore schema
- Throws:
FaultMessage
testResource
OperationResultType testResource(String resourceOid)
throws FaultMessage
- WARNING:
This operation should not be here. It is in fact
just a diagnostics methods from the provisioning interface
that need to be accessed from GUI. Do not use it for
anything serious. It will disappear eventually.
Test the resouce connection and basic resource connector
functionality.
This operation will NOT raise fault 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.
Faults:
any SystemFaultType
ObjectNotFoundFaultType: specified Resource definition does not exist
- Throws:
FaultMessage
Copyright © 2013 evolveum. All Rights Reserved.