public class ProviderOnlyArtifactRepository extends AbstractArtifactRepository2 implements org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository, IRawArtifactFileProvider
IRawArtifactFileProvider
to IFileArtifactRepository
.Constructor and Description |
---|
ProviderOnlyArtifactRepository(IRawArtifactFileProvider delegate,
org.eclipse.equinox.p2.core.IProvisioningAgent agent,
URI location) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns
true if this a provider for an artifact in the given format |
boolean |
contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns
true if this is a provider for the given artifact. |
org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> |
descriptorQueryable() |
org.eclipse.core.runtime.IStatus |
getArtifact(org.eclipse.equinox.p2.metadata.IArtifactKey key,
OutputStream destination,
org.eclipse.core.runtime.IProgressMonitor monitor)
Writes the artifact to the given output stream.
|
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] |
getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Return the raw artifact formats in which the given artifact can be provided
|
File |
getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns the local file system location of the given artifact in the given format.
|
File |
getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns the local file system location of the given artifact.
|
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)
Writes the artifact in the described raw format to the given output stream
|
protected void |
internalAddDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
protected void |
internalRemoveAllDescriptors() |
protected void |
internalRemoveDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
protected void |
internalRemoveDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors) |
protected void |
internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
protected void |
internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys) |
protected void |
internalStore(org.eclipse.core.runtime.IProgressMonitor monitor) |
boolean |
isModifiable() |
org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> |
query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query,
org.eclipse.core.runtime.IProgressMonitor monitor) |
addDescriptor, addDescriptor, addDescriptors, addDescriptors, getArtifact, getArtifacts, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
createArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCode
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, executeBatch, getArtifact, getArtifacts, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
public ProviderOnlyArtifactRepository(IRawArtifactFileProvider delegate, org.eclipse.equinox.p2.core.IProvisioningAgent agent, URI location)
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactProvider
true
if this is a provider for the given artifact.contains
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
contains
in interface IArtifactProvider
contains
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
key
- an artifact keytrue
if this instance can provide the artifact for the given keypublic org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query, org.eclipse.core.runtime.IProgressMonitor monitor)
query
in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
public File getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactFileProvider
getArtifactFile
in interface org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
getArtifactFile
in interface IArtifactFileProvider
key
- an artifact keynull
the given artifact does
not exist.public org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.metadata.IArtifactKey key, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
IArtifactProvider
getArtifact
in interface IArtifactProvider
key
- the key of the artifact to transferdestination
- the stream to write the artifact tomonitor
- a progress monitor, or null
public org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IRawArtifactProvider
getArtifactDescriptors
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
getArtifactDescriptors
in interface IRawArtifactProvider
getArtifactDescriptors
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
key
- the artifact key to lookuppublic boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactProvider
true
if this a provider for an artifact in the given formatcontains
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
contains
in interface IRawArtifactProvider
contains
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
descriptor
- an artifact descriptortrue
if this instance can provide the artifact as raw artifact in the
described formatpublic File getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactFileProvider
getArtifactFile
in interface org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
getArtifactFile
in interface IRawArtifactFileProvider
descriptor
- the key and format of an artifactnull
the that artifact
does not exist in the given format.public org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
IRawArtifactProvider
getRawArtifact
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
getRawArtifact
in interface IRawArtifactProvider
descriptor
- the key and format of the artifact to transferdestination
- the stream to write the raw artifact tomonitor
- a progress monitor, or null
public org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> descriptorQueryable()
descriptorQueryable
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
public boolean isModifiable()
isModifiable
in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
isModifiable
in class org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
protected void internalAddDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
internalAddDescriptor
in class AbstractArtifactRepository2
protected void internalRemoveDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
internalRemoveDescriptor
in class AbstractArtifactRepository2
protected void internalRemoveDescriptors(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] descriptors)
internalRemoveDescriptors
in class AbstractArtifactRepository2
protected void internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
internalRemoveDescriptors
in class AbstractArtifactRepository2
protected void internalRemoveDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey[] keys)
internalRemoveDescriptors
in class AbstractArtifactRepository2
protected void internalRemoveAllDescriptors()
internalRemoveAllDescriptors
in class AbstractArtifactRepository2
protected void internalStore(org.eclipse.core.runtime.IProgressMonitor monitor)
internalStore
in class AbstractArtifactRepository2
public OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException
getOutputStream
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
getOutputStream
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
org.eclipse.equinox.p2.core.ProvisionException
Copyright © 2008–2014 Eclipse Foundation. All rights reserved.