@Component public class MappingManagerImpl extends Object implements MappingManager
Constructor and Description |
---|
MappingManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
decodePassword(Account account) |
Optional<String> |
getConnObjectKeyValue(Any<?> any,
Provision provision)
Get connObjectKey internal value.
|
Optional<String> |
getConnObjectKeyValue(Realm realm,
OrgUnit orgUnit)
Get connObjectKey internal value.
|
Pair<AttrSchemaType,List<PlainAttrValue>> |
getIntValues(Provision provision,
Item mapItem,
IntAttrName intAttrName,
AttrSchemaType schemaType,
Any<?> any,
AccountGetter usernameAccountGetter,
PlainAttrGetter plainAttrGetter)
Get attribute values for the given
Item and any object. |
protected String |
getPasswordAttrValue(Provision provision,
Account account,
String defaultValue) |
boolean |
hasMustChangePassword(Provision provision)
Checks if there is a mapping item in the given
Provision for mustChangePassword . |
Pair<String,Attribute> |
prepareAttr(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,
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.
|
protected String |
processPreparedAttr(Pair<String,Attribute> preparedAttr,
Set<Attribute> attributes) |
void |
setIntValues(Item mapItem,
Attribute attr,
AnyTO anyTO)
Set attribute values, according to the given
Item , to any object from attribute received from
connector. |
void |
setIntValues(Item orgUnitItem,
Attribute attr,
RealmTO realmTO)
Set attribute values, according to the given
Item , to realm from attribute received from
connector. |
protected String processPreparedAttr(Pair<String,Attribute> preparedAttr, Set<Attribute> attributes)
@Transactional(readOnly=true) public Pair<String,Set<Attribute>> prepareAttrsFromAny(Any<?> any, String password, boolean changePwd, Boolean enable, Provision provision)
MappingManager
prepareAttrsFromAny
in interface MappingManager
any
- given any objectpassword
- clear-text passwordchangePwd
- whether password should be included for propagation attributes or notenable
- whether any object must be enabled or notprovision
- provision information@Transactional(readOnly=true) public Set<Attribute> prepareAttrsFromLinkedAccount(User user, LinkedAccount account, String password, boolean changePwd, Provision provision)
MappingManager
prepareAttrsFromLinkedAccount
in interface MappingManager
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 informationpublic Pair<String,Set<Attribute>> prepareAttrsFromRealm(Realm realm, OrgUnit orgUnit)
MappingManager
prepareAttrsFromRealm
in interface MappingManager
realm
- RealmorgUnit
- provision informationprotected String getPasswordAttrValue(Provision provision, Account account, String defaultValue)
public Pair<String,Attribute> prepareAttr(Provision provision, Item item, Any<?> any, String password, AccountGetter usernameAccountGetter, AccountGetter passwordAccountGetter, PlainAttrGetter plainAttrGetter)
MappingManager
prepareAttr
in interface MappingManager
provision
- 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@Transactional(readOnly=true) public Pair<AttrSchemaType,List<PlainAttrValue>> getIntValues(Provision provision, Item mapItem, IntAttrName intAttrName, AttrSchemaType schemaType, Any<?> any, AccountGetter usernameAccountGetter, PlainAttrGetter plainAttrGetter)
MappingManager
Item
and any object.getIntValues
in interface MappingManager
provision
- provision informationmapItem
- mapping itemintAttrName
- int attr nameschemaType
- schema typeany
- any objectusernameAccountGetter
- function to get actual account instance for usernameplainAttrGetter
- function to get PlainAttr instances@Transactional(readOnly=true) public Optional<String> getConnObjectKeyValue(Any<?> any, Provision provision)
MappingManager
getConnObjectKeyValue
in interface MappingManager
any
- any objectprovision
- provision information@Transactional(readOnly=true) public Optional<String> getConnObjectKeyValue(Realm realm, OrgUnit orgUnit)
MappingManager
getConnObjectKeyValue
in interface MappingManager
realm
- realmorgUnit
- orgUnit information@Transactional(readOnly=true) public void setIntValues(Item mapItem, Attribute attr, AnyTO anyTO)
MappingManager
Item
, to any object from attribute received from
connector.setIntValues
in interface MappingManager
mapItem
- mapping itemattr
- attribute received from connectoranyTO
- any objectpublic void setIntValues(Item orgUnitItem, Attribute attr, RealmTO realmTO)
MappingManager
Item
, to realm from attribute received from
connector.setIntValues
in interface MappingManager
orgUnitItem
- mapping itemattr
- attribute received from connectorrealmTO
- realm@Transactional(readOnly=true) public boolean hasMustChangePassword(Provision provision)
MappingManager
Provision
for mustChangePassword
.hasMustChangePassword
in interface MappingManager
provision
- provisionmustChangePassword
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.