Exemplo n.º 1
0
 public ZGrant(Grant grant) throws ServiceException {
   mPermissions = grant.getPerm();
   mGranteeName = grant.getGranteeName();
   mGranteeId = grant.getGranteeId();
   mGranteeType = GranteeType.fromString(grant.getGranteeType().toString());
   if (mGranteeType == GranteeType.key) mArgs = grant.getAccessKey();
   else mArgs = grant.getGuestPassword();
 }
Exemplo n.º 2
0
 public ZAce(Element e) throws ServiceException {
   mRight = e.getAttribute(MailConstants.A_RIGHT);
   mDeny = e.getAttributeBool(MailConstants.A_DENY, false);
   mGranteeName = e.getAttribute(MailConstants.A_DISPLAY, null);
   mGranteeId = e.getAttribute(MailConstants.A_ZIMBRA_ID, null);
   mGranteeType = GranteeType.fromString(e.getAttribute(MailConstants.A_GRANT_TYPE));
   mSecret = e.getAttribute(MailConstants.A_PASSWORD, null);
 }
Exemplo n.º 3
0
  public ZGrant(Element e) throws ServiceException {
    mPermissions = e.getAttribute(MailConstants.A_RIGHTS);
    mGranteeName = e.getAttribute(MailConstants.A_DISPLAY, null);
    mGranteeId = e.getAttribute(MailConstants.A_ZIMBRA_ID, null);
    mGranteeType = GranteeType.fromString(e.getAttribute(MailConstants.A_GRANT_TYPE));

    if (mGranteeType == GranteeType.key) mArgs = e.getAttribute(MailConstants.A_ACCESSKEY, null);
    else mArgs = e.getAttribute(MailConstants.A_PASSWORD, null);
  }