Search in sources :

Example 1 with GrantRightsRequest

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);
}
Also used : AccountACEInfo(com.zimbra.soap.account.type.AccountACEInfo) GrantRightsRequest(com.zimbra.soap.account.message.GrantRightsRequest) GrantRightsResponse(com.zimbra.soap.account.message.GrantRightsResponse) SoapTransport(com.zimbra.common.soap.SoapTransport)

Aggregations

SoapTransport (com.zimbra.common.soap.SoapTransport)1 GrantRightsRequest (com.zimbra.soap.account.message.GrantRightsRequest)1 GrantRightsResponse (com.zimbra.soap.account.message.GrantRightsResponse)1 AccountACEInfo (com.zimbra.soap.account.type.AccountACEInfo)1