|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProvisioningService
Provisioning Service Interface.
Status: public Stability: DRAFT, some changes are likely
This service retrieves information about resource objects and resources and handles changes to resource objects. Implementations of this interface will apply the changes to accounts, groups and other similar objects to the target resources. It also provides information about connectors and similar configuration of access to the resources.
Supported object types:
TODO: better documentation
Field Summary | |
---|---|
static java.lang.String |
TEST_CONNECTION_CONNECTOR_CONNECTION_OPERATION
Check whether the connector can be initialized. |
static java.lang.String |
TEST_CONNECTION_CONNECTOR_INIT_OPERATION
Check whether the connector can be initialized. |
static java.lang.String |
TEST_CONNECTION_CONNECTOR_SANITY_OPERATION
Check whether the connector can be used to fetch some mandatory objects (e.g. |
static java.lang.String |
TEST_CONNECTION_CONNECTOR_SCHEMA_OPERATION
Check whether the connector can fetch and process resource schema. |
static java.lang.String |
TEST_CONNECTION_CONNECTOR_VALIDATION_OPERATION
Check whether the configuration is valid e.g. |
static java.lang.String |
TEST_CONNECTION_OPERATION
Prefix for all the "standardized" test resource tests. |
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. |
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. |
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. |
Field Detail |
---|
static final java.lang.String TEST_CONNECTION_OPERATION
static final java.lang.String TEST_CONNECTION_CONNECTOR_VALIDATION_OPERATION
static final java.lang.String TEST_CONNECTION_CONNECTOR_INIT_OPERATION
static final java.lang.String TEST_CONNECTION_CONNECTOR_CONNECTION_OPERATION
static final java.lang.String TEST_CONNECTION_CONNECTOR_SCHEMA_OPERATION
static final java.lang.String TEST_CONNECTION_CONNECTOR_SANITY_OPERATION
Method Detail |
---|
ObjectType getObject(java.lang.String oid, PropertyReferenceListType resolve, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
oid
- OID of the object to getresolve
- list of properties to resolve in the fetched objectresult
- parent OperationResult (in/out)
ObjectNotFoundException
- requested object does not exist
CommunicationException
- error communicating with the resource
SchemaException
- error dealing with resource schema
java.lang.IllegalArgumentException
- wrong OID format, etc.
GenericConnectorException
- unknown connector framework errorjava.lang.String addObject(ObjectType object, ScriptsType scripts, OperationResult parentResult) throws ObjectAlreadyExistsException, SchemaException, CommunicationException, ObjectNotFoundException
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 found
java.lang.IllegalArgumentException
- wrong OID format, etc.
GenericConnectorException
- unknown connector framework errorint synchronize(java.lang.String resourceOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
oid
- OID of the resource for which to attempt synchronizationparentResult
- parent OperationResult (in/out)
ObjectNotFoundException
- specified resource definition (OID) does not exist
CommunicationException
- error communicating with the resource
SchemaException
- error dealing with resource schema
GenericConnectorException
- unknown connector framework errorObjectListType listObjects(java.lang.Class<? extends ObjectType> objectType, PagingType paging, OperationResult parentResult)
objectType
- paging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)
java.lang.IllegalArgumentException
- wrong object type
GenericConnectorException
- unknown connector framework errorObjectListType searchObjects(QueryType query, PagingType paging, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException
query
- search querypaging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)
java.lang.IllegalArgumentException
- wrong object type
GenericConnectorException
- unknown connector framework error
SchemaException
- unknown property used in search query
ObjectNotFoundException
CommunicationException
void searchObjectsIterative(QueryType query, PagingType paging, ResultHandler handler, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException
query
- search querypaging
- paging specification to limit operation result (optional)parentResult
- parent OperationResult (in/out)handler
- result handler
java.lang.IllegalArgumentException
- wrong object type
GenericConnectorException
- unknown connector framework error
SchemaException
- unknown property used in search query
ObjectNotFoundException
- appropriate connector object was not found
CommunicationException
void modifyObject(ObjectModificationType objectChange, ScriptsType scripts, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException
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
java.lang.IllegalArgumentException
- wrong OID format, described change is not applicable
GenericConnectorException
- unknown connector framework error
CommunicationException
void deleteObject(java.lang.String oid, ScriptsType scripts, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException
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
java.lang.IllegalArgumentException
- wrong OID format, described change is not applicable
GenericConnectorException
- unknown connector framework error
CommunicationException
SchemaException
PropertyAvailableValuesListType getPropertyAvailableValues(java.lang.String oid, PropertyReferenceListType properties, OperationResult parentResult) throws ObjectNotFoundException
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 exist
java.lang.IllegalArgumentException
- wrong OID format
GenericConnectorException
- unknown connector framework errorOperationResult testResource(java.lang.String resourceOid) throws ObjectNotFoundException
resourceOid
- OID of resource to test
ObjectNotFoundException
- specified object does not exist
java.lang.IllegalArgumentException
- wrong OID format
GenericConnectorException
- unknown connector framework errorObjectListType listResourceObjects(java.lang.String resourceOid, javax.xml.namespace.QName objectType, PagingType paging, OperationResult parentResult)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |