1 package org.apache.maven.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.admin.FileType;
25 import org.apache.archiva.admin.model.admin.LegacyArtifactPath;
26 import org.apache.archiva.admin.model.admin.OrganisationInformation;
28 import java.util.List;
31 * @author Olivier Lamy
33 public class MockArchivaAdministration implements ArchivaAdministration
35 public List<LegacyArtifactPath> getLegacyArtifactPaths()
36 throws RepositoryAdminException
41 public void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath, AuditInformation auditInformation )
42 throws RepositoryAdminException
47 public void deleteLegacyArtifactPath( String path, AuditInformation auditInformation )
48 throws RepositoryAdminException
53 public void addFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
54 throws RepositoryAdminException
59 public void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
60 throws RepositoryAdminException
65 public List<FileType> getFileTypes()
66 throws RepositoryAdminException
71 public FileType getFileType( String fileTypeId )
72 throws RepositoryAdminException
77 public void addFileType( FileType fileType, AuditInformation auditInformation )
78 throws RepositoryAdminException
83 public void removeFileType( String fileTypeId, AuditInformation auditInformation )
84 throws RepositoryAdminException
89 public void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
90 throws RepositoryAdminException
95 public void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
96 throws RepositoryAdminException
101 public List<String> getKnownContentConsumers()
102 throws RepositoryAdminException
107 public void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
108 throws RepositoryAdminException
113 public void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
114 throws RepositoryAdminException
119 public void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
120 throws RepositoryAdminException
125 public List<String> getInvalidContentConsumers()
126 throws RepositoryAdminException
131 public void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
132 throws RepositoryAdminException
137 public OrganisationInformation getOrganisationInformation()
138 throws RepositoryAdminException
143 public void setOrganisationInformation( OrganisationInformation organisationInformation )
144 throws RepositoryAdminException