use of com.zimbra.soap.account.message.GrantRightsRequest in project zm-mailbox by Zimbra.
the class TestCheckRights method grantRight.
private void grantRight(Account target, GranteeType granteeType, NamedEntry grantee, String right) throws Exception {
SoapTransport transport = authUser(target.getName());
GrantRightsRequest req = new GrantRightsRequest();
AccountACEInfo ace = new AccountACEInfo(granteeType, right);
ace.setZimbraId(grantee.getId());
req.addAce(ace);
GrantRightsResponse resp = invokeJaxb(transport, req);
}
Aggregations