On 16/03/20 21:56, roccom wrote:
> I have a custom pull action groovy script running when I run my pull action.
> My understanding is that the search script fires and builds a conn object
> with the attributes I have mapped. Next the custom pull action fires. I can
> see this in core.log with lots of logging statements I have in beforeUpdate
> function. However at this point none of the parameters passed in seem to
> have the attributes on them from the search script step.
>
> [...]
>
> Here is my beforeUpdate method. The important parts are just the logging and
> trying to find the attributes from the above object, specifically the
> CLRoles attribute. From the parameters how can I access the above attributes
> or should I be looking in a different function all together?
>
> @Transactional(readOnly = true)
> @Override
> public <P extends AnyPatch> void beforeUpdate(
> org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile
> profile,
> org.identityconnectors.framework.common.objects.SyncDelta delta,
> EntityTO entity,
> P anyPatch) throws JobExecutionException {
You'll find everything in the "delta" object, namely:
* delta.getUid()
* delta.getObject().getName()
* delta.getObject().getAttributes()
Javadoc:
http://connid.tirasa.net/apidocs/1.5/org/identityconnectors/framework/common/objects/SyncDelta.html
HTH
Regards.
> [...]
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/