|
||||||||||
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 | ||
---|---|---|
|
addObject(T object,
ScriptsType scripts,
OperationResult parentResult)
Add new object. |
|
|
deleteObject(java.lang.Class<T> type,
java.lang.String oid,
ScriptsType scripts,
OperationResult parentResult)
Deletes object with specified OID. |
|
java.util.Set<ConnectorType> |
discoverConnectors(ConnectorHostType hostType,
OperationResult parentResult)
Discovers local or remote connectors. |
|
RepositoryService |
getCacheRepositoryService()
Get the value of repositoryService. |
|
|
getObject(java.lang.Class<T> type,
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. |
|
ResourceTypeManager |
getResourceTypeManager()
|
|
ShadowCache |
getShadowCache()
|
|
|
listObjects(java.lang.Class<T> objectType,
PagingType paging,
OperationResult parentResult)
Returns all objects of specified type that are available to the implementation. |
|
ResultList<? extends ResourceObjectShadowType> |
listResourceObjects(java.lang.String resourceOid,
javax.xml.namespace.QName objectClass,
PagingType paging,
OperationResult parentResult)
Lists resource objects. |
|
|
modifyObject(java.lang.Class<T> type,
ObjectModificationType objectChange,
ScriptsType scripts,
OperationResult parentResult)
Modifies object using relative change description. |
|
void |
postInit(OperationResult parentResult)
Finish initialization of provisioning system. |
|
|
searchObjects(java.lang.Class<T> type,
QueryType query,
PagingType paging,
OperationResult parentResult)
Search for objects. |
|
void |
searchObjectsIterative(QueryType query,
PagingType paging,
ResultHandler handler,
OperationResult parentResult)
Search for objects iteratively. |
|
void |
setCacheRepositoryService(RepositoryService repositoryService)
Set the value of repositoryService Expected to be injected. |
|
void |
setResourceTypeManager(ResourceTypeManager resourceTypeManager)
|
|
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 ResourceTypeManager getResourceTypeManager()
public void setResourceTypeManager(ResourceTypeManager resourceTypeManager)
public RepositoryService getCacheRepositoryService()
public void setCacheRepositoryService(RepositoryService repositoryService)
repositoryService
- new value of repositoryServicepublic <T extends ObjectType> T getObject(java.lang.Class<T> type, java.lang.String oid, PropertyReferenceListType resolve, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
ProvisioningService
getObject
in interface ProvisioningService
type
- the type (class) of object to getoid
- 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 schemapublic <T extends ObjectType> java.lang.String addObject(T object, ScriptsType scripts, OperationResult parentResult) throws ObjectAlreadyExistsException, SchemaException, CommunicationException, ObjectNotFoundException
ProvisioningService
addObject
in interface ProvisioningService
object
- 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 foundpublic int synchronize(java.lang.String resourceOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
ProvisioningService
synchronize
in interface ProvisioningService
parentResult
- parent OperationResult (in/out)
ObjectNotFoundException
- specified resource definition (OID) does not exist
CommunicationException
- error communicating with the resource
SchemaException
- error dealing with resource schemapublic <T extends ObjectType> ResultList<T> listObjects(java.lang.Class<T> objectType, PagingType paging, OperationResult parentResult)
ProvisioningService
listObjects
in interface ProvisioningService
paging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)
public <T extends ObjectType> ResultList<T> searchObjects(java.lang.Class<T> type, QueryType query, PagingType paging, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException
ProvisioningService
searchObjects
in interface ProvisioningService
query
- search querypaging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)
SchemaException
- unknown property used in search query
ObjectNotFoundException
CommunicationException
public <T extends ObjectType> void modifyObject(java.lang.Class<T> type, ObjectModificationType objectChange, ScriptsType scripts, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException
ProvisioningService
modifyObject
in interface ProvisioningService
objectChange
- 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 <T extends ObjectType> void deleteObject(java.lang.Class<T> type, java.lang.String oid, ScriptsType scripts, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
ProvisioningService
Deletes object with specified OID.
Must fail if object with specified OID does not exists. Should be atomic.
deleteObject
in interface ProvisioningService
oid
- 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 ProvisioningService
oid
- 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 existpublic OperationResult testResource(java.lang.String resourceOid) throws ObjectNotFoundException
ProvisioningService
testResource
in interface ProvisioningService
resourceOid
- OID of resource to test
ObjectNotFoundException
- specified object does not existpublic ResultList<? extends ResourceObjectShadowType> listResourceObjects(java.lang.String resourceOid, javax.xml.namespace.QName objectClass, PagingType paging, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException
ProvisioningService
listResourceObjects
in interface ProvisioningService
resourceOid
- OID of the resource to fetch objects fromobjectClass
- Object class of the objects to fetchpaging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)
SchemaException
- error handling resource schema
ObjectNotFoundException
- specified resource object does not exist
CommunicationException
- error communicating with the resourcepublic void searchObjectsIterative(QueryType query, PagingType paging, ResultHandler handler, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException
ProvisioningService
searchObjectsIterative
in interface ProvisioningService
query
- 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
public java.util.Set<ConnectorType> discoverConnectors(ConnectorHostType hostType, OperationResult parentResult) throws CommunicationException
ProvisioningService
discoverConnectors
in interface ProvisioningService
hostType
- definition of a connector host or nullparentResult
- parentResult parent OperationResult (in/out)
CommunicationException
- error connecting to a remote hostpublic void postInit(OperationResult parentResult)
ProvisioningService
postInit
in interface ProvisioningService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |