Codota Logo
AbstractJdbc2DatabaseMetaData.addACLPrivileges
Code IndexAdd Codota to your IDE (free)

How to use
addACLPrivileges
method
in
org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.addACLPrivileges (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

/**
 * Take the a String representing an array of ACLs and return
 * a Hashtable mapping the SQL permission name to a Vector of
 * usernames who have that permission.
 */
protected Hashtable parseACL(String aclArray, String owner) {
  if (aclArray == null)
  {
    //null acl is a shortcut for owner having full privs
    String perms = "arwdRxt";
    if (connection.haveMinimumServerVersion("8.2")) {
      // 8.2 Removed the separate RULE permission
      perms = "arwdxt";
    } else if (connection.haveMinimumServerVersion("8.4")) {
      // 8.4 Added a separate TRUNCATE permission
      perms = "arwdDxt";
    }
    aclArray = "{" + owner + "=" + perms + "}";
  }
  Vector acls = parseACLArray(aclArray);
  Hashtable privileges = new Hashtable();
  for (int i = 0; i < acls.size(); i++)
  {
    String acl = (String)acls.elementAt(i);
    addACLPrivileges(acl, privileges);
  }
  return privileges;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Take the a String representing an array of ACLs and return
 * a Hashtable mapping the SQL permission name to a Vector of
 * usernames who have that permission.
 */
protected Hashtable parseACL(String aclArray, String owner) {
  if (aclArray == null)
  {
    //null acl is a shortcut for owner having full privs
    aclArray = "{" + owner + "=arwdRxt}";
  }
  Vector acls = parseACLArray(aclArray);
  Hashtable privileges = new Hashtable();
  for (int i = 0; i < acls.size(); i++)
  {
    String acl = (String)acls.elementAt(i);
    addACLPrivileges(acl, privileges);
  }
  return privileges;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Take the a String representing an array of ACLs and return
 * a Hashtable mapping the SQL permission name to a Vector of
 * usernames who have that permission.
 */
protected Hashtable parseACL(String aclArray, String owner) {
  if (aclArray == null)
  {
    //null acl is a shortcut for owner having full privs
    String perms = "arwdRxt";
    if (connection.haveMinimumServerVersion("8.2")) {
      // 8.2 Removed the separate RULE permission
      perms = "arwdxt";
    } else if (connection.haveMinimumServerVersion("8.4")) {
      // 8.4 Added a separate TRUNCATE permission
      perms = "arwdDxt";
    }
    aclArray = "{" + owner + "=" + perms + "}";
  }
  Vector acls = parseACLArray(aclArray);
  Hashtable privileges = new Hashtable();
  for (int i = 0; i < acls.size(); i++)
  {
    String acl = (String)acls.elementAt(i);
    addACLPrivileges(acl, privileges);
  }
  return privileges;
}
org.postgresql.jdbc2AbstractJdbc2DatabaseMetaDataaddACLPrivileges

Javadoc

Add the user described by the given acl to the Vectors of users with the privileges described by the acl.

Popular methods of AbstractJdbc2DatabaseMetaData

  • createMetaDataStatement
  • escapeQuotes
    Turn the provided value into a valid string literal for direct inclusion into a query. This includes
  • getColumns
  • getImportedExportedKeys
  • getMaxIndexKeys
  • getMaxNameLength
  • parseACL
    Take the a String representing an array of ACLs and return a Hashtable mapping the SQL permission na
  • parseACLArray
    Parse an String of ACLs into a Vector of ACLs.
  • sortStringArray
  • tokenize
    Tokenize based on words not on single characters.
  • getProcedureColumns
  • getProcedures
  • getProcedureColumns,
  • getProcedures,
  • getSchemas

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now