result.setStatus( JobStatus.RESOURCE_NOT_EXIST );
result.setResult( "Repository [" + repositoryName + "] does not exist" );
return result;
}
OrganizationalUnit organizationalUnit = new OrganizationalUnitImpl( organizationalUnitName, null );
GitRepository repo = new GitRepository( repositoryName );
try {
organizationalUnitService.removeRepository( organizationalUnit,
repo );
} catch ( IllegalArgumentException e ) {
result.setStatus( JobStatus.BAD_REQUEST );
result.setResult( "OrganizationalUnit " + organizationalUnit.getName() + " not found" );
return result;
}
result.setStatus( JobStatus.SUCCESS );
return result;