This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.admin.model.admin;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import org.apache.archiva.admin.model.AuditInformation;
022import org.apache.archiva.admin.model.RepositoryAdminException;
023import org.apache.archiva.admin.model.beans.FileType;
024import org.apache.archiva.admin.model.beans.LegacyArtifactPath;
025import org.apache.archiva.admin.model.beans.NetworkConfiguration;
026import org.apache.archiva.admin.model.beans.OrganisationInformation;
027import org.apache.archiva.admin.model.beans.UiConfiguration;
028
029import java.util.List;
030
031/**
032 * @author Olivier Lamy
033 * @since 1.4-M1
034 */
035public interface ArchivaAdministration
036{
037
038    List<LegacyArtifactPath> getLegacyArtifactPaths()
039        throws RepositoryAdminException;
040
041    void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath, AuditInformation auditInformation )
042        throws RepositoryAdminException;
043
044    void deleteLegacyArtifactPath( String path, AuditInformation auditInformation )
045        throws RepositoryAdminException;
046
047    void addFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
048        throws RepositoryAdminException;
049
050    void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
051        throws RepositoryAdminException;
052
053    List<FileType> getFileTypes()
054        throws RepositoryAdminException;
055
056    FileType getFileType( String fileTypeId )
057        throws RepositoryAdminException;
058
059    void addFileType( FileType fileType, AuditInformation auditInformation )
060        throws RepositoryAdminException;
061
062    void removeFileType( String fileTypeId, AuditInformation auditInformation )
063        throws RepositoryAdminException;
064
065    void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
066        throws RepositoryAdminException;
067
068    void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
069        throws RepositoryAdminException;
070
071    List<String> getKnownContentConsumers()
072        throws RepositoryAdminException;
073
074    void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
075        throws RepositoryAdminException;
076
077    void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
078        throws RepositoryAdminException;
079
080    void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
081        throws RepositoryAdminException;
082
083    List<String> getInvalidContentConsumers()
084        throws RepositoryAdminException;
085
086    void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
087        throws RepositoryAdminException;
088
089    OrganisationInformation getOrganisationInformation()
090        throws RepositoryAdminException;
091
092    void setOrganisationInformation( OrganisationInformation organisationInformation )
093        throws RepositoryAdminException;
094
095    UiConfiguration getUiConfiguration()
096        throws RepositoryAdminException;
097
098    void updateUiConfiguration( UiConfiguration uiConfiguration )
099        throws RepositoryAdminException;
100
101    NetworkConfiguration getNetworkConfiguration()
102        throws RepositoryAdminException;
103
104    void setNetworkConfiguration( NetworkConfiguration networkConfiguration )
105        throws RepositoryAdminException;
106
107}