Class DeleteRef
java.lang.Object
com.google.gerrit.server.restapi.project.DeleteRef
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteMultipleRefs
(ProjectState projectState, com.google.common.collect.ImmutableSet<String> refsToDelete, String prefix) Deletes a set of refs from the repository.void
deleteSingleRef
(ProjectState projectState, String ref) Deletes a single ref from the repository.void
deleteSingleRef
(ProjectState projectState, String ref, String prefix) Deletes a single ref from the repository.
-
Method Details
-
deleteSingleRef
public void deleteSingleRef(ProjectState projectState, String ref) throws IOException, ResourceConflictException, AuthException, PermissionBackendException Deletes a single ref from the repository.- Parameters:
projectState
- theProjectState
of the project containing the target ref.ref
- the ref to be deleted.- Throws:
IOException
ResourceConflictException
AuthException
PermissionBackendException
-
deleteSingleRef
public void deleteSingleRef(ProjectState projectState, String ref, String prefix) throws IOException, ResourceConflictException, AuthException, PermissionBackendException Deletes a single ref from the repository.- Parameters:
projectState
- theProjectState
of the project containing the target ref.ref
- the ref to be deleted.prefix
- the prefix of the ref.- Throws:
IOException
ResourceConflictException
AuthException
PermissionBackendException
-
deleteMultipleRefs
public void deleteMultipleRefs(ProjectState projectState, com.google.common.collect.ImmutableSet<String> refsToDelete, String prefix) throws IOException, ResourceConflictException, PermissionBackendException, AuthException Deletes a set of refs from the repository.- Parameters:
projectState
- theProjectState
of the project whose refs are to be deleted.refsToDelete
- the refs to be deleted.prefix
- the prefix to add to abbreviated refs, eg. "refs/heads/".- Throws:
IOException
ResourceConflictException
PermissionBackendException
AuthException
-