Dynamic Property Plugin

Dear all,

I am writing a dynamic property plugin and want to get the registrator of the object.
How can I do this?

Best regards,
Julia

You could try using the entityPE() on the entity to get the underlying java object. This object isn’t documented, just briefly mentioned in the dynamic property plugin documentation

1 Like

This code should do:

registrator = entity.entityPE().getRegistrator()
registrator.getFirstName()
registrator.getLastName()
registrator.getEmail()
registrator.getUserId()

The person class documentation is https://openbis.ch/javadoc/20.10.x/javadoc-query-api/ch/systemsx/cisd/openbis/generic/shared/basic/dto/Person.html. For me, using entityPE() is a little bit confusing. Some of the normal classes work, some not. But this should do for you.

2 Likes

Thank you so much, that did the job :slight_smile:

I tried entityPE( ) but didn´t get how to use it correctly apparently.

1 Like

Indeed I wish the dynamic property plugin would just use the V3 API methods and objects instead, it would make it more consistent to use

2 Likes