1 package org.apache.archiva.repository.scanner;
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
21 import org.apache.archiva.admin.model.AuditInformation;
22 import org.apache.archiva.admin.model.RepositoryAdminException;
23 import org.apache.archiva.admin.model.admin.ArchivaAdministration;
24 import org.apache.archiva.admin.model.beans.FileType;
25 import org.apache.archiva.admin.model.beans.LegacyArtifactPath;
26 import org.apache.archiva.admin.model.beans.OrganisationInformation;
27 import org.apache.archiva.admin.model.beans.UiConfiguration;
28 import org.apache.archiva.configuration.ArchivaConfiguration;
29 import org.springframework.stereotype.Service;
31 import java.util.List;
34 * @author Olivier Lamy
37 public class ArchivaAdministrationStub
38 implements ArchivaAdministration
41 private ArchivaConfiguration archivaConfiguration;
43 public ArchivaAdministrationStub()
49 public ArchivaAdministrationStub( ArchivaConfiguration archivaConfiguration )
51 this.archivaConfiguration = archivaConfiguration;
54 public List<LegacyArtifactPath> getLegacyArtifactPaths()
55 throws RepositoryAdminException
60 public void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath, AuditInformation auditInformation )
61 throws RepositoryAdminException
66 public void deleteLegacyArtifactPath( String path, AuditInformation auditInformation )
67 throws RepositoryAdminException
72 public void addFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
73 throws RepositoryAdminException
78 public void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
79 throws RepositoryAdminException
84 public List<FileType> getFileTypes()
85 throws RepositoryAdminException
90 public FileType getFileType( String fileTypeId )
91 throws RepositoryAdminException
96 public void addFileType( FileType fileType, AuditInformation auditInformation )
97 throws RepositoryAdminException
102 public void removeFileType( String fileTypeId, AuditInformation auditInformation )
103 throws RepositoryAdminException
108 public void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
109 throws RepositoryAdminException
114 public void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
115 throws RepositoryAdminException
120 public List<String> getKnownContentConsumers()
121 throws RepositoryAdminException
123 return archivaConfiguration.getConfiguration().getRepositoryScanning().getKnownContentConsumers();
126 public void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
127 throws RepositoryAdminException
132 public void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
133 throws RepositoryAdminException
138 public void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
139 throws RepositoryAdminException
144 public List<String> getInvalidContentConsumers()
145 throws RepositoryAdminException
147 return archivaConfiguration.getConfiguration().getRepositoryScanning().getInvalidContentConsumers();
150 public void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
151 throws RepositoryAdminException
156 public OrganisationInformation getOrganisationInformation()
157 throws RepositoryAdminException
162 public void setOrganisationInformation( OrganisationInformation organisationInformation )
163 throws RepositoryAdminException
168 public UiConfiguration getUiConfiguration()
169 throws RepositoryAdminException
174 public void updateUiConfiguration( UiConfiguration uiConfiguration )
175 throws RepositoryAdminException
177 //To change body of implemented methods use File | Settings | File Templates.