@Entity public class ArtifactDefinitionImpl extends HibernateBambooEntityWithOid implements ArtifactDefinition
Constructor and Description |
---|
ArtifactDefinitionImpl() |
ArtifactDefinitionImpl(ArtifactDefinition sourceArtifact,
Job newProducerJob,
boolean sharedArtifact,
boolean required)
Constructor used for cloning artifact definitions while a job is being cloned.
|
ArtifactDefinitionImpl(Job producerJob,
String name,
String location,
String copyPattern)
Create a build artifact identified in the UI by the label.
|
ArtifactDefinitionImpl(String name,
String location,
String copyPattern)
Create a build artifact identified in the UI by the label.
|
Modifier and Type | Method and Description |
---|---|
String |
getCopyPattern()
Get artifact copy pattern
|
String |
getLocation()
Get artifact location
|
String |
getName()
Get artifact name
|
Job |
getProducerJob()
Get Buildable that is a producer of artifact
|
List<ArtifactSubscription> |
getSubscriptions()
Get List of ArtifactSubscriptions on this ArtifactDefinition.
|
boolean |
isRequired() |
boolean |
isSharedArtifact()
Get value of "SharedArtifact" flag.
|
void |
setCopyPattern(String copyPattern)
Set copy pattern
|
void |
setLocation(String location)
Set artifact location
|
void |
setName(String name)
Set label
|
void |
setProducerJob(Job producerJob)
Set Buildable that is a producer of artifact
|
void |
setRequired(boolean requiredArtifact) |
void |
setSharedArtifact(boolean sharedArtifact)
Set "SharedArtifact" flag
|
void |
setSubscriptions(List<ArtifactSubscription> subscriptions)
Set subscriptions on this artifact definition.
|
getId, getOid, setId, setOid
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType, getId
getOid
setId
setOid
public ArtifactDefinitionImpl()
public ArtifactDefinitionImpl(String name, String location, String copyPattern)
name
- The UI text labellocation
- Directory to which copy pattern appliescopyPattern
- The ANT style copy pattern, relative to the source code directorypublic ArtifactDefinitionImpl(Job producerJob, String name, String location, String copyPattern)
producerJob
- producer jobname
- The UI text labellocation
- Directory to which copy pattern appliescopyPattern
- The ANT style copy pattern, relative to the source code directorypublic ArtifactDefinitionImpl(ArtifactDefinition sourceArtifact, Job newProducerJob, boolean sharedArtifact, boolean required)
sourceArtifact
- artifact definition to be copiednewProducerJob
- job that will produce artifacts according to the cloned definition@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 pattern@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 locationpublic boolean isSharedArtifact()
ImmutableArtifactDefinitionBase
isSharedArtifact
in interface ImmutableArtifactDefinitionBase
public void setSharedArtifact(boolean sharedArtifact)
ArtifactDefinitionBase
setSharedArtifact
in interface ArtifactDefinitionBase
sharedArtifact
- new value of "SharedArtifact" flagpublic boolean isRequired()
isRequired
in interface ImmutableArtifactDefinitionBase
public void setRequired(boolean requiredArtifact)
setRequired
in interface ArtifactDefinitionBase
requiredArtifact
- if build should fail if can't publish artifact@NotNull public Job getProducerJob()
ArtifactDefinition
getProducerJob
in interface ArtifactDefinition
getProducerJob
in interface ImmutableArtifactDefinition
Job
objectpublic void setProducerJob(@NotNull Job producerJob)
ArtifactDefinition
setProducerJob
in interface ArtifactDefinition
producerJob
- new value of producer job@NotNull public List<ArtifactSubscription> getSubscriptions()
ArtifactDefinition
getSubscriptions
in interface ArtifactDefinition
getSubscriptions
in interface ImmutableArtifactDefinition
ArtifactSubscription
objectspublic void setSubscriptions(@NotNull List<ArtifactSubscription> subscriptions)
ArtifactDefinition
setSubscriptions
in interface ArtifactDefinition
subscriptions
- non null list of ArtifactSubscription
objectsCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.