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" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<LegacyArtifactPath> getLegacyArtifactPaths()
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -52,7 +52,7 @@ public interface ArchivaAdministrationService
|
|||
@Path( "addLegacyArtifactPath" )
|
||||
@POST
|
||||
@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 )
|
||||
void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath )
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -81,7 +81,7 @@ public interface ArchivaAdministrationService
|
|||
|
||||
@Path( "getFileType" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
FileType getFileType( @QueryParam( "fileTypeId" ) String fileTypeId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -145,21 +145,21 @@ public interface ArchivaAdministrationService
|
|||
|
||||
@Path( "getFileTypes" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<FileType> getFileTypes()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getKnownContentConsumers" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<String> getKnownContentConsumers()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getInvalidContentConsumers" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<String> getInvalidContentConsumers()
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -180,7 +180,7 @@ public interface ArchivaAdministrationService
|
|||
|
||||
@Path( "getUiConfiguration" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
UiConfiguration getUiConfiguration()
|
||||
throws ArchivaRestServiceException;
|
||||
|
|
|
@ -43,14 +43,14 @@ public interface ManagedRepositoriesService
|
|||
{
|
||||
@Path( "getManagedRepositories" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<ManagedRepository> getManagedRepositories()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getManagedRepository/{repositoryId}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
ManagedRepository getManagedRepository( @PathParam( "repositoryId" ) String repositoryId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -67,7 +67,7 @@ public interface ManagedRepositoriesService
|
|||
@Path( "addManagedRepository" )
|
||||
@POST
|
||||
@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 )
|
||||
ManagedRepository addManagedRepository( ManagedRepository managedRepository )
|
||||
throws ArchivaRestServiceException;
|
||||
|
|
|
@ -40,14 +40,14 @@ public interface NetworkProxyService
|
|||
{
|
||||
@Path( "getNetworkProxies" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<NetworkProxy> getNetworkProxies()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getNetworkProxy/{networkProxyId}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
NetworkProxy getNetworkProxy( @PathParam( "networkProxyId" ) String networkProxyId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -55,7 +55,7 @@ public interface NetworkProxyService
|
|||
@Path( "addNetworkProxy" )
|
||||
@POST
|
||||
@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 )
|
||||
void addNetworkProxy( NetworkProxy networkProxy )
|
||||
throws ArchivaRestServiceException;
|
||||
|
@ -63,7 +63,7 @@ public interface NetworkProxyService
|
|||
@Path( "updateNetworkProxy" )
|
||||
@POST
|
||||
@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 )
|
||||
void updateNetworkProxy( NetworkProxy networkProxy )
|
||||
throws ArchivaRestServiceException;
|
||||
|
|
|
@ -42,14 +42,14 @@ public interface ProxyConnectorService
|
|||
{
|
||||
@Path( "getProxyConnectors" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<ProxyConnector> getProxyConnectors()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getProxyConnector" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
ProxyConnector getProxyConnector( @QueryParam( "sourceRepoId" ) String sourceRepoId,
|
||||
@QueryParam( "targetRepoId" ) String targetRepoId )
|
||||
|
|
|
@ -41,14 +41,14 @@ public interface RemoteRepositoriesService
|
|||
{
|
||||
@Path( "getRemoteRepositories" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
List<RemoteRepository> getRemoteRepositories()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "getRemoteRepository/{repositoryId}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
|
||||
RemoteRepository getRemoteRepository( @PathParam( "repositoryId" ) String repositoryId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
|
|
@ -47,7 +47,7 @@ public interface SearchService
|
|||
|
||||
@Path( "quickSearch" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||
/**
|
||||
* <b>search will be apply on all repositories the current user has karma</b>
|
||||
|
@ -57,7 +57,7 @@ public interface SearchService
|
|||
|
||||
@Path( "getArtifactVersions" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||
/**
|
||||
* <b>search will be apply on all repositories the current user has karma</b>
|
||||
|
@ -69,7 +69,7 @@ public interface SearchService
|
|||
|
||||
@Path( "searchArtifacts" )
|
||||
@POST
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||
/**
|
||||
* If searchRequest contains repositories, the search will be done only on those repositories.
|
||||
|
@ -80,7 +80,7 @@ public interface SearchService
|
|||
|
||||
@Path( "getAllGroupIds" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = false )
|
||||
/**
|
||||
* <b>this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available</b>
|
||||
|
|
Loading…
Reference in New Issue