Hello,
I'm trying to implement functions to check the permissions of a group or a user (first param) on a specific folder or document (second param) but i'm stuck with the UserOrGroupDataType coming as a string.
How could i make the distinction between the two kinds of objects inside the java code of the plugin ?
Regards
David
Discussion posts and replies are publicly visible
Where TypedValue userorGroup is an incoming parameter for the custom function
@Function public Boolean hasAdminRightOnDocument(ContentService _cs, UserService us, GroupService gs, @Parameter(required = true) @DocumentDataType @Name("document_to_check") Long documentId, @Parameter(required = false) @UserOrGroupDataType @Name("user_or_group") TypedValue userorGroup