public class ArtifactDefinitionContextImpl extends Object implements ArtifactDefinitionContext
Constructor and Description |
---|
ArtifactDefinitionContextImpl(ImmutableArtifactDefinition definition,
SecureToken secureToken) |
ArtifactDefinitionContextImpl(String name,
boolean sharedArtifact,
SecureToken secureToken) |
Modifier and Type | Method and Description |
---|---|
String |
getCopyPattern()
Get artifact copy pattern
|
long |
getId()
Exposes the id of the
ArtifactDefinition |
String |
getLinkType()
|
String |
getLocation()
Get artifact location
|
String |
getName()
Get artifact name
|
BambooEntityOid |
getOid()
OID assigned to this object.
|
SecureToken |
getSecureToken()
The secure token to use for authentication if needed
|
boolean |
hasSubscribers()
Marks if there are subscriptions for for this artifact.
|
boolean |
isSharedArtifact()
Get value of "SharedArtifact" flag.
|
void |
setCopyPattern(String copyPattern)
Set copy pattern
|
void |
setId(long id) |
void |
setLinkType(String linkType)
Deprecated.
since 4.3
|
void |
setLocation(String location)
Set artifact location
|
void |
setName(String name)
Set label
|
void |
setSharedArtifact(boolean sharedArtifact)
Set "SharedArtifact" flag
|
void |
substituteVariables(CustomVariableContext customVariableContext) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public ArtifactDefinitionContextImpl(String name, boolean sharedArtifact, @Nullable SecureToken secureToken)
public ArtifactDefinitionContextImpl(@NotNull ImmutableArtifactDefinition definition, @Nullable SecureToken secureToken)
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
@Nullable public SecureToken getSecureToken()
ArtifactDefinitionContext
getSecureToken
in interface ArtifactDefinitionContext
public void substituteVariables(CustomVariableContext customVariableContext)
substituteVariables
in interface ArtifactDefinitionContext
@NotNull public String getName()
ImmutableArtifactDefinitionBase
getName
in interface ImmutableArtifactDefinitionBase
getName
in interface NameProvider
public void setName(@NotNull String name)
ArtifactDefinitionBase
setName
in interface ArtifactDefinitionBase
name
- new value of labelpublic String getLocation()
ImmutableArtifactDefinitionBase
getLocation
in interface ImmutableArtifactDefinitionBase
public void setLocation(@Nullable String location)
ArtifactDefinitionBase
setLocation
in interface ArtifactDefinitionBase
location
- new artifact location@NotNull public String getCopyPattern()
ImmutableArtifactDefinitionBase
getCopyPattern
in interface ImmutableArtifactDefinitionBase
public void setCopyPattern(@NotNull String copyPattern)
ArtifactDefinitionBase
setCopyPattern
in interface ArtifactDefinitionBase
copyPattern
- new value of copy patternpublic boolean isSharedArtifact()
ImmutableArtifactDefinitionBase
isSharedArtifact
in interface ImmutableArtifactDefinitionBase
public void setSharedArtifact(boolean sharedArtifact)
ArtifactDefinitionBase
setSharedArtifact
in interface ArtifactDefinitionBase
sharedArtifact
- new value of "SharedArtifact" flagpublic boolean hasSubscribers()
ArtifactDefinitionContext
hasSubscribers
in interface ArtifactDefinitionContext
@NotNull public String getLinkType()
ArtifactDefinitionContext
getLinkType
in interface ArtifactDefinitionContext
@Deprecated public void setLinkType(@NotNull String linkType)
public long getId()
ImmutableArtifactDefinitionBase
ArtifactDefinition
getId
in interface BambooIdProvider
getId
in interface ImmutableArtifactDefinitionBase
public void setId(long id)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.