public class DeleteRef extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
public void deleteSingleRef(ProjectState projectState, String ref) throws IOException, ResourceConflictException, AuthException, PermissionBackendException
projectState - the ProjectState of the project containing the target ref.ref - the ref to be deleted.IOExceptionResourceConflictExceptionAuthExceptionPermissionBackendExceptionpublic void deleteSingleRef(ProjectState projectState, String ref, String prefix) throws IOException, ResourceConflictException, AuthException, PermissionBackendException
projectState - the ProjectState of the project containing the target ref.ref - the ref to be deleted.prefix - the prefix of the ref.IOExceptionResourceConflictExceptionAuthExceptionPermissionBackendExceptionpublic void deleteMultipleRefs(ProjectState projectState, com.google.common.collect.ImmutableSet<String> refsToDelete, String prefix) throws IOException, ResourceConflictException, PermissionBackendException, AuthException
projectState - the ProjectState of the project whose refs are to be deleted.refsToDelete - the refs to be deleted.prefix - the prefix of the refs.IOExceptionResourceConflictExceptionPermissionBackendExceptionAuthException