Google Search Appliance Policy ACL API Developers Guide Uživatelský manuál Strana 7

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 24
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 6
Google Search Appliance: Policy ACL API Developer’s Guide Policy ACL API Developer’s Guide 7
Alternate method using protocol buffer encoding:
GsaEntry entry = new GsaEntry();
entry.addGsaContent("urlPattern", "http://example.com");
entry.addGsaContent(“protoAcls”, “true”);
entry.addGsaContent("acl",
"entries <\n” +
“ gsa_entry <\n” +
access: 1\n” + // 1 is PERMIT access, 2 is DENY access
principal <\n” +
scope: 2\n” + // 1 is USER scope, 2 is GROUP scope
name: \"testGroup\"\n” +
name_space: \"Default\"\n” +
case_sensitive: 0\n” + // 0: all strings are case sensitive, 1: all
strings are case-insensitive
>\n” +
“ >\n” +
“>\n” +
“entries <\n” +
“ gsa_entry <\n” +
access: 2\n” +
principal <\n” +
scope: 1\n” +
name: \"john\"\n” +
name_space: \"Default\"\n” +
case_sensitive: 0\n” +
>\n” +
“ >\n” +
“>\n");
myClient.insertEntry("policyAcls", entry);
Protocol buffers are open source. For more information, visit http://code.google.com/p/protobuf/.
Zobrazit stránku 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 23 24

Komentáře k této Příručce

Žádné komentáře