Examples of canRewindRef()


Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("named CAN NOT clone!", user.canClone(repository));
    assertTrue("named CAN NOT push!", user.canPush(repository));

    assertTrue("named CAN NOT create ref!", user.canCreateRef(repository));
    assertTrue("named CAN NOT delete ref!", user.canDeleteRef(repository));
    assertTrue("named CAN NOT rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.REWIND, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("named CAN NOT clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.CLONE, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertFalse("named CAN clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.VIEW, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertFalse("named CAN clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.NONE, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("named CAN NOT clone!", user.canClone(repository));
    assertTrue("named CAN NOT push!", user.canPush(repository));

    assertTrue("named CAN NOT create ref!", user.canCreateRef(repository));
    assertTrue("named CAN NOT delete ref!", user.canDeleteRef(repository));
    assertTrue("named CAN NOT rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.REWIND, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("named CAN NOT clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.CLONE, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertFalse("named CAN clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.VIEW, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertFalse("named CAN clone!", user.canClone(repository));
    assertFalse("named CAN push!", user.canPush(repository));

    assertFalse("named CAN create ref!", user.canCreateRef(repository));
    assertFalse("named CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("named CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("named has wrong permission!", AccessPermission.VIEW, user.getRepositoryPermission(repository).permission);

    repository.allowForks = false;
    user.canFork = false;
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("team member CAN NOT clone!", user.canClone(repository));
    assertTrue("team member CAN NOT push!", user.canPush(repository));

    assertTrue("team member CAN NOT create ref!", user.canCreateRef(repository));
    assertTrue("team member CAN NOT delete ref!", user.canDeleteRef(repository));
    assertTrue("team member CAN NOT rewind ref!", user.canRewindRef(repository));

    assertEquals("team member has wrong permission!", AccessPermission.REWIND, user.getRepositoryPermission(repository).permission);
  }

  /**
 
View Full Code Here

Examples of com.gitblit.models.UserModel.canRewindRef()

    assertTrue("team member CAN NOT clone!", user.canClone(repository));
    assertFalse("team member CAN push!", user.canPush(repository));

    assertFalse("team member CAN create ref!", user.canCreateRef(repository));
    assertFalse("team member CAN delete ref!", user.canDeleteRef(repository));
    assertFalse("team member CAN rewind ref!", user.canRewindRef(repository));

    assertEquals("team member has wrong permission!", AccessPermission.CLONE, user.getRepositoryPermission(repository).permission);
  }

  /**
 
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.