This project has retired. For details please refer to its
Attic page.
RepositoryRegistry xref
1 package org.apache.archiva.repository;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.archiva.configuration.ArchivaConfiguration;
23 import org.apache.archiva.configuration.Configuration;
24 import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
25 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
26 import org.apache.archiva.configuration.RepositoryGroupConfiguration;
27 import org.apache.archiva.event.EventSource;
28 import org.apache.archiva.indexer.ArchivaIndexManager;
29 import org.apache.archiva.indexer.IndexUpdateFailedException;
30
31 import java.util.Collection;
32
33
34
35
36
37
38
39
40
41
42 public interface RepositoryRegistry extends EventSource
43 {
44 void setArchivaConfiguration( ArchivaConfiguration archivaConfiguration );
45
46 ArchivaIndexManager getIndexManager( RepositoryType type );
47
48 Collection<Repository> getRepositories( );
49
50 Collection<ManagedRepository> getManagedRepositories( );
51
52 Collection<RemoteRepository> getRemoteRepositories( );
53
54 Collection<RepositoryGroup> getRepositoryGroups( );
55
56 Repository getRepository( String repoId );
57
58 ManagedRepository getManagedRepository( String repoId );
59
60 RemoteRepository getRemoteRepository( String repoId );
61
62 RepositoryGroup getRepositoryGroup( String groupId );
63
64 ManagedRepositoryapache/archiva/repository/ManagedRepository.html#ManagedRepository">ManagedRepository putRepository( ManagedRepository managedRepository ) throws RepositoryException;
65
66 ManagedRepository putRepository( ManagedRepositoryConfiguration managedRepositoryConfiguration ) throws RepositoryException;
67
68 ManagedRepository putRepository( ManagedRepositoryConfiguration managedRepositoryConfiguration, Configuration configuration ) throws RepositoryException;
69
70 RepositoryGroupche/archiva/repository/RepositoryGroup.html#RepositoryGroup">RepositoryGroup putRepositoryGroup( RepositoryGroup repositoryGroup ) throws RepositoryException;
71
72 RepositoryGroup putRepositoryGroup( RepositoryGroupConfiguration repositoryGroupConfiguration ) throws RepositoryException;
73
74 RepositoryGroup putRepositoryGroup( RepositoryGroupConfiguration repositoryGroupConfiguration, Configuration configuration ) throws RepositoryException;
75
76 RemoteRepository/apache/archiva/repository/RemoteRepository.html#RemoteRepository">RemoteRepository putRepository( RemoteRepository remoteRepository, Configuration configuration ) throws RepositoryException;
77
78 RemoteRepository/apache/archiva/repository/RemoteRepository.html#RemoteRepository">RemoteRepository putRepository( RemoteRepository remoteRepository ) throws RepositoryException;
79
80 RemoteRepository putRepository( RemoteRepositoryConfiguration remoteRepositoryConfiguration ) throws RepositoryException;
81
82 RemoteRepository putRepository( RemoteRepositoryConfiguration remoteRepositoryConfiguration, Configuration configuration ) throws RepositoryException;
83
84 void removeRepository( String repoId ) throws RepositoryException;
85
86 void removeRepository( Repository repo ) throws RepositoryException;
87
88 void removeRepository( ManagedRepository managedRepository ) throws RepositoryException;
89
90 void removeRepository( ManagedRepository managedRepository, Configuration configuration ) throws RepositoryException;
91
92 void removeRepositoryGroup( RepositoryGroup repositoryGroup ) throws RepositoryException;
93
94 void removeRepositoryGroup( RepositoryGroup repositoryGroup, Configuration configuration ) throws RepositoryException;
95
96 void removeRepository( RemoteRepository remoteRepository ) throws RepositoryException;
97
98 void removeRepository( RemoteRepository remoteRepository, Configuration configuration ) throws RepositoryException;
99
100 void reload( );
101
102 void resetIndexingContext( Repository repository ) throws IndexUpdateFailedException;
103
104 ManagedRepository/../org/apache/archiva/repository/ManagedRepository.html#ManagedRepository">ManagedRepository clone( ManagedRepository repo, String newId ) throws RepositoryException;
105
106 <T extends Repository> Repository clone( T repo, String newId ) throws RepositoryException;
107
108 RemoteRepository./../org/apache/archiva/repository/RemoteRepository.html#RemoteRepository">RemoteRepository clone( RemoteRepository repo, String newId ) throws RepositoryException;
109 }