Class RefControl
java.lang.Object
com.google.gerrit.server.permissions.RefControl
Manages access control for Git references (aka branches, tags).
Do not use this class directly - instead use ProjectControl class. This class is
public only because it is extended in google-owned implementation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRefControl(ChangeData.Factory changeDataFactory, RefVisibilityControl refVisibilityControl, GitRepositoryManager repositoryManager, ProjectControl projectControl, String ref, PermissionCollection relevant) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancan(RefPermission perm) protected booleancanSubmit(boolean isChangeOwner) Returns true if this user can submit patch sets to this refprotected ProjectControlprotected Stringprotected PermissionRange
-
Constructor Details
-
RefControl
@Inject protected RefControl(ChangeData.Factory changeDataFactory, RefVisibilityControl refVisibilityControl, GitRepositoryManager repositoryManager, ProjectControl projectControl, String ref, PermissionCollection relevant)
-
-
Method Details
-
getProjectControl
-
getRefName
-
canSubmit
protected boolean canSubmit(boolean isChangeOwner) Returns true if this user can submit patch sets to this ref -
toRange
-
can
- Throws:
PermissionBackendException
-