Package com.impossibl.postgres.api.data

Examples of com.impossibl.postgres.api.data.ACLItem


  @Parameters(name = "test-{0}")
  @SuppressWarnings("deprecation")
  public static Collection<Object[]> data() throws Exception {
    Object[][] scalarTypesData = new Object[][] {
      {"aclitem", new ACLItem(TestUtil.getUser(), "rw", "pgjdbc")},
      {"bit", BitSet.valueOf(new byte[] {(byte) 0x7f})},
      {"varbit", BitSet.valueOf(new byte[] {(byte) 0xff, (byte) 0xff})},
      {"bool", true},
      {"bytea", new Maker() {
View Full Code Here


  private void mapACLPrivileges(String owner, ACLItem[] aclItems, Map<String, Map<String, List<String[]>>> privileges) {

    if (aclItems == null) {
      // Null is shortcut for owner having full privileges
      ACLItem fullPrivs = new ACLItem(owner, "arwdDxt", owner);
      aclItems = new ACLItem[] {fullPrivs};
    }

    for (ACLItem aclItem : aclItems) {
View Full Code Here

    }

    @Override
    public void encode(Type type, StringBuilder buffer, Object val, Context context) throws IOException {

      ACLItem item = (ACLItem) val;

      buffer.append(item.toString());

    }
View Full Code Here

TOP

Related Classes of com.impossibl.postgres.api.data.ACLItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.