public class DeleteRef
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
deleteMultipleRefs(ProjectState projectState,
com.google.common.collect.ImmutableSet<java.lang.String> refsToDelete,
java.lang.String prefix)
Deletes a set of refs from the repository.
|
void |
deleteSingleRef(ProjectState projectState,
java.lang.String ref)
Deletes a single ref from the repository.
|
void |
deleteSingleRef(ProjectState projectState,
java.lang.String ref,
java.lang.String prefix)
Deletes a single ref from the repository.
|
public void deleteSingleRef(ProjectState projectState, java.lang.String ref) throws java.io.IOException, ResourceConflictException, AuthException, PermissionBackendException
projectState - the ProjectState of the project containing the target ref.ref - the ref to be deleted.java.io.IOExceptionResourceConflictExceptionAuthExceptionPermissionBackendExceptionpublic void deleteSingleRef(ProjectState projectState, java.lang.String ref, java.lang.String prefix) throws java.io.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.java.io.IOExceptionResourceConflictExceptionAuthExceptionPermissionBackendExceptionpublic void deleteMultipleRefs(ProjectState projectState, com.google.common.collect.ImmutableSet<java.lang.String> refsToDelete, java.lang.String prefix) throws com.google.gwtorm.server.OrmException, java.io.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.com.google.gwtorm.server.OrmExceptionjava.io.IOExceptionResourceConflictExceptionPermissionBackendExceptionAuthException