mirror of https://github.com/apache/archiva.git
produce text plain doesn't have any sense
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234429 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af678112a3
commit
5df449c74e
|
@ -44,7 +44,7 @@ public interface ArchivaAdministrationService
|
||||||
{
|
{
|
||||||
@Path( "getLegacyArtifactPaths" )
|
@Path( "getLegacyArtifactPaths" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<LegacyArtifactPath> getLegacyArtifactPaths()
|
List<LegacyArtifactPath> getLegacyArtifactPaths()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -52,7 +52,7 @@ public interface ArchivaAdministrationService
|
||||||
@Path( "addLegacyArtifactPath" )
|
@Path( "addLegacyArtifactPath" )
|
||||||
@POST
|
@POST
|
||||||
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath )
|
void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -81,7 +81,7 @@ public interface ArchivaAdministrationService
|
||||||
|
|
||||||
@Path( "getFileType" )
|
@Path( "getFileType" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
FileType getFileType( @QueryParam( "fileTypeId" ) String fileTypeId )
|
FileType getFileType( @QueryParam( "fileTypeId" ) String fileTypeId )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -145,21 +145,21 @@ public interface ArchivaAdministrationService
|
||||||
|
|
||||||
@Path( "getFileTypes" )
|
@Path( "getFileTypes" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<FileType> getFileTypes()
|
List<FileType> getFileTypes()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getKnownContentConsumers" )
|
@Path( "getKnownContentConsumers" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<String> getKnownContentConsumers()
|
List<String> getKnownContentConsumers()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getInvalidContentConsumers" )
|
@Path( "getInvalidContentConsumers" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<String> getInvalidContentConsumers()
|
List<String> getInvalidContentConsumers()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -180,7 +180,7 @@ public interface ArchivaAdministrationService
|
||||||
|
|
||||||
@Path( "getUiConfiguration" )
|
@Path( "getUiConfiguration" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
UiConfiguration getUiConfiguration()
|
UiConfiguration getUiConfiguration()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
|
@ -43,14 +43,14 @@ public interface ManagedRepositoriesService
|
||||||
{
|
{
|
||||||
@Path( "getManagedRepositories" )
|
@Path( "getManagedRepositories" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<ManagedRepository> getManagedRepositories()
|
List<ManagedRepository> getManagedRepositories()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getManagedRepository/{repositoryId}" )
|
@Path( "getManagedRepository/{repositoryId}" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
ManagedRepository getManagedRepository( @PathParam( "repositoryId" ) String repositoryId )
|
ManagedRepository getManagedRepository( @PathParam( "repositoryId" ) String repositoryId )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -67,7 +67,7 @@ public interface ManagedRepositoriesService
|
||||||
@Path( "addManagedRepository" )
|
@Path( "addManagedRepository" )
|
||||||
@POST
|
@POST
|
||||||
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
ManagedRepository addManagedRepository( ManagedRepository managedRepository )
|
ManagedRepository addManagedRepository( ManagedRepository managedRepository )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
|
@ -40,14 +40,14 @@ public interface NetworkProxyService
|
||||||
{
|
{
|
||||||
@Path( "getNetworkProxies" )
|
@Path( "getNetworkProxies" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<NetworkProxy> getNetworkProxies()
|
List<NetworkProxy> getNetworkProxies()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getNetworkProxy/{networkProxyId}" )
|
@Path( "getNetworkProxy/{networkProxyId}" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
NetworkProxy getNetworkProxy( @PathParam( "networkProxyId" ) String networkProxyId )
|
NetworkProxy getNetworkProxy( @PathParam( "networkProxyId" ) String networkProxyId )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -55,7 +55,7 @@ public interface NetworkProxyService
|
||||||
@Path( "addNetworkProxy" )
|
@Path( "addNetworkProxy" )
|
||||||
@POST
|
@POST
|
||||||
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
void addNetworkProxy( NetworkProxy networkProxy )
|
void addNetworkProxy( NetworkProxy networkProxy )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
@ -63,7 +63,7 @@ public interface NetworkProxyService
|
||||||
@Path( "updateNetworkProxy" )
|
@Path( "updateNetworkProxy" )
|
||||||
@POST
|
@POST
|
||||||
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
@Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
void updateNetworkProxy( NetworkProxy networkProxy )
|
void updateNetworkProxy( NetworkProxy networkProxy )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
|
@ -42,14 +42,14 @@ public interface ProxyConnectorService
|
||||||
{
|
{
|
||||||
@Path( "getProxyConnectors" )
|
@Path( "getProxyConnectors" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<ProxyConnector> getProxyConnectors()
|
List<ProxyConnector> getProxyConnectors()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getProxyConnector" )
|
@Path( "getProxyConnector" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
ProxyConnector getProxyConnector( @QueryParam( "sourceRepoId" ) String sourceRepoId,
|
ProxyConnector getProxyConnector( @QueryParam( "sourceRepoId" ) String sourceRepoId,
|
||||||
@QueryParam( "targetRepoId" ) String targetRepoId )
|
@QueryParam( "targetRepoId" ) String targetRepoId )
|
||||||
|
|
|
@ -41,14 +41,14 @@ public interface RemoteRepositoriesService
|
||||||
{
|
{
|
||||||
@Path( "getRemoteRepositories" )
|
@Path( "getRemoteRepositories" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
List<RemoteRepository> getRemoteRepositories()
|
List<RemoteRepository> getRemoteRepositories()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path( "getRemoteRepository/{repositoryId}" )
|
@Path( "getRemoteRepository/{repositoryId}" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||||
RemoteRepository getRemoteRepository( @PathParam( "repositoryId" ) String repositoryId )
|
RemoteRepository getRemoteRepository( @PathParam( "repositoryId" ) String repositoryId )
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
|
@ -47,7 +47,7 @@ public interface SearchService
|
||||||
|
|
||||||
@Path( "quickSearch" )
|
@Path( "quickSearch" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||||
/**
|
/**
|
||||||
* <b>search will be apply on all repositories the current user has karma</b>
|
* <b>search will be apply on all repositories the current user has karma</b>
|
||||||
|
@ -57,7 +57,7 @@ public interface SearchService
|
||||||
|
|
||||||
@Path( "getArtifactVersions" )
|
@Path( "getArtifactVersions" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||||
/**
|
/**
|
||||||
* <b>search will be apply on all repositories the current user has karma</b>
|
* <b>search will be apply on all repositories the current user has karma</b>
|
||||||
|
@ -69,7 +69,7 @@ public interface SearchService
|
||||||
|
|
||||||
@Path( "searchArtifacts" )
|
@Path( "searchArtifacts" )
|
||||||
@POST
|
@POST
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||||
/**
|
/**
|
||||||
* If searchRequest contains repositories, the search will be done only on those repositories.
|
* If searchRequest contains repositories, the search will be done only on those repositories.
|
||||||
|
@ -80,7 +80,7 @@ public interface SearchService
|
||||||
|
|
||||||
@Path( "getAllGroupIds" )
|
@Path( "getAllGroupIds" )
|
||||||
@GET
|
@GET
|
||||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||||
/**
|
/**
|
||||||
* <b>this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available</b>
|
* <b>this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available</b>
|
||||||
|
|
Loading…
Reference in New Issue