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
ConstructorsModifierConstructorDescriptionprotected
RefControl
(ChangeData.Factory changeDataFactory, RefVisibilityControl refVisibilityControl, GitRepositoryManager repositoryManager, ProjectControl projectControl, String ref, PermissionCollection relevant) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
can
(RefPermission perm) protected boolean
canSubmit
(boolean isChangeOwner) Returns true if this user can submit patch sets to this refprotected ProjectControl
protected String
protected 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
-