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 ArtifactDependencyExcopyArtifactDependencyWithNewId(SArtifactDependency dependency)Copies an artifact dependency generating new id for it.ArtifactDependencyExcreateArtifactDependency(String id, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)Creates an artifact dependency by a build configuration specified by its external id.ArtifactDependencyExcreateArtifactDependency(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.ArtifactDependencyExcreateArtifactDependency(String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)Creates an artifact dependency by a build configuration specified by its external id.ArtifactDependencyExcreateArtifactDependency(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 resolverArtifactDependencyExcreateArtifactDependency(BuildType sourceBuildType, String sourcePaths, RevisionRule revisionRule)Creates an artifact dependency by a build configuration.ArtifactDependencyExcreateArtifactDependencyByInternalId(String id, String sourceBuildTypeInternalId, String sourceBuildTypeExtId, String sourcePaths, RevisionRule revisionRule)Creates an artifact dependency by build type internal id.ArtifactDependencyExcreateArtifactDependencyByInternalId(String sourceBuildTypeInternalId, String sourceBuildTypeExtId, String sourcePaths, RevisionRule revisionRule)ArtifactDependencyExcreateUnresolvedArtifactDependency(SArtifactDependency dependency, String externalId)voidsetBuildFinders(RevisionRuleBuildFinders buildFinders)voidsetProjectManager(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:ArtifactDependencyFactoryCreates 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:
createArtifactDependencyByInternalIdin 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:ArtifactDependencyFactoryCreates 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:
createArtifactDependencyin 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:ArtifactDependencyFactoryCreates 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:
createArtifactDependencyin 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:ArtifactDependencyFactoryCopies an artifact dependency generating new id for it.- Specified by:
copyArtifactDependencyWithNewIdin 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:ArtifactDependencyFactoryCreates an artifact dependency by a build configuration.- Specified by:
createArtifactDependencyin 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:
createArtifactDependencyByInternalIdin 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:ArtifactDependencyFactoryCreates an artifact dependency by a build configuration specified by its external id.- Specified by:
createArtifactDependencyin 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:ArtifactDependencyFactoryCreates an artifact dependency by a build configuration specified by its external id using specified external id resolver- Specified by:
createArtifactDependencyin 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
-
-