Search in sources :

Example 1 with GetEffectiveRightsResponse

use of com.zimbra.soap.admin.message.GetEffectiveRightsResponse in project zm-mailbox by Zimbra.

the class SoapProvisioning method getEffectiveRights.

@Override
public RightCommand.EffectiveRights getEffectiveRights(String targetType, TargetBy targetBy, String target, GranteeBy granteeBy, String grantee, boolean expandSetAttrs, boolean expandGetAttrs) throws ServiceException {
    GranteeSelector granteeSel = null;
    if (granteeBy != null && grantee != null) {
        granteeSel = new GranteeSelector(granteeBy, grantee);
    }
    EffectiveRightsTargetSelector targetSel = new EffectiveRightsTargetSelector(com.zimbra.soap.type.TargetType.fromString(targetType), targetBy, target);
    GetEffectiveRightsResponse resp = invokeJaxb(new GetEffectiveRightsRequest(targetSel, granteeSel, expandSetAttrs, expandGetAttrs));
    return RightCommand.EffectiveRights.fromJaxb_EffectiveRights(resp);
}
Also used : GetEffectiveRightsRequest(com.zimbra.soap.admin.message.GetEffectiveRightsRequest) GranteeSelector(com.zimbra.soap.admin.type.GranteeSelector) GetEffectiveRightsResponse(com.zimbra.soap.admin.message.GetEffectiveRightsResponse) EffectiveRightsTargetSelector(com.zimbra.soap.admin.type.EffectiveRightsTargetSelector)

Aggregations

GetEffectiveRightsRequest (com.zimbra.soap.admin.message.GetEffectiveRightsRequest)1 GetEffectiveRightsResponse (com.zimbra.soap.admin.message.GetEffectiveRightsResponse)1 EffectiveRightsTargetSelector (com.zimbra.soap.admin.type.EffectiveRightsTargetSelector)1 GranteeSelector (com.zimbra.soap.admin.type.GranteeSelector)1