123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- 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.ContentNotFoundException;
- import org.apache.archiva.repository.LayoutException;
- import org.apache.archiva.repository.ManagedRepository;
- import org.apache.archiva.repository.ManagedRepositoryContent;
- import org.apache.archiva.repository.RepositoryException;
- import org.apache.archiva.repository.storage.StorageAsset;
- import org.springframework.stereotype.Service;
-
- import java.util.Set;
-
- /**
- * @author Martin Stockhammer <martin_s@apache.org>
- */
- @Service("managedRepositoryContent#mock")
- public class ManagedRepositoryContentMock implements ManagedRepositoryContent
- {
- private ManagedRepository repository;
-
- @Override
- public void deleteVersion( VersionedReference reference ) throws ContentNotFoundException
- {
-
- }
-
- @Override
- public void deleteArtifact( ArtifactReference artifactReference ) throws ContentNotFoundException
- {
-
- }
-
- @Override
- public void deleteGroupId( String groupId ) throws ContentNotFoundException
- {
-
- }
-
- @Override
- public void deleteProject( String namespace, String projectId ) throws RepositoryException
- {
-
- }
-
- @Override
- public String getId( )
- {
- return null;
- }
-
- @Override
- public Set<ArtifactReference> getRelatedArtifacts( ArtifactReference reference ) throws ContentNotFoundException
- {
- return null;
- }
-
- @Override
- public String getRepoRoot( )
- {
- return null;
- }
-
- @Override
- public ManagedRepository getRepository( )
- {
- return repository;
- }
-
- @Override
- public Set<String> getVersions( ProjectReference reference ) throws ContentNotFoundException, LayoutException
- {
- return null;
- }
-
- @Override
- public Set<String> getVersions( VersionedReference reference ) throws ContentNotFoundException
- {
- return null;
- }
-
- @Override
- public boolean hasContent( ArtifactReference reference )
- {
- return false;
- }
-
- @Override
- public boolean hasContent( ProjectReference reference )
- {
- return false;
- }
-
- @Override
- public boolean hasContent( VersionedReference reference )
- {
- return false;
- }
-
- @Override
- public void setRepository( ManagedRepository repo )
- {
- this.repository = repo;
- }
-
- @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( ArchivaArtifact reference )
- {
- return null;
- }
-
- }
|