org.eclipse.tigerstripe.workbench.model.deprecated_
Interface IArtifactManagerSession


Deprecated.

@Deprecated
public interface IArtifactManagerSession

Interface to an Artifact Manager This interface controls access to artifacts for a Tigerstripe project.

Since:
0.3
Author:
Eric Dillon

Method Summary
 void addActiveFacetListener(org.eclipse.tigerstripe.workbench.internal.api.model.IActiveFacetChangeListener listener)
          Deprecated.  
 void addArtifact(IAbstractArtifact artifact)
          Deprecated. Adds the artifact to the session manager.
 void addArtifactChangeListener(org.eclipse.tigerstripe.workbench.internal.api.model.IArtifactChangeListener listener)
          Deprecated.  
 IAbstractArtifact extractArtifact(java.io.Reader reader, IProgressMonitor monitor)
          Deprecated. Extracts an artifact from the given reader
 IAbstractArtifact extractArtifactModel(java.io.Reader reader)
          Deprecated.  
 void generationComplete()
          Deprecated.  
 void generationStart()
          Deprecated.  
 org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference getActiveFacet()
          Deprecated.  
 java.util.Collection<IAbstractArtifact> getAllKnownArtifactsByFullyQualifiedName(java.lang.String fqn)
          Deprecated. Returns all known artifacts with the given FQN.
 IAbstractArtifact getArtifactByFullyQualifiedName(java.lang.String fqn)
          Deprecated.  
 IAbstractArtifact getArtifactByFullyQualifiedName(java.lang.String fqn, boolean includeDependencies)
          Deprecated.  
 org.eclipse.tigerstripe.workbench.internal.api.model.artifacts.updater.IModelUpdater getIModelUpdater()
          Deprecated. Returns the IModelUpdater for this session
 long getLocalTimeStamp()
          Deprecated. Returns the last time of modification on the model, whatever the change is
 java.util.List<IRelationship> getOriginatingRelationshipForFQN(java.lang.String fqn, boolean includeProjectDependencies)
          Deprecated.  
 java.util.Collection<IPrimitiveTypeArtifact> getReservedPrimitiveTypes()
          Deprecated.  
 java.util.Collection<java.lang.Class> getSupportedArtifactClasses()
          Deprecated. Returns a list of all supported Artifact Types
 java.util.Collection<java.lang.String> getSupportedArtifacts()
          Deprecated. Returns a list of all supported Artifact Types
 java.lang.String[] getSupportedQueries()
          Deprecated. Returns a list of supported QueryArtifacts
 java.util.List<IRelationship> getTerminatingRelationshipForFQN(java.lang.String fqn, boolean includeProjectDependencies)
          Deprecated.  
 IAbstractArtifact makeArtifact(IAbstractArtifact model)
          Deprecated. Makes a new Artifact of similar type.
 IAbstractArtifact makeArtifact(IAbstractArtifact model, IAbstractArtifact orig)
          Deprecated. Makes a new Artifact of type "model" based on the providing artifact, i.e.
 IAbstractArtifact makeArtifact(java.lang.String artifactType)
          Deprecated. Makes a new Artifact of the given type.
 IArtifactQuery makeQuery(java.lang.String queryType)
          Deprecated. Makes a new Artifact Query
 java.util.Collection<IAbstractArtifact> queryArtifact(IArtifactQuery query)
          Deprecated. Query artifacts based on the given query Object
 void refresh(boolean forceReload, IProgressMonitor monitor)
          Deprecated. Refreshes the session by re-reading all artifacts
 void refresh(IProgressMonitor monitor)
          Deprecated. Refreshes the session by re-reading all artifacts Equivalent to refresh(false)
 void refreshAll(boolean forceReload, IProgressMonitor monitor)
          Deprecated. Refreshes everything about this session (local artifacts & references)
 void refreshAll(IProgressMonitor monitor)
          Deprecated. Refreshes everything about this session (local artifacts & references) Equivalent to refreshAll(false)
 void refreshReferences(IProgressMonitor monitor)
          Deprecated. Refreshes all the references to other projects
 void removeActiveFacetListener(org.eclipse.tigerstripe.workbench.internal.api.model.IActiveFacetChangeListener listener)
          Deprecated.  
 void removeArtifact(IAbstractArtifact artifact)
          Deprecated. Removes the artifact from the session manager.
 void removeArtifactChangeListener(org.eclipse.tigerstripe.workbench.internal.api.model.IArtifactChangeListener listener)
          Deprecated.  
 java.util.Set<IRelationship> removePackageContent(java.lang.String packageName)
          Deprecated. Removes all the artifacts contained in the given package NOTE: this doesn't recursively delete the content of sub-packages
 void renameArtifact(IAbstractArtifact artifact, java.lang.String toFQN)
          Deprecated.  
 void renamePackageContent(java.lang.String fromPackageName, java.lang.String toPackageName)
          Deprecated. Removes all the artifacts contained in the given package NOTE: this doesn't recursively delete the content of sub-packages
 void resetActiveFacet()
          Deprecated.  
 void resetBroadcastMask()
          Deprecated.  
 void setActiveFacet(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facet, IProgressMonitor monitor)
          Deprecated.  
 void setBroadcastMask(int broadcastMask)
          Deprecated. This mask will condition what is and what is not broadcast by the underlying manager
 void updateCaches(IProgressMonitor monitor)
          Deprecated.  
 

