Package org.apache.archiva.rest.api.services

Examples of org.apache.archiva.rest.api.services.ArchivaRestServiceException


        throws ArchivaRestServiceException
    {
        Cache cache = caches.get( cacheKey );
        if ( cache == null )
        {
            throw new ArchivaRestServiceException( "no cache for key: " + cacheKey,
                                                   Response.Status.BAD_REQUEST.getStatusCode(), null );
        }

        cache.clear();
        return Boolean.TRUE;
View Full Code Here


            List<NetworkProxy> networkProxies = networkProxyAdmin.getNetworkProxies();
            return networkProxies == null ? Collections.<NetworkProxy>emptyList() : networkProxies;
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

        {
            return networkProxyAdmin.getNetworkProxy( networkProxyId );
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

            }
            getNetworkProxyAdmin().addNetworkProxy( networkProxy, getAuditInformation() );
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

        {
            getNetworkProxyAdmin().updateNetworkProxy( networkProxy, getAuditInformation() );
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

            getNetworkProxyAdmin().deleteNetworkProxy( networkProxyId, getAuditInformation() );
            return Boolean.TRUE;
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

        {
            return archivaAdministration.getLegacyArtifactPaths();
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

        artifact.setVersion( legacyArtifactPath.getVersion() );
        artifact.setType( legacyArtifactPath.getType() );
        String path = repositoryContent.toPath( artifact );
        if ( !StringUtils.equals( path, legacyArtifactPath.getPath() ) )
        {
            throw new ArchivaRestServiceException(
                "artifact path reference '" + legacyArtifactPath.getPath() + "' does not match the initial path: '"
                    + path + "'", Response.Status.BAD_REQUEST.getStatusCode(), null );
        }

        try
        {

            archivaAdministration.addLegacyArtifactPath( legacyArtifactPath, getAuditInformation() );
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

            archivaAdministration.deleteLegacyArtifactPath( path, getAuditInformation() );
            return Boolean.TRUE;
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

            archivaAdministration.addFileTypePattern( fileTypeId, pattern, getAuditInformation() );
            return Boolean.TRUE;
        }
        catch ( RepositoryAdminException e )
        {
            throw new ArchivaRestServiceException( e.getMessage(), e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.rest.api.services.ArchivaRestServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.