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 StringBT_ID_PREFIXstatic StringUKNOWN_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 PrefixedIdSequencegetBuildTypeSequence()Provides with btId sequence.PrefixedIdSequencegetProjectSequence()Provides with projectId sequence.IdSequence<String>getSequence(String domainName)Provides with the sequence for the specified domain.StringnextOne(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:ProjectIdProviderProvides with projectId sequence.- Specified by:
getProjectSequencein interfaceProjectIdProvider- Returns:
- the projectId sequence.
-
getBuildTypeSequence
@NotNull public PrefixedIdSequence getBuildTypeSequence()
Description copied from interface:ProjectIdProviderProvides with btId sequence.- Specified by:
getBuildTypeSequencein interfaceProjectIdProvider- Returns:
- the btId sequence.
-
getSequence
@NotNull public IdSequence<String> getSequence(@NotNull String domainName) throws UnknownDomainException
Description copied from interface:IdSequencesProvides with the sequence for the specified domain.- Specified by:
getSequencein 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:IdSequencesProduces and returns one next identifier of the specified domain.- Specified by:
nextOnein interfaceIdSequences<String>- Returns:
- the new identifier.
- Throws:
UnknownDomainException
-
-