@Component public class ConnObjectUtils extends Object
Constructor and Description |
---|
ConnObjectUtils() |
Modifier and Type | Method and Description |
---|---|
<T extends AnyPatch> |
getAnyPatch(String key,
ConnectorObject obj,
AnyTO original,
PullTask pullTask,
Provision provision)
Build
AnyPatch out of connector object attributes and schema mapping. |
<T extends AnyTO> |
getAnyTO(ConnectorObject obj,
PullTask pullTask,
Provision provision,
boolean generatePasswordIfPossible)
Build a UserTO / GroupTO / AnyObjectTO out of connector object attributes and schema mapping.
|
static ConnObjectTO |
getConnObjectTO(String fiql,
Set<Attribute> attrs)
Builds
ConnObjectTO out of a collection of Attribute instances. |
static String |
getPassword(Object pwd)
Extract password value from passed value (if instance of GuardedString or GuardedByteArray).
|
RealmTO |
getRealmTO(ConnectorObject obj,
PullTask task,
OrgUnit orgUnit) |
public static String getPassword(Object pwd)
pwd
- received from the underlying connectorpublic static ConnObjectTO getConnObjectTO(String fiql, Set<Attribute> attrs)
ConnObjectTO
out of a collection of Attribute
instances.fiql
- FIQL expression to uniquely identify the given Connector Objectattrs
- attributes@Transactional(readOnly=true) public <T extends AnyTO> T getAnyTO(ConnectorObject obj, PullTask pullTask, Provision provision, boolean generatePasswordIfPossible)
T
- any objectobj
- connector objectpullTask
- pull taskprovision
- provision informationgeneratePasswordIfPossible
- whether password value shall be generated, in case not found from
connector object and allowed by resource configurationpublic RealmTO getRealmTO(ConnectorObject obj, PullTask task, OrgUnit orgUnit)
@Transactional(readOnly=true) public <T extends AnyPatch> T getAnyPatch(String key, ConnectorObject obj, AnyTO original, PullTask pullTask, Provision provision)
AnyPatch
out of connector object attributes and schema mapping.T
- any objectkey
- any object to be updatedobj
- connector objectoriginal
- any object to get diff frompullTask
- pull taskprovision
- provision informationCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.