code: public Map<String, EnumSet<Permissions>> getPermissions() {
          JsonObject perms = getPermissionsObject();
          return client.getGson().getAdapter(DeserializationTypes.PERMISSIONS_MAP_TOKEN).fromJsonTree
                  (perms);
      }
docs: Returns the Permissions of this database.
  <p>
  Note this method is only applicable to databases that support the
  <a target="_blank"
  href="https://console.bluemix.net/docs/services/Cloudant/api/authorization.html#authorization">
  Cloudant authorization API
  </a> such as Cloudant DBaaS. For unsupported databases consider using the /db/_security
  endpoint.
  </p>
  
  @return the map of userNames to their Permissions
  @throws UnsupportedOperationException if called on a database that does not provide the
  Cloudant authorization API
  @see <a
  href="https://console.bluemix.net/docs/services/Cloudant/api/authorization.html#roles"
  target="_blank">Roles</a>
  @see <a
  href="https://console.bluemix.net/docs/services/Cloudant/api/authorization.html#viewing-permissions"
  target="_blank">Viewing permissions</a>