Class ArtifactDependencyFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ArtifactDependencyFactoryImpl
-
- All Implemented Interfaces:
ArtifactDependencyFactory
public class ArtifactDependencyFactoryImpl extends Object implements ArtifactDependencyFactory
- Author:
- Pavel.Sher Date: 13.03.2008
-
-
Constructor Summary
Constructors Constructor Description ArtifactDependencyFactoryImpl(BuildTypeIdentifiersManager buildTypeIdentifiersManager, IdGeneratorRegistry idGeneratorRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactDependencyEx
copyArtifactDependencyWithNewId(SArtifactDependency dependency)
Copies an artifact dependency generating new id for it.ArtifactDependencyEx
createArtifactDependency(String id, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration specified by its external id.ArtifactDependencyEx
createArtifactDependency(String id, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule, Function<String,EntityId<String>> externalIdResolver)
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver.ArtifactDependencyEx
createArtifactDependency(String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration specified by its external id.ArtifactDependencyEx
createArtifactDependency(String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule, Function<String,EntityId<String>> externalIdResolver)
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolverArtifactDependencyEx
createArtifactDependency(BuildType sourceBuildType, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration.ArtifactDependencyEx
createArtifactDependencyByInternalId(String id, String sourceBuildTypeInternalId, String sourceBuildTypeExtId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by build type internal id.ArtifactDependencyEx
createArtifactDependencyByInternalId(String sourceBuildTypeInternalId, String sourceBuildTypeExtId, String sourcePaths, RevisionRule revisionRule)
ArtifactDependencyEx
createUnresolvedArtifactDependency(SArtifactDependency dependency, String externalId)
void
setBuildFinders(RevisionRuleBuildFinders buildFinders)
void
setProjectManager(ProjectManagerEx projectManager)
-
-
-
Constructor Detail
-
ArtifactDependencyFactoryImpl
public ArtifactDependencyFactoryImpl(@NotNull BuildTypeIdentifiersManager buildTypeIdentifiersManager, @NotNull IdGeneratorRegistry idGeneratorRegistry)
-
-
Method Detail
-
setProjectManager
public void setProjectManager(ProjectManagerEx projectManager)
-
setBuildFinders
public void setBuildFinders(RevisionRuleBuildFinders buildFinders)
-
createArtifactDependencyByInternalId
@NotNull public ArtifactDependencyEx createArtifactDependencyByInternalId(@NotNull String id, @NotNull String sourceBuildTypeInternalId, @Nullable String sourceBuildTypeExtId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by build type internal id. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Specified by:
createArtifactDependencyByInternalId
in interfaceArtifactDependencyFactory
- Parameters:
id
- artifact dependency idsourceBuildTypeInternalId
- the internal id of an existent build configuration to depend on.sourceBuildTypeExtId
- external id of the source build type if known- Throws:
InvalidIdentifierException
- See Also:
ArtifactDependencyFactory.createArtifactDependency(jetbrains.buildServer.BuildType, String, jetbrains.buildServer.artifacts.RevisionRule)
,ArtifactDependencyFactory.createArtifactDependency(String, String, String, jetbrains.buildServer.artifacts.RevisionRule)
-
createArtifactDependency
@NotNull public ArtifactDependencyEx createArtifactDependency(@NotNull String id, @NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by a build configuration specified by its external id. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Specified by:
createArtifactDependency
in interfaceArtifactDependencyFactory
- Parameters:
id
- artifact dependency idsourceBuildTypeExternalId
- the external id of the build configuration to depend on.- Returns:
- Throws:
InvalidIdentifierException
-
createArtifactDependency
@NotNull public ArtifactDependencyEx createArtifactDependency(@NotNull String id, @NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule, @NotNull Function<String,EntityId<String>> externalIdResolver) throws InvalidIdentifierException
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Specified by:
createArtifactDependency
in interfaceArtifactDependencyFactory
- Parameters:
id
- artifact dependency idsourceBuildTypeExternalId
- the external id of the build configuration to depend on.externalIdResolver
- a function used to resolve build type external id into its EntityId- Returns:
- Throws:
InvalidIdentifierException
-
copyArtifactDependencyWithNewId
@NotNull public ArtifactDependencyEx copyArtifactDependencyWithNewId(@NotNull SArtifactDependency dependency)
Description copied from interface:ArtifactDependencyFactory
Copies an artifact dependency generating new id for it.- Specified by:
copyArtifactDependencyWithNewId
in interfaceArtifactDependencyFactory
- Parameters:
dependency
- Artifact dependency to copy- Returns:
-
createArtifactDependency
@NotNull public ArtifactDependencyEx createArtifactDependency(@NotNull BuildType sourceBuildType, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by a build configuration.- Specified by:
createArtifactDependency
in interfaceArtifactDependencyFactory
- Parameters:
sourceBuildType
- the build configuration to depend on.- Returns:
-
createArtifactDependencyByInternalId
@NotNull public ArtifactDependencyEx createArtifactDependencyByInternalId(@NotNull String sourceBuildTypeInternalId, @Nullable String sourceBuildTypeExtId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)
- Specified by:
createArtifactDependencyByInternalId
in interfaceArtifactDependencyFactory
- Parameters:
sourceBuildTypeInternalId
- the internal id of an existent build configuration to depend on.sourceBuildTypeExtId
- external id of the source build type if known- See Also:
ArtifactDependencyFactory.createArtifactDependency(jetbrains.buildServer.BuildType, String, jetbrains.buildServer.artifacts.RevisionRule)
,ArtifactDependencyFactory.createArtifactDependency(String, String, jetbrains.buildServer.artifacts.RevisionRule)
-
createArtifactDependency
@NotNull public ArtifactDependencyEx createArtifactDependency(@NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by a build configuration specified by its external id.- Specified by:
createArtifactDependency
in interfaceArtifactDependencyFactory
- Parameters:
sourceBuildTypeExternalId
- the external id of the build configuration to depend on.- Returns:
- Throws:
InvalidIdentifierException
-
createArtifactDependency
public ArtifactDependencyEx createArtifactDependency(@NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule, @NotNull Function<String,EntityId<String>> externalIdResolver) throws InvalidIdentifierException
Description copied from interface:ArtifactDependencyFactory
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver- Specified by:
createArtifactDependency
in interfaceArtifactDependencyFactory
- Parameters:
sourceBuildTypeExternalId
- the external id of the build configuration to depend on.externalIdResolver
- a function used to resolve build type external id into its EntityId- Returns:
- Throws:
InvalidIdentifierException
-
createUnresolvedArtifactDependency
@NotNull public ArtifactDependencyEx createUnresolvedArtifactDependency(@NotNull SArtifactDependency dependency, @NotNull String externalId) throws InvalidIdentifierException
- Throws:
InvalidIdentifierException
-
-