Package org.openiam.idm.processor.groovy
Class AbstractMembershipGenerator<X extends MembershipXref,O extends ProvisionObject>
- java.lang.Object
-
- org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy<ProvisionUserObjectDiff>
-
- org.openiam.idm.processor.groovy.AbstractMembershipGenerator<X,O>
-
- All Implemented Interfaces:
ObjectTransformer<O>
- Direct Known Subclasses:
AbstractGroupMembershipGenerator,AbstractOrganizationMembershipGenerator,AbstractResourceMembershipGenerator,AbstractRoleMembershipGenerator
public abstract class AbstractMembershipGenerator<X extends MembershipXref,O extends ProvisionObject> extends AbstractIPolicyMapGroovy<ProvisionUserObjectDiff> implements ObjectTransformer<O>
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupRabbitMQServicegroupRabbitMQServiceprotected org.apache.commons.logging.Loglogprotected OrganizationRabbitMQServiceorganizationRabbitMQServiceprotected ResourceRabbitMQServiceresourceRabbitMQServiceprotected RoleRabbitMQServiceroleRabbitMQServiceprotected UserRabbitMQServiceuserRabbitMQService-
Fields inherited from class org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy
counterQueue, ctx, identityQueue, loginQueue, managedSysId, mapper, propertyValueService, rabbitMQSender, userServiceQueue
-
-
Constructor Summary
Constructors Constructor Description AbstractMembershipGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <T extends AbstractAttributeDTO>
TgetAttributeByName(Set<T> attributes, String name)Use this method to get Attribute by Nameprotected abstract Set<MembershipDiff<X>>getMembershipSetDiff(ProvisionUserObjectDiff diffObject)protected abstract OgetObject(@NotNull String id)booleanisPerform(ProvisionUserObjectDiff diffObject)voidperform(ConnectorAttribute attribute, ProvisionUserObjectDiff diffObject)protected Consumer<MembershipDiff<X>>valueConsumer(ConnectorAttribute attribute)-
Methods inherited from class org.openiam.api.connector.groovy.AbstractIPolicyMapGroovy
getActualValue, init
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openiam.idm.processor.groovy.ObjectTransformer
isValid, transform
-
-
-
-
Field Detail
-
log
protected final org.apache.commons.logging.Log log
-
userRabbitMQService
@Autowired protected UserRabbitMQService userRabbitMQService
-
groupRabbitMQService
@Autowired protected GroupRabbitMQService groupRabbitMQService
-
roleRabbitMQService
@Autowired protected RoleRabbitMQService roleRabbitMQService
-
organizationRabbitMQService
@Autowired protected OrganizationRabbitMQService organizationRabbitMQService
-
resourceRabbitMQService
@Autowired protected ResourceRabbitMQService resourceRabbitMQService
-
-
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
-
getMembershipSetDiff
protected abstract Set<MembershipDiff<X>> getMembershipSetDiff(ProvisionUserObjectDiff diffObject)
-
valueConsumer
protected Consumer<MembershipDiff<X>> valueConsumer(ConnectorAttribute attribute)
-
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
-
getAttributeByName
protected <T extends AbstractAttributeDTO> T getAttributeByName(Set<T> attributes, String name)
Use this method to get Attribute by Name- Type Parameters:
T-- Parameters:
attributes-name-
-
-