Method Detail

getSupportedArtifactClasses

java.util.Collection<java.lang.Class> getSupportedArtifactClasses()
Deprecated. 
Returns a list of all supported Artifact Types


getSupportedQueries

java.lang.String[] getSupportedQueries()
Deprecated. 
Returns a list of supported QueryArtifacts


makeArtifact

IAbstractArtifact makeArtifact(java.lang.String artifactType)
                               throws java.lang.IllegalArgumentException
Deprecated. 
Makes a new Artifact of the given type. Valid types are returned by getSupportedArtifacts()

Parameters:
artifactType - - String the fully qualified name of the artifact to make. Valid fully qualified artifact types are given by getSupportedArtifacts().
Throws:
java.lang.IllegalArgumentException
See Also:
getSupportedArtifacts()

makeArtifact

IAbstractArtifact makeArtifact(IAbstractArtifact model)
Deprecated. 
Makes a new Artifact of similar type. This method creates a new Artifact of the same type as the one provided as parameter. No values are duplicated from the model.

Parameters:
model - - IAbstractArtifact the artifact of the type to be made

addArtifact

void addArtifact(IAbstractArtifact artifact)
                 throws TigerstripeException
Deprecated. 
Adds the artifact to the session manager.

Parameters:
artifact - - the artifact to add
Throws:
TigerstripeException - if the artifact cannot be added

removeArtifact

void removeArtifact(IAbstractArtifact artifact)
                    throws TigerstripeException
Deprecated. 
Removes the artifact from the session manager.

Parameters:
artifact - - the artifact to remove
Throws:
TigerstripeException - if the artifact cannot be removed

getArtifactByFullyQualifiedName

IAbstractArtifact getArtifactByFullyQualifiedName(java.lang.String fqn)
                                                  throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

getArtifactByFullyQualifiedName

IAbstractArtifact getArtifactByFullyQualifiedName(java.lang.String fqn,
                                                  boolean includeDependencies)
Deprecated. 

getAllKnownArtifactsByFullyQualifiedName

java.util.Collection<IAbstractArtifact> getAllKnownArtifactsByFullyQualifiedName(java.lang.String fqn)
Deprecated. 
Returns all known artifacts with the given FQN. If multiple definitions are found along the classpath (modules and dependencies), they are returned in the order they are found.

Parameters:
fqn -
Returns:

extractArtifact

IAbstractArtifact extractArtifact(java.io.Reader reader,
                                  IProgressMonitor monitor)
                                  throws TigerstripeException
Deprecated. 
Extracts an artifact from the given reader

Parameters:
reader -
Returns:
Throws:
TigerstripeException

extractArtifactModel

IAbstractArtifact extractArtifactModel(java.io.Reader reader)
                                       throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

refresh

void refresh(IProgressMonitor monitor)
             throws TigerstripeException
Deprecated. 
Refreshes the session by re-reading all artifacts Equivalent to refresh(false)

Throws:
TigerstripeException

refresh

void refresh(boolean forceReload,
             IProgressMonitor monitor)
             throws TigerstripeException
Deprecated. 
Refreshes the session by re-reading all artifacts

Parameters:
forceReload, - it true, POJOs will be reparsed, even if they haven't changed.
Throws:
TigerstripeException

refreshReferences

void refreshReferences(IProgressMonitor monitor)
                       throws TigerstripeException
Deprecated. 
Refreshes all the references to other projects

Throws:
TigerstripeException

refreshAll

void refreshAll(IProgressMonitor monitor)
                throws TigerstripeException
Deprecated. 
Refreshes everything about this session (local artifacts & references) Equivalent to refreshAll(false)

Throws:
TigerstripeException

refreshAll

void refreshAll(boolean forceReload,
                IProgressMonitor monitor)
                throws TigerstripeException
Deprecated. 
Refreshes everything about this session (local artifacts & references)

Throws:
TigerstripeException

makeArtifact

IAbstractArtifact makeArtifact(IAbstractArtifact model,
                               IAbstractArtifact orig)
                               throws TigerstripeException
Deprecated. 
Makes a new Artifact of type "model" based on the providing artifact, i.e. trying to map as much as possible from the original artifact into the new one.

Throws:
TigerstripeException

addArtifactChangeListener

void addArtifactChangeListener(org.eclipse.tigerstripe.workbench.internal.api.model.IArtifactChangeListener listener)
Deprecated. 

removeArtifactChangeListener

void removeArtifactChangeListener(org.eclipse.tigerstripe.workbench.internal.api.model.IArtifactChangeListener listener)
Deprecated. 

getIModelUpdater

org.eclipse.tigerstripe.workbench.internal.api.model.artifacts.updater.IModelUpdater getIModelUpdater()
Deprecated. 
Returns the IModelUpdater for this session

Returns:

updateCaches

void updateCaches(IProgressMonitor monitor)
                  throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

setActiveFacet

void setActiveFacet(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facet,
                    IProgressMonitor monitor)
                    throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

resetActiveFacet

void resetActiveFacet()
                      throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

getActiveFacet

org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference getActiveFacet()
                                                                                               throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

addActiveFacetListener

void addActiveFacetListener(org.eclipse.tigerstripe.workbench.internal.api.model.IActiveFacetChangeListener listener)
Deprecated. 

removeActiveFacetListener

void removeActiveFacetListener(org.eclipse.tigerstripe.workbench.internal.api.model.IActiveFacetChangeListener listener)
Deprecated. 

removePackageContent

java.util.Set<IRelationship> removePackageContent(java.lang.String packageName)
Deprecated. 
Removes all the artifacts contained in the given package NOTE: this doesn't recursively delete the content of sub-packages

Parameters:
packageName -
Returns:
a collection of IRelationship to potentially cascade delete

renamePackageContent

void renamePackageContent(java.lang.String fromPackageName,
                          java.lang.String toPackageName)
Deprecated. 
Removes all the artifacts contained in the given package NOTE: this doesn't recursively delete the content of sub-packages

Parameters:
packageName -

renameArtifact

void renameArtifact(IAbstractArtifact artifact,
                    java.lang.String toFQN)
                    throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

generationStart

void generationStart()
Deprecated. 

generationComplete

void generationComplete()
Deprecated. 

getOriginatingRelationshipForFQN

java.util.List<IRelationship> getOriginatingRelationshipForFQN(java.lang.String fqn,
                                                               boolean includeProjectDependencies)
                                                               throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

getTerminatingRelationshipForFQN

java.util.List<IRelationship> getTerminatingRelationshipForFQN(java.lang.String fqn,
                                                               boolean includeProjectDependencies)
                                                               throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

getReservedPrimitiveTypes

java.util.Collection<IPrimitiveTypeArtifact> getReservedPrimitiveTypes()
                                                                       throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

setBroadcastMask

void setBroadcastMask(int broadcastMask)
                      throws TigerstripeException
Deprecated. 
This mask will condition what is and what is not broadcast by the underlying manager

Parameters:
broadcastMask - - valid values are a combination of IArtifactChangeListener.NOTIFY_ADDED etc..
Throws:
TigerstripeException

resetBroadcastMask

void resetBroadcastMask()
                        throws TigerstripeException
Deprecated. 
Throws:
TigerstripeException

getSupportedArtifacts

java.util.Collection<java.lang.String> getSupportedArtifacts()
Deprecated. 
Returns a list of all supported Artifact Types


makeQuery

IArtifactQuery makeQuery(java.lang.String queryType)
                         throws java.lang.IllegalArgumentException
Deprecated. 
Makes a new Artifact Query

Throws:
java.lang.IllegalArgumentException

queryArtifact

java.util.Collection<IAbstractArtifact> queryArtifact(IArtifactQuery query)
                                                      throws java.lang.IllegalArgumentException,
                                                             TigerstripeException
Deprecated. 
Query artifacts based on the given query Object

Parameters:
query - - ArtifactQuery the query to execute
Throws:
java.lang.IllegalArgumentException
TigerstripeException

getLocalTimeStamp

long getLocalTimeStamp()
                       throws TigerstripeException
Deprecated. 
Returns the last time of modification on the model, whatever the change is

Returns:
Throws:
TigerstripeException