code: public void setPermissions(Collection<Permission> permissions) {
          this.permissions.clear();
          this.aggregatePermissions = null;
          this.addPermissions(permissions);
      }
docs: Sets the string-based permissions assigned directly to the Account.  The permissions set here, in addition to any
  {@link #getPermissions() object permissions} constitute the total permissions assigned directly to the
  Account.
  
  @param permissions the string-based permissions assigned directly to the Account.