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, CustomVariableContext customVariableContext)
           
 
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(PlanResultKey planResultKey)
           
static void removeSingleArtifactFiles(PlanResultKey planResultKey, ArtifactLink artifactLink)
           
 boolean retrieve(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription)
          Retrieves an artifact from artifact storage.
 boolean retrieve(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, java.io.File buildWorkingDirectory)
          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,
                            CustomVariableContext customVariableContext)
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

retrieve

public boolean retrieve(@NotNull
                        PlanResultKey planResultKey,
                        @NotNull
                        ArtifactSubscriptionContext artifactSubscription,
                        @NotNull
                        java.io.File buildWorkingDirectory)
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
buildWorkingDirectory - working directory of current build
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(PlanResultKey planResultKey)

getAdministrationConfiguration

public AdministrationConfiguration getAdministrationConfiguration()


Copyright © 2012 Atlassian. All Rights Reserved.