Examples of canView()


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

    repository.accessRestriction = AccessRestrictionType.NONE;

    UserModel user = new UserModel("test");
    user.setRepositoryPermission(repository.name, AccessPermission.CLONE);

    assertTrue("named CAN NOT view!", user.canView(repository));
    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));
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.