Class ProjectIdProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ProjectIdProviderImpl
-
- All Implemented Interfaces:
IdSequences<String>
,ProjectIdProvider
public class ProjectIdProviderImpl extends Object implements ProjectIdProvider
- Author:
- Pavel.Sher Date: 05.07.2006
-
-
Field Summary
Fields Modifier and Type Field Description static String
BT_ID_PREFIX
static String
UKNOWN_BUILD_TYPE_ID
-
Constructor Summary
Constructors Constructor Description ProjectIdProviderImpl(NumericIdSequence<Long> projectNumericIdSeq, NumericIdSequence<Long> buildTypeNumericIdSeq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefixedIdSequence
getBuildTypeSequence()
Provides with btId sequence.PrefixedIdSequence
getProjectSequence()
Provides with projectId sequence.IdSequence<String>
getSequence(String domainName)
Provides with the sequence for the specified domain.String
nextOne(String domainName)
Produces and returns one next identifier of the specified domain.
-
-
-
Field Detail
-
BT_ID_PREFIX
public static final String BT_ID_PREFIX
- See Also:
- Constant Field Values
-
UKNOWN_BUILD_TYPE_ID
public static final String UKNOWN_BUILD_TYPE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProjectIdProviderImpl
public ProjectIdProviderImpl(@NotNull NumericIdSequence<Long> projectNumericIdSeq, @NotNull NumericIdSequence<Long> buildTypeNumericIdSeq)
-
-
Method Detail
-
getProjectSequence
@NotNull public PrefixedIdSequence getProjectSequence()
Description copied from interface:ProjectIdProvider
Provides with projectId sequence.- Specified by:
getProjectSequence
in interfaceProjectIdProvider
- Returns:
- the projectId sequence.
-
getBuildTypeSequence
@NotNull public PrefixedIdSequence getBuildTypeSequence()
Description copied from interface:ProjectIdProvider
Provides with btId sequence.- Specified by:
getBuildTypeSequence
in interfaceProjectIdProvider
- Returns:
- the btId sequence.
-
getSequence
@NotNull public IdSequence<String> getSequence(@NotNull String domainName) throws UnknownDomainException
Description copied from interface:IdSequences
Provides with the sequence for the specified domain.- Specified by:
getSequence
in interfaceIdSequences<String>
- Parameters:
domainName
- domain.- Returns:
- the sequence for this domain.
- Throws:
UnknownDomainException
-
nextOne
@NotNull public String nextOne(@NotNull String domainName) throws UnknownDomainException
Description copied from interface:IdSequences
Produces and returns one next identifier of the specified domain.- Specified by:
nextOne
in interfaceIdSequences<String>
- Returns:
- the new identifier.
- Throws:
UnknownDomainException
-
-