Class BaseUsersAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
java.lang.Object
com.exclamationlabs.connid.base.connector.adapter.BaseAdapter<U,G>
com.exclamationlabs.connid.base.connector.adapter.BaseUsersAdapter<U,G>
public abstract class BaseUsersAdapter<U extends UserIdentityModel,G extends GroupIdentityModel> extends BaseAdapter<U,G>
Base users adapter that needs to be subclassed in order to map a specific user model
data type to ConnId attributes and vice versa. This extends BaseAdapter
so that the Adapter has composition and can reference the driver.
-
Constructor Summary
Constructors Constructor Description BaseUsersAdapter()
-
Method Summary
Modifier and Type Method Description protected abstract org.identityconnectors.framework.common.objects.ConnectorObject
constructConnectorObject(U modelType)
protected abstract U
constructUser(Set<org.identityconnectors.framework.common.objects.Attribute> attributes, boolean creation)
org.identityconnectors.framework.common.objects.Uid
create(Set<org.identityconnectors.framework.common.objects.Attribute> attributes)
Service a request from IAM system to create the type on the destination system.void
delete(org.identityconnectors.framework.common.objects.Uid uid)
Service a request from IAM system to delete the type on the destination system.void
get(String query, org.identityconnectors.framework.common.objects.ResultsHandler resultsHandler)
Service a request from IAM to get one, some, or all items of a data type from the destination system.protected org.identityconnectors.framework.common.objects.ObjectClass
getType()
protected boolean
groupAdditionControlledByUpdate()
org.identityconnectors.framework.common.objects.Uid
update(org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> attributes)
Service a request from IAM system to update the type on the destination system.Methods inherited from class com.exclamationlabs.connid.base.connector.adapter.BaseAdapter
getConnectorObjectBuilder, getDriver, queryAllRecords, setDriver
-
Constructor Details
-
BaseUsersAdapter
public BaseUsersAdapter()
-
-
Method Details
-
getType
protected org.identityconnectors.framework.common.objects.ObjectClass getType()- Specified by:
getType
in classBaseAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
-
constructUser
-
constructConnectorObject
protected abstract org.identityconnectors.framework.common.objects.ConnectorObject constructConnectorObject(U modelType) -
create
public org.identityconnectors.framework.common.objects.Uid create(Set<org.identityconnectors.framework.common.objects.Attribute> attributes)Description copied from class:BaseAdapter
Service a request from IAM system to create the type on the destination system.- Specified by:
create
in classBaseAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
- Parameters:
attributes
- Attributes from IAM system that map to data elements needed by the destination system for type creation.- Returns:
- new unique identifier for newly created type
-
update
public org.identityconnectors.framework.common.objects.Uid update(org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> attributes)Description copied from class:BaseAdapter
Service a request from IAM system to update the type on the destination system.- Specified by:
update
in classBaseAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
- Parameters:
uid
- Unique identifier for the data item being updated.attributes
- Attributes from IAM system that map to data elements supported by the destination system to update the type.- Returns:
- unique identifier applicable to the type that was just updated
-
delete
public void delete(org.identityconnectors.framework.common.objects.Uid uid)Description copied from class:BaseAdapter
Service a request from IAM system to delete the type on the destination system.- Specified by:
delete
in classBaseAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
- Parameters:
uid
- Unique identifier for the data item to be deleted.
-
get
public void get(String query, org.identityconnectors.framework.common.objects.ResultsHandler resultsHandler)Description copied from class:BaseAdapter
Service a request from IAM to get one, some, or all items of a data type from the destination system.- Specified by:
get
in classBaseAdapter<U extends UserIdentityModel,G extends GroupIdentityModel>
- Parameters:
query
- Query string to help identify which item(s) need to be retrieved.resultsHandler
- ConnId ResultsHandler object used to send result data back to IAM system.
-
groupAdditionControlledByUpdate
protected boolean groupAdditionControlledByUpdate()
-