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 longcount(String login)voidgetActualValue(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject)protected StringgetManageSystemId()booleanisPerform(ProvisionUserObjectDiff diffObject)protected booleanloginExistsV4211(String login)Another name to keep the backcompatibility with existed Groovy scripts.voidperform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject)voidperform(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:
isPerformin 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:
performin 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:
getActualValuein 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
-
-