Interface MappingManager
- All Known Implementing Classes:
DefaultMappingManager
public interface MappingManager
-
Method Summary
Modifier and TypeMethodDescriptiongetConnObjectKeyValue
(Any any, ExternalResource resource, Provision provision) Get connObjectKey internal value.getConnObjectKeyValue
(Realm realm, ExternalResource resource) Get connObjectKey internal value.getIntValues
(ExternalResource resource, Item item, IntAttrName intAttrName, AttrSchemaType schemaType, Realm realm) Get attribute values for the givenItem
and realm.getIntValues
(ExternalResource resource, Provision provision, Item item, IntAttrName intAttrName, AttrSchemaType schemaType, Any any, AccountGetter usernameAccountGetter, PlainAttrGetter plainAttrGetter) Get attribute values for the givenItem
and any object.boolean
hasMustChangePassword
(Provision provision) Checks if there is a mapping item in the givenProvision
formustChangePassword
.prepareAttr
(ExternalResource resource, Item item, Realm realm) Prepare attribute for sending to a connector instance.prepareAttr
(ExternalResource resource, Provision provision, Item item, Any any, String password, AccountGetter usernameAccountGetter, AccountGetter passwordAccountGetter, PlainAttrGetter plainAttrGetter) Prepare attribute for sending to a connector instance.prepareAttrsFromAny
(Any any, String password, boolean changePwd, Boolean enable, ExternalResource resource, Provision provision) Prepare attributes for sending to a connector instance.prepareAttrsFromLinkedAccount
(User user, LinkedAccount account, String password, boolean changePwd, Provision provision) Prepare attributes for sending to a connector instance.prepareAttrsFromRealm
(Realm realm, ExternalResource resource) Prepare attributes for sending to a connector instance.void
setIntValues
(Item item, Attribute attr, RealmTO realmTO) Set attribute values, according to the givenItem
, to realm from attribute received from connector.<T extends AnyTO>
voidsetIntValues
(Item item, Attribute attr, T anyTO) Set attribute values, according to the givenItem
, to any object from attribute received from connector.
-
Method Details
-
getConnObjectKeyValue
Get connObjectKey internal value.- Parameters:
any
- any objectresource
- resource informationprovision
- provision information- Returns:
- connObjectKey internal value
-
getConnObjectKeyValue
Get connObjectKey internal value.- Parameters:
realm
- realmresource
- resource information- Returns:
- connObjectKey internal value
-
getIntValues
Pair<AttrSchemaType,List<PlainAttrValue>> getIntValues(ExternalResource resource, Provision provision, Item item, IntAttrName intAttrName, AttrSchemaType schemaType, Any any, AccountGetter usernameAccountGetter, PlainAttrGetter plainAttrGetter) Get attribute values for the givenItem
and any object.- Parameters:
resource
- resource informationprovision
- provision informationitem
- mapping itemintAttrName
- int attr nameschemaType
- schema typeany
- any objectusernameAccountGetter
- function to get actual account instance for usernameplainAttrGetter
- function to get PlainAttr instances- Returns:
- attribute values and their type
-
getIntValues
Pair<AttrSchemaType,List<PlainAttrValue>> getIntValues(ExternalResource resource, Item item, IntAttrName intAttrName, AttrSchemaType schemaType, Realm realm) Get attribute values for the givenItem
and realm.- Parameters:
resource
- resource informationitem
- mapping itemintAttrName
- int attr nameschemaType
- schema typerealm
- realm- Returns:
- attribute values and their type
-
prepareAttr
Pair<String,Attribute> prepareAttr(ExternalResource resource, Provision provision, Item item, Any any, String password, AccountGetter usernameAccountGetter, AccountGetter passwordAccountGetter, PlainAttrGetter plainAttrGetter) Prepare attribute for sending to a connector instance.- Parameters:
resource
- resource informationprovision
- provision informationitem
- mapping itemany
- given any objectpassword
- clear-text passwordusernameAccountGetter
- function to get actual account instance for usernamepasswordAccountGetter
- function to get actual account instance for passwordplainAttrGetter
- function to get PlainAttr instances- Returns:
- connObjectLink (if it is the case) + prepared attribute
-
prepareAttr
Prepare attribute for sending to a connector instance.- Parameters:
resource
- resource informationitem
- mapping itemrealm
- given realm- Returns:
- connObjectLink (if it is the case) + prepared attribute
-
prepareAttrsFromAny
Pair<String,Set<Attribute>> prepareAttrsFromAny(Any any, String password, boolean changePwd, Boolean enable, ExternalResource resource, Provision provision) Prepare attributes for sending to a connector instance.- Parameters:
any
- given any objectpassword
- clear-text passwordchangePwd
- whether password should be included for propagation attributes or notenable
- whether any object must be enabled or notresource
- resource informationprovision
- provision information- Returns:
- connObjectLink + prepared attributes
-
prepareAttrsFromLinkedAccount
Set<Attribute> prepareAttrsFromLinkedAccount(User user, LinkedAccount account, String password, boolean changePwd, Provision provision) Prepare attributes for sending to a connector instance.- Parameters:
user
- given useraccount
- linked accountpassword
- user's clear-text password, to use as default value in casechangePwd
- whether password should be included for propagation attributes or notprovision
- provision information- Returns:
- prepared attributes
-
prepareAttrsFromRealm
Prepare attributes for sending to a connector instance.- Parameters:
realm
- Realmresource
- resource information- Returns:
- connObjectLink + prepared attributes
-
setIntValues
Set attribute values, according to the givenItem
, to any object from attribute received from connector.- Type Parameters:
T
- any object- Parameters:
item
- mapping itemattr
- attribute received from connectoranyTO
- any object
-
setIntValues
Set attribute values, according to the givenItem
, to realm from attribute received from connector.- Parameters:
item
- mapping itemattr
- attribute received from connectorrealmTO
- realm
-
hasMustChangePassword
Checks if there is a mapping item in the givenProvision
formustChangePassword
.- Parameters:
provision
- provision- Returns:
- if there is a mapping item in the given provision for
mustChangePassword
-