Package org.hive2hive.core.model

Examples of org.hive2hive.core.model.Index.canWrite()


    Assert.assertTrue(indexNew.getProtectionKeys().getPrivate()
        .equals(userProfileA.getProtectionKeys().getPrivate()));
    Assert.assertTrue(indexNew.getProtectionKeys().getPublic()
        .equals(userProfileA.getProtectionKeys().getPublic()));
    // check write access
    Assert.assertTrue(indexNew.canWrite());
    // check user permissions
    Set<String> users = indexNew.getCalculatedUserList();
    Assert.assertEquals(1, users.size());
    Assert.assertTrue(users.contains(userProfileA.getUserId()));
    // check user permissions in case of a folder
View Full Code Here


    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    // user B has no write access
    Assert.assertFalse(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(newIndexAtB.isShared());

    // check write access
    Assert.assertTrue(newIndexAtA.canWrite());
    // user B has no write access
    Assert.assertFalse(newIndexAtB.canWrite());

    // check user permissions at A
    Set<String> usersA = newIndexAtA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(indexAtB.isShared());

    // check write access
    Assert.assertTrue(indexAtA.canWrite());
    // user B has no write access
    Assert.assertFalse(indexAtB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexAtA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(indexA.isShared());
    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    Assert.assertTrue(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    // user B has no write access
    Assert.assertFalse(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

        .equals(userProfile.getProtectionKeys().getPrivate()));
    Assert.assertTrue(index.getProtectionKeys().getPublic()
        .equals(userProfile.getProtectionKeys().getPublic()));

    // check write access
    Assert.assertTrue(index.canWrite());

    // check user permissions
    Set<String> users = index.getCalculatedUserList();
    Assert.assertEquals(1, users.size());
    Assert.assertTrue(users.contains(userProfile.getUserId()));
View Full Code Here

    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    // user B has no write access
    Assert.assertFalse(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(newIndexAtA.isShared());
    Assert.assertTrue(newIndexAtB.isShared());

    // check write access
    Assert.assertTrue(newIndexAtA.canWrite());
    Assert.assertTrue(newIndexAtB.canWrite());

    // check user permissions at A
    Set<String> usersA = newIndexAtA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
View Full Code Here

    Assert.assertTrue(indexA.isShared());
    Assert.assertTrue(indexB.isShared());

    // check write access
    Assert.assertTrue(indexA.canWrite());
    Assert.assertTrue(indexB.canWrite());

    // check user permissions at A
    Set<String> usersA = indexA.getCalculatedUserList();
    Assert.assertEquals(2, usersA.size());
    Assert.assertTrue(usersA.contains(userA.getUserId()));
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.