@Singleton public class RefVisibilityControl extends Object
DefaultPermissionBackend
. It can
authoritatively tell if a ref is accessible by a user.Modifier and Type | Method and Description |
---|---|
boolean |
isVisible(ProjectControl projectControl,
String refName)
Returns an authoritative answer if the ref is visible to the user.
|
public boolean isVisible(ProjectControl projectControl, String refName) throws PermissionBackendException
PermissionBackendException
if asked for tags visibility.PermissionBackendException