This project has retired. For details please refer to its
Attic page.
ProxyConnectorService xref
1 package org.apache.archiva.rest.api.services;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import org.apache.archiva.admin.model.beans.ProxyConnector;
22 import org.apache.archiva.rest.api.model.PolicyInformation;
23 import org.apache.archiva.security.common.ArchivaRoleConstants;
24 import org.apache.archiva.redback.authorization.RedbackAuthorization;
25
26 import javax.ws.rs.Consumes;
27 import javax.ws.rs.GET;
28 import javax.ws.rs.POST;
29 import javax.ws.rs.Path;
30 import javax.ws.rs.Produces;
31 import javax.ws.rs.QueryParam;
32 import javax.ws.rs.core.MediaType;
33 import java.util.List;
34
35
36
37
38
39
40
41 @Path( "/proxyConnectorService/" )
42 public interface ProxyConnectorService
43 {
44 @Path( "getProxyConnectors" )
45 @GET
46 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
47 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
48 List<ProxyConnector> getProxyConnectors()
49 throws ArchivaRestServiceException;
50
51 @Path( "getProxyConnector" )
52 @GET
53 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
54 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
55 ProxyConnector getProxyConnector( @QueryParam( "sourceRepoId" ) String sourceRepoId,
56 @QueryParam( "targetRepoId" ) String targetRepoId )
57 throws ArchivaRestServiceException;
58
59 @Path( "addProxyConnector" )
60 @POST
61 @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
62 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
63 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
64 Boolean addProxyConnector( ProxyConnector proxyConnector )
65 throws ArchivaRestServiceException;
66
67 @Path( "deleteProxyConnector" )
68 @POST
69 @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
70 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
71 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
72 Boolean deleteProxyConnector( ProxyConnector proxyConnector )
73 throws ArchivaRestServiceException;
74
75
76
77
78 @Path( "removeProxyConnector" )
79 @GET
80 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
81 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
82 Boolean removeProxyConnector( @QueryParam( "sourceRepoId" ) String sourceRepoId,
83 @QueryParam( "targetRepoId" ) String targetRepoId )
84 throws ArchivaRestServiceException;
85
86
87
88
89
90
91
92 @Path( "updateProxyConnector" )
93 @POST
94 @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
95 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN } )
96 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
97 Boolean updateProxyConnector( ProxyConnector proxyConnector )
98 throws ArchivaRestServiceException;
99
100 @Path( "allPolicies" )
101 @GET
102 @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
103 @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
104 @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
105 List<PolicyInformation> getAllPolicyInformations()
106 throws ArchivaRestServiceException;
107
108
109 }