Class RefVisibilityControl
- java.lang.Object
-
- com.google.gerrit.server.permissions.RefVisibilityControl
-
@Singleton public class RefVisibilityControl extends Object
This class is a component that is internal toDefaultPermissionBackend
. It can authoritatively tell if a ref is accessible by a user.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isVisible(ProjectControl projectControl, String refName)
Returns an authoritative answer if the ref is visible to the user.
-
-
-
Method Detail
-
isVisible
public boolean isVisible(ProjectControl projectControl, String refName) throws PermissionBackendException
Returns an authoritative answer if the ref is visible to the user. Does not have support for tags and will throw aPermissionBackendException
if asked for tags visibility.- Throws:
PermissionBackendException
-
-