Interface MappingManager
-
- All Known Implementing Classes:
DefaultMappingManager
public interface MappingManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
getConnObjectKeyValue(Any<?> any, ExternalResource resource, Provision provision)
Get connObjectKey internal value.Optional<String>
getConnObjectKeyValue(Realm realm, OrgUnit orgUnit)
Get connObjectKey internal value.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.boolean
hasMustChangePassword(Provision provision)
Checks if there is a mapping item in the givenProvision
formustChangePassword
.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.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.Set<Attribute>
prepareAttrsFromLinkedAccount(User user, LinkedAccount account, String password, boolean changePwd, Provision provision)
Prepare attributes for sending to a connector instance.Pair<String,Set<Attribute>>
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 Detail
-
getConnObjectKeyValue
Optional<String> getConnObjectKeyValue(Any<?> any, ExternalResource resource, Provision provision)
Get connObjectKey internal value.- Parameters:
any
- any objectresource
- resource informationprovision
- provision information- Returns:
- connObjectKey internal value
-
getConnObjectKeyValue
Optional<String> getConnObjectKeyValue(Realm realm, OrgUnit orgUnit)
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
Pair<String,Set<Attribute>> prepareAttrsFromRealm(Realm realm, OrgUnit orgUnit)
Prepare attributes for sending to a connector instance.- Parameters:
realm
- RealmorgUnit
- provision information- Returns:
- connObjectLink + prepared attributes
-
setIntValues
<T extends AnyTO> void setIntValues(Item mapItem, Attribute attr, T anyTO)
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
void setIntValues(Item orgUnitItem, Attribute attr, RealmTO realmTO)
Set attribute values, according to the givenItem
, to realm from attribute received from connector.- Parameters:
orgUnitItem
- mapping itemattr
- attribute received from connectorrealmTO
- realm
-
-