Class DeleteRef
java.lang.Object
com.google.gerrit.server.restapi.project.DeleteRef
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteMultipleRefs(ProjectState projectState, com.google.common.collect.ImmutableSet<String> refsToDelete, String prefix) Deletes a set of refs from the repository.voiddeleteSingleRef(ProjectState projectState, String ref) Deletes a single ref from the repository.voiddeleteSingleRef(ProjectState projectState, String ref, String prefix) Deletes a single ref from the repository.
- 
Method Details- 
deleteSingleRefpublic void deleteSingleRef(ProjectState projectState, String ref) throws IOException, ResourceConflictException, AuthException, PermissionBackendException Deletes a single ref from the repository.- Parameters:
- projectState- the- ProjectStateof the project containing the target ref.
- ref- the ref to be deleted.
- Throws:
- IOException
- ResourceConflictException
- AuthException
- PermissionBackendException
 
- 
deleteSingleRefpublic void deleteSingleRef(ProjectState projectState, String ref, String prefix) throws IOException, ResourceConflictException, AuthException, PermissionBackendException Deletes a single ref from the repository.- Parameters:
- projectState- the- ProjectStateof the project containing the target ref.
- ref- the ref to be deleted.
- prefix- the prefix of the ref.
- Throws:
- IOException
- ResourceConflictException
- AuthException
- PermissionBackendException
 
- 
deleteMultipleRefspublic 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- the- ProjectStateof 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
 
 
-