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, OrgUnit orgUnit) Get connObjectKey internal value.getIntValues
(ExternalResource resource, Provision provision, Item mapItem, 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, 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, OrgUnit orgUnit) Prepare attributes for sending to a connector instance.void
setIntValues
(Item orgUnitItem, Attribute attr, RealmTO realmTO) Set attribute values, according to the givenItem
, to realm from attribute received from connector.<T extends AnyTO>
voidsetIntValues
(Item mapItem, 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
- realmorgUnit
- orgUnit information- Returns:
- connObjectKey internal value
-
getIntValues
Pair<AttrSchemaType,List<PlainAttrValue>> getIntValues(ExternalResource resource, Provision provision, Item mapItem, IntAttrName intAttrName, AttrSchemaType schemaType, Any any, AccountGetter usernameAccountGetter, PlainAttrGetter plainAttrGetter) Get attribute values for the givenItem
and any object.- Parameters:
resource
- resource informationprovision
- provision informationmapItem
- 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
-
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
-
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
- RealmorgUnit
- provision 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:
mapItem
- mapping itemattr
- attribute received from connectoranyTO
- any object
-
setIntValues
Set attribute values, according to the givenItem
, to realm from attribute received from connector.- Parameters:
orgUnitItem
- 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
-