|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl
@Service(value="provisioningService") public class ProvisioningServiceImpl
Implementation of provisioning service. It is just a "dispatcher" that routes interface calls to appropriate places. E.g. the operations regarding resource definitions are routed directly to the repository, operations of shadow objects are routed to the shadow cache and so on. WORK IN PROGRESS There be dragons. Beware the dog. Do not trespass.
| Field Summary |
|---|
| Fields inherited from interface com.evolveum.midpoint.provisioning.api.ProvisioningService |
|---|
TEST_CONNECTION_CONNECTOR_CONNECTION_OPERATION, TEST_CONNECTION_CONNECTOR_INIT_OPERATION, TEST_CONNECTION_CONNECTOR_SANITY_OPERATION, TEST_CONNECTION_CONNECTOR_SCHEMA_OPERATION, TEST_CONNECTION_CONNECTOR_VALIDATION_OPERATION, TEST_CONNECTION_OPERATION |
| Constructor Summary | |
|---|---|
ProvisioningServiceImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addObject(ObjectType object,
ScriptsType scripts,
OperationResult parentResult)
Add new object. |
void |
deleteObject(java.lang.String oid,
ScriptsType scripts,
OperationResult parentResult)
Deleted object with provided OID. |
ObjectType |
getObject(java.lang.String oid,
PropertyReferenceListType resolve,
OperationResult parentResult)
Returns object for provided OID. |
PropertyAvailableValuesListType |
getPropertyAvailableValues(java.lang.String oid,
PropertyReferenceListType properties,
OperationResult parentResult)
Returns list of available values for specified properties. |
RepositoryService |
getRepositoryService()
Get the value of repositoryService. |
ShadowCache |
getShadowCache()
|
ObjectListType |
listObjects(java.lang.Class<? extends ObjectType> objectType,
PagingType paging,
OperationResult parentResult)
Returns all objects of specified type that are available to the implementation. |
ObjectListType |
listResourceObjects(java.lang.String resourceOid,
javax.xml.namespace.QName objectType,
PagingType paging,
OperationResult parentResult)
|
void |
modifyObject(ObjectModificationType objectChange,
ScriptsType scripts,
OperationResult parentResult)
Modifies object using relative change description. |
ObjectListType |
searchObjects(QueryType query,
PagingType paging,
OperationResult parentResult)
Search for objects. |
void |
searchObjectsIterative(QueryType query,
PagingType paging,
ResultHandler handler,
OperationResult parentResult)
Search for objects iteratively. |
void |
setRepositoryService(RepositoryService repositoryService)
Set the value of repositoryService Expected to be injected. |
void |
setShadowCache(ShadowCache shadowCache)
|
int |
synchronize(java.lang.String resourceOid,
Task task,
OperationResult parentResult)
Collect external changes on a resource and call the business logic with the accumulated change data. |
OperationResult |
testResource(java.lang.String resourceOid)
Test the resource connection and basic resource connector functionality. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProvisioningServiceImpl()
| Method Detail |
|---|
public ShadowCache getShadowCache()
public void setShadowCache(ShadowCache shadowCache)
public RepositoryService getRepositoryService()
public void setRepositoryService(RepositoryService repositoryService)
repositoryService - new value of repositoryService
public ObjectType getObject(java.lang.String oid,
PropertyReferenceListType resolve,
OperationResult parentResult)
throws ObjectNotFoundException,
CommunicationException,
SchemaException
ProvisioningService
getObject in interface ProvisioningServiceoid - OID of the object to getresolve - list of properties to resolve in the fetched object
ObjectNotFoundException - requested object does not exist
CommunicationException - error communicating with the resource
SchemaException - error dealing with resource schema
public java.lang.String addObject(ObjectType object,
ScriptsType scripts,
OperationResult parentResult)
throws ObjectAlreadyExistsException,
SchemaException,
CommunicationException,
ObjectNotFoundException
ProvisioningService
addObject in interface ProvisioningServiceobject - object to createscripts - scripts to execute before/after the operationparentResult - parent OperationResult (in/out)
ObjectAlreadyExistsException - object with specified identifiers already exists, cannot add
SchemaException - error dealing with resource schema, e.g. schema violation
CommunicationException - error communicating with the resource
ObjectNotFoundException - appropriate connector object was not found
public int synchronize(java.lang.String resourceOid,
Task task,
OperationResult parentResult)
throws ObjectNotFoundException,
CommunicationException,
SchemaException
ProvisioningService
synchronize in interface ProvisioningServiceparentResult - parent OperationResult (in/out)
ObjectNotFoundException - specified resource definition (OID) does not exist
CommunicationException - error communicating with the resource
SchemaException - error dealing with resource schema
public ObjectListType listObjects(java.lang.Class<? extends ObjectType> objectType,
PagingType paging,
OperationResult parentResult)
ProvisioningService
listObjects in interface ProvisioningServicepaging - paging specification to limit operation result (optional)parentResult - parent OperationResult (in/out)
public ObjectListType searchObjects(QueryType query,
PagingType paging,
OperationResult parentResult)
throws SchemaException,
ObjectNotFoundException,
CommunicationException
ProvisioningService
searchObjects in interface ProvisioningServicequery - search querypaging - paging specification to limit operation result (optional)parentResult - parent OperationResult (in/out)
SchemaException - unknown property used in search query
ObjectNotFoundException
CommunicationException
public void modifyObject(ObjectModificationType objectChange,
ScriptsType scripts,
OperationResult parentResult)
throws ObjectNotFoundException,
SchemaException,
CommunicationException
ProvisioningService
modifyObject in interface ProvisioningServiceobjectChange - specification of object changesscripts - scripts that should be executed before of after operationparentResult - parent OperationResult (in/out)
ObjectNotFoundException - specified object does not exist
SchemaException - resulting object would violate the schema
CommunicationException
public void deleteObject(java.lang.String oid,
ScriptsType scripts,
OperationResult parentResult)
throws ObjectNotFoundException,
CommunicationException,
SchemaException
ProvisioningService
deleteObject in interface ProvisioningServiceoid - OID of object to deletescripts - scripts that should be executed before of after operationparentResult - parent OperationResult (in/out)
ObjectNotFoundException - specified object does not exist
CommunicationException
SchemaException
public PropertyAvailableValuesListType getPropertyAvailableValues(java.lang.String oid,
PropertyReferenceListType properties,
OperationResult parentResult)
throws ObjectNotFoundException
ProvisioningService
getPropertyAvailableValues in interface ProvisioningServiceoid - OID of the object for which to determine valuesproperties - list of properties for which to determine valuesparentResult - parentResult parent OperationResult (in/out)
ObjectNotFoundException - specified object does not exist
public OperationResult testResource(java.lang.String resourceOid)
throws ObjectNotFoundException
ProvisioningService
testResource in interface ProvisioningServiceresourceOid - OID of resource to test
ObjectNotFoundException - specified object does not exist
public ObjectListType listResourceObjects(java.lang.String resourceOid,
javax.xml.namespace.QName objectType,
PagingType paging,
OperationResult parentResult)
listResourceObjects in interface ProvisioningService
public void searchObjectsIterative(QueryType query,
PagingType paging,
ResultHandler handler,
OperationResult parentResult)
throws SchemaException,
ObjectNotFoundException,
CommunicationException
ProvisioningService
searchObjectsIterative in interface ProvisioningServicequery - search querypaging - paging specification to limit operation result (optional)handler - result handlerparentResult - parent OperationResult (in/out)
SchemaException - unknown property used in search query
ObjectNotFoundException - appropriate connector object was not found
CommunicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||