Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.Document.findProperty()


    assertContainsScope("mary", property);
    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "mary");
    assertNotNull(scopeRoles);
    assertContainsRole("reader", scopeRoles);
    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "mary");
    assertContainsRole("writer", scopeRoles);
    // user:admin=owner
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
View Full Code Here


    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "mary");
    assertContainsRole("writer", scopeRoles);
    // user:admin=owner
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("admin", property);
    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "admin");
    assertNotNull(scopeRoles);
    assertContainsRole("owner", scopeRoles);
View Full Code Here

    assertContainsRole("writer", scopeRoles);
    // user:admin=owner
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("admin", property);
    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "admin");
    assertNotNull(scopeRoles);
    assertContainsRole("owner", scopeRoles);
    // No groups.
    assertNull(document.findProperty(SpiConstants.PROPNAME_ACLGROUPS));
View Full Code Here

    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "admin");
    assertNotNull(scopeRoles);
    assertContainsRole("owner", scopeRoles);
    // No groups.
    assertNull(document.findProperty(SpiConstants.PROPNAME_ACLGROUPS));
  }

  public void testUserGroupAcl() throws RepositoryException {
    Document document = extractJcrDocument("MockRepositoryEventLogAcl.txt",
                                           "user_group_acl");
View Full Code Here

  public void testUserGroupAcl() throws RepositoryException {
    Document document = extractJcrDocument("MockRepositoryEventLogAcl.txt",
                                           "user_group_acl");
    // ACL=["user:joe","user:mary","group:eng"]
    JcrProperty property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertNotNull(property);
    assertContainsScope("joe", property);
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("mary", property);
View Full Code Here

    JcrProperty property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertNotNull(property);
    assertContainsScope("joe", property);
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("mary", property);
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLGROUPS);
    assertNotNull(property);
    assertContainsScope("eng", property);
View Full Code Here

    assertContainsScope("joe", property);
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("mary", property);
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLGROUPS);
    assertNotNull(property);
    assertContainsScope("eng", property);
  }

  public void testUserGroupRoleAcl() throws RepositoryException {
View Full Code Here

    Document document = extractJcrDocument("MockRepositoryEventLogAcl.txt",
                                           "user_group_role_acl");
    // ACL=["user:joe=reader","user:mary=reader,writer","group:eng=reader"]
    // user:joe=reader
    JcrProperty property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertNotNull(property);
    assertContainsScope("joe", property);
    JcrProperty scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "joe");
    assertNotNull(scopeRoles);
View Full Code Here

    // user:joe=reader
    JcrProperty property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertNotNull(property);
    assertContainsScope("joe", property);
    JcrProperty scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "joe");
    assertNotNull(scopeRoles);
    assertContainsRole("reader", scopeRoles);
    // user:mary=reader,writer
    property =
View Full Code Here

        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "joe");
    assertNotNull(scopeRoles);
    assertContainsRole("reader", scopeRoles);
    // user:mary=reader,writer
    property =
        (JcrProperty) document.findProperty(SpiConstants.PROPNAME_ACLUSERS);
    assertContainsScope("mary", property);
    scopeRoles = (JcrProperty) document.findProperty(
        SpiConstants.USER_ROLES_PROPNAME_PREFIX + "mary");
    assertNotNull(scopeRoles);
    assertContainsRole("reader", scopeRoles);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.