Package org.openiam.api.connector.groovy
Class AbstractPrincipalGenerator
- java.lang.Object
-
- org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
-
- org.openiam.api.connector.groovy.AbstractPrincipalGenerator
-
- Direct Known Subclasses:
AbstractUserPrincipalGenerator
public abstract class AbstractPrincipalGenerator extends AbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
Designed to be extended by custom groovy scripts that generate a Login- Author:
- lbornova
-
-
Field Summary
-
Fields inherited from class org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy
counterQueue, ctx, identityQueue, loginQueue, managedSysId, mapper, propertyValueService, rabbitMQSender, userServiceQueue
-
-
Constructor Summary
Constructors Constructor Description AbstractPrincipalGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
count(String login)
void
getActualValue(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject)
protected String
getManageSystemId()
boolean
isPerform(ProvisionUserObjectDiff diffObject)
protected boolean
loginExistsV4211(String login)
Another name to keep the backcompatibility with existed Groovy scripts.void
perform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject)
void
perform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject, String splitString)
-
Methods inherited from class org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy
init
-
-
-
-
Method Detail
-
isPerform
public boolean isPerform(ProvisionUserObjectDiff diffObject)
- Specified by:
isPerform
in classAbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
- Returns:
- should return a result of isModified() method for all fields that will be used in this groovy. For example for displayName we use
-
getManageSystemId
protected String getManageSystemId()
-
perform
public void perform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject) throws BasicDataServiceException
- Specified by:
perform
in classAbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
- Parameters:
attribute
- - target connector attribute object. will be passed to groovy scriptdiffObject
- - Diff Object.- Throws:
BasicDataServiceException
-
perform
public void perform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject, String splitString) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getActualValue
public void getActualValue(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject) throws BasicDataServiceException
- Overrides:
getActualValue
in classAbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
- Throws:
BasicDataServiceException
-
count
protected long count(String login)
-
loginExistsV4211
protected boolean loginExistsV4211(String login) throws BasicDataServiceException
Another name to keep the backcompatibility with existed Groovy scripts. Method is the same as loginExists from previous versions, but now it's protected and can be used in groovy. The current groovies contains "private loginExists"- Parameters:
login
-- Returns:
- Throws:
BasicDataServiceException
-
-