Class RefControl


  • public class RefControl
    extends Object
    Manages access control for Git references (aka branches, tags).
    • Method Detail

      • getRefName

        public String getRefName()
      • isOwner

        public boolean isOwner()
        Is this user a ref owner?
      • hasReadPermissionOnRef

        public boolean hasReadPermissionOnRef​(boolean allowNoteDbRefs)
        Returns true if the user has permission to read the ref. This method evaluates RefPermission.READ only. Hence, it is not authoritative. For example, it does not tell if the user can see NoteDb refs such as refs/meta/external-ids which requires GlobalPermission#ACCESS_DATABASE and deny access in this case.
      • isEditVisible

        public boolean isEditVisible()
        Can this user see other users change edits?
      • isBlocked

        public boolean isBlocked​(String permissionName)
        True if the user is blocked from using this permission.