org.sonatype.tycho.p2.maven.repository
Class LocalArtifactRepository

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
          extended by org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
              extended by org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
                  extended by org.sonatype.tycho.p2.maven.repository.LocalArtifactRepository
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository, org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>

public class LocalArtifactRepository
extends AbstractMavenArtifactRepository


Field Summary
 
Fields inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
descriptors, descriptorsMap, VERSION
 
Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
CODE_RETRY
 
Fields inherited from interface org.eclipse.equinox.p2.repository.IRepository
ENABLED, NONE, PREFERENCE_NODE, PROP_COMPRESSED, PROP_DESCRIPTION, PROP_MIRRORS_BASE_URL, PROP_MIRRORS_URL, PROP_NAME, PROP_NICKNAME, PROP_PASSWORD, PROP_SYSTEM, PROP_TIMESTAMP, PROP_USERNAME, TYPE_ARTIFACT, TYPE_METADATA
 
Constructor Summary
LocalArtifactRepository(File location)
           
LocalArtifactRepository(File location, TychoRepositoryIndex projectIndex, RepositoryReader contentLocator)
           
 
Method Summary
 void addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 File getBasedir()
           
 URI getLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean isModifiable()
           
 void removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 org.eclipse.core.runtime.IStatus resolve(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
           
 void save()
           
 
Methods inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenArtifactRepository
contains, descriptorQueryable, getArtifactDescriptors, getContentLocator, getGAV, getP2GAV, loadMaven, query
 
Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
addDescriptors, createArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCode, removeAll, removeDescriptor
 
Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setDescription, setLocation, setName, setProperties, setProperty, setProvider, setType, setVersion
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository
getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setProperty
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

LocalArtifactRepository

public LocalArtifactRepository(File location)

LocalArtifactRepository

public LocalArtifactRepository(File location,
                               TychoRepositoryIndex projectIndex,
                               RepositoryReader contentLocator)
Method Detail

save

public void save()

getArtifact

public org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                    OutputStream destination,
                                                    org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
getArtifact in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getArtifact in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

getArtifacts

public org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests,
                                                     org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
getArtifacts in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getArtifacts in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository

getOutputStream

public OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
                             throws org.eclipse.equinox.p2.core.ProvisionException
Specified by:
getOutputStream in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Specified by:
getOutputStream in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
Throws:
org.eclipse.equinox.p2.core.ProvisionException

getRawArtifact

public org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
                                                       OutputStream destination,
                                                       org.eclipse.core.runtime.IProgressMonitor monitor)

getBasedir

public File getBasedir()

isModifiable

public boolean isModifiable()
Specified by:
isModifiable in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
Overrides:
isModifiable in class org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>

getLocation

public URI getLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)

resolve

public org.eclipse.core.runtime.IStatus resolve(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Specified by:
resolve in class AbstractMavenArtifactRepository

contains

public boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Specified by:
contains in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Overrides:
contains in class AbstractMavenArtifactRepository

addDescriptor

public void addDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Specified by:
addDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Overrides:
addDescriptor in class AbstractMavenArtifactRepository

removeDescriptor

public void removeDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Specified by:
removeDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
Overrides:
removeDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository


Copyright © 2008-2011. All Rights Reserved.