123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- package org.apache.archiva.repository.mock;
-
- /*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
- import org.apache.archiva.model.ArchivaArtifact;
- import org.apache.archiva.model.ArtifactReference;
- import org.apache.archiva.model.ProjectReference;
- import org.apache.archiva.model.VersionedReference;
- import org.apache.archiva.repository.ContentAccessException;
- import org.apache.archiva.repository.ContentNotFoundException;
- import org.apache.archiva.repository.LayoutException;
- import org.apache.archiva.repository.ManagedRepository;
- import org.apache.archiva.repository.ManagedRepositoryContent;
- import org.apache.archiva.repository.content.Artifact;
- import org.apache.archiva.repository.content.ContentItem;
- import org.apache.archiva.repository.content.ItemNotFoundException;
- import org.apache.archiva.repository.content.ItemSelector;
- import org.apache.archiva.repository.content.Namespace;
- import org.apache.archiva.repository.content.Project;
- import org.apache.archiva.repository.content.Version;
- import org.apache.archiva.repository.storage.StorageAsset;
- import org.springframework.stereotype.Service;
-
- import java.nio.file.Path;
- import java.util.List;
- import java.util.Set;
- import java.util.stream.Stream;
-
- /**
- * @author Martin Stockhammer <martin_s@apache.org>
- */
- @Service("managedRepositoryContent#mock")
- public class ManagedRepositoryContentMock implements ManagedRepositoryContent
- {
- private ManagedRepository repository;
-
- @Override
- public VersionedReference toVersion( String groupId, String artifactId, String version )
- {
- return null;
- }
-
- @Override
- public VersionedReference toGenericVersion( ArtifactReference artifactReference )
- {
- return null;
- }
-
- @Override
- public VersionedReference toVersion( ArtifactReference artifactReference )
- {
- return null;
- }
-
- @Override
- public ArtifactReference toArtifact( String groupId, String artifactId, String version, String type, String classifier )
- {
- return null;
- }
-
- @Override
- public void deleteItem( ContentItem item ) throws ItemNotFoundException, ContentAccessException
- {
-
- }
-
- @Override
- public ContentItem getItem( ItemSelector selector ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
- @Override
- public Namespace getNamespace( ItemSelector namespaceSelector ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
- @Override
- public Project getProject( ItemSelector projectSelector ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
-
- @Override
- public void deleteVersion( VersionedReference reference ) throws ContentNotFoundException, ContentAccessException
- {
-
- }
-
-
- @Override
- public Version getVersion( ItemSelector versionCoordinates ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
- @Override
- public void deleteArtifact( ArtifactReference artifactReference ) throws ContentNotFoundException, ContentAccessException
- {
-
- }
-
-
- @Override
- public Artifact getArtifact( ItemSelector selector ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<? extends Artifact> getArtifacts( ItemSelector selector ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public Stream<? extends Artifact> newArtifactStream( ItemSelector selector ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<? extends Project> getProjects( Namespace namespace ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<? extends Project> getProjects( ItemSelector selector ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
- @Override
- public List<? extends Version> getVersions( Project project ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<? extends Version> getVersions( ItemSelector selector ) throws ContentAccessException, IllegalArgumentException
- {
- return null;
- }
-
- @Override
- public List<? extends Artifact> getArtifacts( ContentItem item ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public Stream<? extends Artifact> newArtifactStream( ContentItem item ) throws ContentAccessException
- {
- return null;
- }
-
- @Override
- public boolean hasContent( ItemSelector selector )
- {
- return false;
- }
-
- @Override
- public void addArtifact( Path sourceFile, Artifact destination ) throws IllegalArgumentException
- {
-
- }
-
- @Override
- public ContentItem toItem( String path ) throws LayoutException
- {
- return null;
- }
-
- @Override
- public ContentItem toItem( StorageAsset assetPath ) throws LayoutException
- {
- return null;
- }
-
-
- @Override
- public void deleteGroupId( String groupId ) throws ContentNotFoundException, ContentAccessException
- {
-
- }
-
-
- @Override
- public void deleteProject( String namespace, String projectId ) throws ContentNotFoundException, ContentAccessException
- {
-
- }
-
- @Override
- public void deleteProject( ProjectReference reference ) throws ContentNotFoundException, ContentAccessException
- {
-
- }
-
- @Override
- public String getId( )
- {
- return null;
- }
-
- @Override
- public List<ArtifactReference> getRelatedArtifacts( ArtifactReference reference ) throws ContentNotFoundException, LayoutException, ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<ArtifactReference> getRelatedArtifacts( VersionedReference reference ) throws ContentNotFoundException, LayoutException, ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<StorageAsset> getRelatedAssets( ArtifactReference reference ) throws ContentNotFoundException, LayoutException, ContentAccessException
- {
- return null;
- }
-
- @Override
- public List<ArtifactReference> getArtifacts( VersionedReference reference ) throws ContentNotFoundException, LayoutException, ContentAccessException
- {
- return null;
- }
-
- @Override
- public String getRepoRoot( )
- {
- return null;
- }
-
- @Override
- public ManagedRepository getRepository( )
- {
- return repository;
- }
-
- @Override
- public Set<String> getVersions( ProjectReference reference ) throws ContentNotFoundException, LayoutException, ContentAccessException
- {
- return null;
- }
-
- @Override
- public Set<String> getVersions( VersionedReference reference ) throws ContentNotFoundException, ContentAccessException, LayoutException
- {
- return null;
- }
-
- @Override
- public boolean hasContent( ArtifactReference reference ) throws ContentAccessException
- {
- return false;
- }
-
- @Override
- public boolean hasContent( ProjectReference reference ) throws ContentAccessException
- {
- return false;
- }
-
- @Override
- public boolean hasContent( VersionedReference reference ) throws ContentAccessException
- {
- return false;
- }
-
- @Override
- public void setRepository( ManagedRepository repo )
- {
- this.repository = repo;
- }
-
- @Override
- public StorageAsset toFile( VersionedReference reference )
- {
- return null;
- }
-
- @Override
- public ArtifactReference toArtifactReference( String path ) throws LayoutException
- {
- return null;
- }
-
- @Override
- public StorageAsset toFile( ArtifactReference reference )
- {
- return null;
- }
-
- @Override
- public StorageAsset toFile( ArchivaArtifact reference )
- {
- return null;
- }
-
- @Override
- public String toMetadataPath( ProjectReference reference )
- {
- return null;
- }
-
- @Override
- public String toMetadataPath( VersionedReference reference )
- {
- return null;
- }
-
- @Override
- public String toPath( ArtifactReference reference )
- {
- return null;
- }
-
- @Override
- public String toPath( ItemSelector selector )
- {
- return null;
- }
-
- @Override
- public ItemSelector toItemSelector( String path ) throws LayoutException
- {
- return null;
- }
-
- @Override
- public String toPath( ArchivaArtifact reference )
- {
- return null;
- }
-
- }
|