|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.PlanKeys
public final class PlanKeys
Method for producing PlanKey
s and PlanResultKey
s from a String
Field Summary | |
---|---|
static com.google.common.base.Function<PlanKey,PlanKey> |
CHAIN_KEY_FROM_JOB_KEY
|
static com.google.common.base.Function<PlanKey,java.lang.String> |
PARTIAL_JOB_KEY_FROM_JOB_KEY
|
static com.google.common.base.Function<java.lang.String,PlanKey> |
PLAN_KEY_FROM_STRING
|
static char |
SEP
|
Method Summary | |
---|---|
static PlanKey |
getChainKeyFromJobKey(PlanKey jobKey)
Extracts a Chain key from a jobKey and creates new PlanKey
For example, BAM-REL-UNIT becomes BAM-REL |
static PlanKey |
getJobKey(PlanKey chainPlanKey,
java.lang.String jobKey)
Joins the a Chain key and a jobKey part to create a Job PlanKey
For example, BAM-REL and UNIT becomes BAM-REL-UNIT |
static java.lang.String |
getPartialJobKey(PlanKey jobKey)
Return a partial job key from a full job key, e.g. |
static PlanKey |
getPlanKey(java.lang.String planKey)
Creates a PlanKey from its string form 'BAM-BOO' or from the result key form 'BAM-BOO-123' |
static PlanKey |
getPlanKey(java.lang.String projectKey,
java.lang.String buildKey)
Creates a PlanKey from project key and build key |
static PlanKey |
getPlanKey(java.lang.String projectKey,
java.lang.String chainKey,
java.lang.String buildKey)
Creates a PlanKey from project key, parent chain key and build key |
static java.lang.String |
getPlanKeyPart(PlanKey planKey)
Returns plan key part for given PlanKey |
static java.lang.String |
getPlanKeyPart(PlanResultKey planResultKey)
Returns plan key part for given PlanResultKey |
static PlanResultKey |
getPlanResultKey(PlanKey planKey,
int buildNumber)
Creates a PlanResultKey from the given PlanKey and buildNumber |
static PlanResultKey |
getPlanResultKey(java.lang.String planResultKey)
Creates a PlanResultKey from its string form 'BAM-BOO-123' |
static PlanResultKey |
getPlanResultKey(java.lang.String planKey,
int buildNumber)
Creates a PlanResultKey from the given planKey and buildNumber |
static java.lang.String |
getProjectKeyPart(PlanKey planKey)
Returns project key part for given PlanKey |
static java.lang.String |
getProjectKeyPart(PlanResultKey planResultKey)
Returns project key part for given PlanResultKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char SEP
public static final com.google.common.base.Function<java.lang.String,PlanKey> PLAN_KEY_FROM_STRING
public static final com.google.common.base.Function<PlanKey,PlanKey> CHAIN_KEY_FROM_JOB_KEY
public static final com.google.common.base.Function<PlanKey,java.lang.String> PARTIAL_JOB_KEY_FROM_JOB_KEY
Method Detail |
---|
public static PlanKey getPlanKey(@NotNull java.lang.String projectKey, @NotNull java.lang.String buildKey)
PlanKey
from project key and build key
projectKey
- buildKey
-
@Nullable public static java.lang.String getProjectKeyPart(@NotNull PlanKey planKey)
PlanKey
planKey
-
@Nullable public static java.lang.String getProjectKeyPart(@NotNull PlanResultKey planResultKey)
PlanResultKey
planResultKey
-
@Nullable public static java.lang.String getPlanKeyPart(@NotNull PlanKey planKey)
PlanKey
planKey
-
@Nullable public static java.lang.String getPlanKeyPart(@NotNull PlanResultKey planResultKey)
PlanResultKey
planResultKey
-
@NotNull public static PlanKey getJobKey(@NotNull PlanKey chainPlanKey, @NotNull java.lang.String jobKey)
Chain
key and a jobKey part to create a Job PlanKey
For example, BAM-REL and UNIT becomes BAM-REL-UNIT
chainPlanKey
- jobKey
-
@NotNull public static PlanKey getChainKeyFromJobKey(@NotNull PlanKey jobKey)
Chain
key from a jobKey and creates new PlanKey
For example, BAM-REL-UNIT becomes BAM-REL
jobKey
-
java.lang.IllegalArgumentException
- if the argument has incorrect format.public static PlanKey getPlanKey(@NotNull java.lang.String projectKey, @Nullable java.lang.String chainKey, @NotNull java.lang.String buildKey)
PlanKey
from project key, parent chain key and build key
projectKey
- chainKey
- - if empty a key for top level plan is createdbuildKey
-
@NotNull public static PlanKey getPlanKey(@NotNull java.lang.String planKey)
PlanKey
from its string form 'BAM-BOO' or from the result key form 'BAM-BOO-123'
planKey
-
java.lang.IllegalArgumentException
- if key could not be parsedpublic static PlanResultKey getPlanResultKey(java.lang.String planResultKey)
PlanResultKey
from its string form 'BAM-BOO-123'
planResultKey
-
java.lang.IllegalArgumentException
- if key could not be parsedpublic static PlanResultKey getPlanResultKey(java.lang.String planKey, int buildNumber)
PlanResultKey
from the given planKey and buildNumber
planKey
- buildNumber
-
java.lang.IllegalArgumentException
- if key could not be parsedpublic static PlanResultKey getPlanResultKey(PlanKey planKey, int buildNumber)
PlanResultKey
from the given PlanKey
and buildNumber
planKey
- buildNumber
-
public static java.lang.String getPartialJobKey(PlanKey jobKey)
jobKey
- a full job key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |