com.atlassian.bamboo.build.artifact
Class LocalArtifactManager

java.lang.Object
  extended by com.atlassian.bamboo.build.artifact.AbstractArtifactManager
      extended by com.atlassian.bamboo.build.artifact.LocalArtifactManager
All Implemented Interfaces:
ArtifactManager

public class LocalArtifactManager
extends AbstractArtifactManager


Constructor Summary
LocalArtifactManager(BuildLoggerManager buildLoggerManager, BuildResultsSummaryManager buildResultsSummaryManager, BuildDirectoryManager buildDirectoryManager, ArtifactSubscriptionManager artifactSubscriptionManager)
           
 
Method Summary
 AdministrationConfiguration getAdministrationConfiguration()
           
protected  boolean publishFileSet(PlanResultKey planResultKey, ArtifactDefinitionContext artifact, org.apache.tools.ant.types.FileSet sourceFileSet, boolean deleteSource)
           
static void removeArtifactFiles(Plan plan)
           
static void removeArtifactFiles(Plan plan, int buildNumber)
           
static void removeSingleArtifactFiles(PlanResultKey planResultKey, ArtifactLink artifactLink)
           
 boolean retrieve(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription)
          Retrieves an artifact from artifact storage.
 
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactManager
createFileSet, publish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalArtifactManager

public LocalArtifactManager(BuildLoggerManager buildLoggerManager,
                            BuildResultsSummaryManager buildResultsSummaryManager,
                            BuildDirectoryManager buildDirectoryManager,
                            ArtifactSubscriptionManager artifactSubscriptionManager)
Method Detail

publishFileSet

protected boolean publishFileSet(PlanResultKey planResultKey,
                                 ArtifactDefinitionContext artifact,
                                 org.apache.tools.ant.types.FileSet sourceFileSet,
                                 boolean deleteSource)
Specified by:
publishFileSet in class AbstractArtifactManager

retrieve

public boolean retrieve(@NotNull
                        PlanResultKey planResultKey,
                        @NotNull
                        ArtifactSubscriptionContext artifactSubscription)
Description copied from interface: ArtifactManager
Retrieves an artifact from artifact storage.

Parameters:
planResultKey - the plan result that contains the artifact
artifactSubscription - the artifact subscription used to identify artifact
Returns:
true if retrieval was successful, false otherwise

removeSingleArtifactFiles

public static void removeSingleArtifactFiles(@NotNull
                                             PlanResultKey planResultKey,
                                             @NotNull
                                             ArtifactLink artifactLink)

removeArtifactFiles

public static void removeArtifactFiles(Plan plan)

removeArtifactFiles

public static void removeArtifactFiles(Plan plan,
                                       int buildNumber)

getAdministrationConfiguration

public AdministrationConfiguration getAdministrationConfiguration()


Copyright © 2011 Atlassian. All Rights Reserved.