use of com.zimbra.soap.admin.message.GetEffectiveRightsRequest 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);
}
Aggregations