|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a provider to communicate with a remote resource.
Communication with adapter based provisioning will implement this and proxy to adapter code using one of the supported protocol modules. These include DAML, FTP and DSMLv2 (used by ITDI).
Alternatively, agentless communication with a remote resource may be done by implementing this interface with a class that can communicate directly with that resource.
Classes implementing this interface will be called by the TIM framework in a TIM installation when an account action for add, modify, delete, suspend, restore, changePassword, search, or test are triggered. Implementations may be thought of as adaptor classes adapting the native data representation into something that can be understood by TIM. For example, data from sources such as LDAP directories, databases, XML files, etc should be translated to the types understood by TIM.
The ServiceProvider implementation should be instantiated by a ServiceProviderFactory. The ServiceProviderFactory to use will be found from the service type resource definition.
ServiceProviderFactory
Method Summary | |
---|---|
RequestStatus |
add(java.lang.String objectClass,
AttributeValues attributeValues,
java.lang.String requestID)
Adds an entity to the remote resource with the given attributes |
RequestStatus |
changePassword(java.lang.String entityDN,
byte[] newPassword,
java.lang.String requestID)
Change password for an entity on the remote resource. |
RequestStatus |
delete(java.lang.String entityDN,
java.lang.String requestID)
Delete an entity on the remote resource. |
ServiceProviderInformation |
getServiceProviderInfo()
Gets the ServiceProviderInfo for this type of ServiceProvider |
RequestStatus |
modify(java.lang.String entityDN,
AttributeChanges attributeChanges,
java.lang.String requestID)
Modify an entity on the remote resource with the given attributes. |
RequestStatus |
restore(java.lang.String entityDN,
byte[] newPassword,
java.lang.String requestID)
Restore an entity on the remote resource. |
SearchResults |
search(SearchCriteria searchCriteria,
java.lang.String requestID)
Search and return a collection of entities on the remote resource. |
RequestStatus |
suspend(java.lang.String entityDN,
java.lang.String requestID)
Suspend an entity on the remote resource. |
boolean |
test()
Test a connection to the remote resource |
Method Detail |
public RequestStatus add(java.lang.String objectClass, AttributeValues attributeValues, java.lang.String requestID)
attributeValues
- The attribute values to be added with the entity.objectClass
- The class of object to addrequestID
- The id of the request
public RequestStatus changePassword(java.lang.String entityDN, byte[] newPassword, java.lang.String requestID)
entityDN
- The identity of the entity in the local data storenewPassword
- The new passwordrequestID
- The id of the request
public RequestStatus delete(java.lang.String entityDN, java.lang.String requestID)
entityDN
- The identity of the entity in the local data storerequestID
- The id of the request
public ServiceProviderInformation getServiceProviderInfo()
public RequestStatus modify(java.lang.String entityDN, AttributeChanges attributeChanges, java.lang.String requestID)
entityDN
- The identity of the entity in the local data storeattributeChanges
- The attribute values and operations to be changedrequestID
- The id of the request
public RequestStatus suspend(java.lang.String entityDN, java.lang.String requestID)
entityDN
- The identity of the entity in the local data storerequestID
- The id of the request
public RequestStatus restore(java.lang.String entityDN, byte[] newPassword, java.lang.String requestID)
entityDN
- The identity of the entity in the local data storenewPassword
- The password given to the restored entityrequestID
- The id of the request
public SearchResults search(SearchCriteria searchCriteria, java.lang.String requestID)
searchCriteria
- entities returned should matching this criteriarequestID
- The id of the request
public boolean test() throws RemoteServicesException
RemoteServicesException
- If there was a problem communicating with the resource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |