1 package org.apache.archiva.converter.mock;
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;
29 import java.util.List;
32 * @author Olivier Lamy
34 public class MockArchivaAdministration
35 implements ArchivaAdministration
37 public List<LegacyArtifactPath> getLegacyArtifactPaths()
38 throws RepositoryAdminException
43 public void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath, AuditInformation auditInformation )
44 throws RepositoryAdminException
49 public void deleteLegacyArtifactPath( String path, AuditInformation auditInformation )
50 throws RepositoryAdminException
55 public void addFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
56 throws RepositoryAdminException
61 public void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
62 throws RepositoryAdminException
67 public List<FileType> getFileTypes()
68 throws RepositoryAdminException
73 public FileType getFileType( String fileTypeId )
74 throws RepositoryAdminException
79 public void addFileType( FileType fileType, AuditInformation auditInformation )
80 throws RepositoryAdminException
85 public void removeFileType( String fileTypeId, AuditInformation auditInformation )
86 throws RepositoryAdminException
91 public void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
92 throws RepositoryAdminException
97 public void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
98 throws RepositoryAdminException
103 public List<String> getKnownContentConsumers()
104 throws RepositoryAdminException
109 public void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
110 throws RepositoryAdminException
115 public void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
116 throws RepositoryAdminException
121 public void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
122 throws RepositoryAdminException
127 public List<String> getInvalidContentConsumers()
128 throws RepositoryAdminException
133 public void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
134 throws RepositoryAdminException
139 public OrganisationInformation getOrganisationInformation()
140 throws RepositoryAdminException
145 public void setOrganisationInformation( OrganisationInformation organisationInformation )
146 throws RepositoryAdminException
152 public UiConfiguration getUiConfiguration()
153 throws RepositoryAdminException
158 public void updateUiConfiguration( UiConfiguration uiConfiguration )
159 throws RepositoryAdminException