Class ConnObjectUtils
java.lang.Object
org.apache.syncope.core.provisioning.java.utils.ConnObjectUtils
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnyUtilsFactory
protected static final Encryptor
protected static final Logger
protected final MappingManager
protected final PasswordGenerator
protected final RealmSearchDAO
protected final ExternalResourceDAO
protected final TemplateUtils
protected final UserDAO
-
Constructor Summary
ConstructorDescriptionConnObjectUtils
(TemplateUtils templateUtils, RealmSearchDAO realmSearchDAO, UserDAO userDAO, ExternalResourceDAO resourceDAO, PasswordGenerator passwordGenerator, MappingManager mappingManager, AnyUtilsFactory anyUtilsFactory) -
Method Summary
Modifier and TypeMethodDescription<C extends AnyCR>
CgetAnyCR
(ConnectorObject obj, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision, boolean generatePassword) Build a UserCR / GroupCR / AnyObjectCR out of connector object attributes and schema mapping.protected <T extends AnyTO>
TgetAnyTOFromConnObject
(ConnectorObject obj, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision) <U extends AnyUR>
UgetAnyUR
(String key, ConnectorObject obj, AnyTO original, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision) BuildAnyUR
out of connector object attributes and schema mapping.static ConnObject
getConnObjectTO
(String fiql, Set<Attribute> attrs) BuildsConnObject
out of a collection ofAttribute
instances.static String
getPassword
(Object pwd) Extract password value from passed value (if instance of GuardedString or GuardedByteArray).getRealmTO
(ConnectorObject obj, OrgUnit orgUnit) static String
static SyncToken
toSyncToken
(String syncToken)
-
Field Details
-
LOG
-
ENCRYPTOR
-
templateUtils
-
realmSearchDAO
-
userDAO
-
resourceDAO
-
passwordGenerator
-
mappingManager
-
anyUtilsFactory
-
-
Constructor Details
-
ConnObjectUtils
public ConnObjectUtils(TemplateUtils templateUtils, RealmSearchDAO realmSearchDAO, UserDAO userDAO, ExternalResourceDAO resourceDAO, PasswordGenerator passwordGenerator, MappingManager mappingManager, AnyUtilsFactory anyUtilsFactory)
-
-
Method Details
-
toSyncToken
-
toString
-
getPassword
Extract password value from passed value (if instance of GuardedString or GuardedByteArray).- Parameters:
pwd
- received from the underlying connector- Returns:
- password value
-
getConnObjectTO
BuildsConnObject
out of a collection ofAttribute
instances.- Parameters:
fiql
- FIQL expression to uniquely identify the given Connector Objectattrs
- attributes- Returns:
- transfer object
-
getAnyCR
@Transactional(readOnly=true) public <C extends AnyCR> C getAnyCR(ConnectorObject obj, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision, boolean generatePassword) Build a UserCR / GroupCR / AnyObjectCR out of connector object attributes and schema mapping.- Type Parameters:
C
- create request type- Parameters:
obj
- connector objectinboundTask
- inbound taskanyTypeKind
- any type kindprovision
- provision informationgeneratePassword
- whether password value shall be generated, in case not found from connector object- Returns:
- create request
-
getRealmTO
-
getAnyUR
@Transactional(readOnly=true) public <U extends AnyUR> U getAnyUR(String key, ConnectorObject obj, AnyTO original, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision) BuildAnyUR
out of connector object attributes and schema mapping.- Type Parameters:
U
- any object- Parameters:
key
- any object to be updatedobj
- connector objectoriginal
- any object to get diff frominboundTask
- inbound taskanyTypeKind
- any type kindprovision
- provision information- Returns:
- modifications for the any object to be updated
-
getAnyTOFromConnObject
protected <T extends AnyTO> T getAnyTOFromConnObject(ConnectorObject obj, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision)
-