Can anyone tell me what are the argument types and what should I pass to Add method in DMSAccessRightsCollection?
I generated java code from gwcmb1.dll and got method specification:
DIADDMSAccessRights Add(int BitMask,Variant Object,Variant Parameter3,Variant Parameter4,Variant Parameter5)
(where Variant is something like Object) and I really don't know how to invoke this method.

Any help from people who get through this?

In doc I found:
DMSAccessRights Add( Long RightsBitMask, String Member, Enum(
eadObjUser ) MemberType, [String PO], [String Dom] )

which seems to be the nearest from all but don't know what should be the value of Member and MemberType parameter.