public class Project extends Object implements Serializable, HasCollectionSample<Project>, HasMediaType
Constructor and Description |
---|
Project() |
Project(String id,
String name,
String defaultType) |
Project(String id,
String name,
String type,
String description) |
Modifier and Type | Method and Description |
---|---|
Project |
createSample() |
Collection<Project> |
createSamples() |
boolean |
equals(Object obj) |
String |
getDefaultType()
The project type.
|
String |
getDescription() |
String |
getId()
The project identifier (slug)
|
List<ProjectIteration> |
getIterations()
A list of versions (iterations) in the project
|
List<ProjectIteration> |
getIterations(boolean createIfNull) |
Links |
getLinks()
Set of links managed by this project
This field is ignored in PUT/POST operations
|
Links |
getLinks(boolean createIfNull) |
String |
getMediaType(MediaTypes.Format format) |
String |
getName() |
String |
getSourceCheckoutURL()
The url where to checkout the project's sources.
|
String |
getSourceViewURL()
The url to view the project's sources.
|
EntityStatus |
getStatus()
System state of the project
|
int |
hashCode() |
static void |
main(String[] args) |
void |
setDefaultType(String defaultType) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setIterations(List<ProjectIteration> iterations) |
void |
setLinks(Links links) |
void |
setName(String name) |
void |
setSourceCheckoutURL(String sourceCheckoutURL) |
void |
setSourceViewURL(String sourceViewURL) |
void |
setStatus(EntityStatus status) |
String |
toString() |
public String getId()
public void setId(String id)
public String getDefaultType()
public void setDefaultType(String defaultType)
@NotEmpty @Size(max=80) public String getName()
public void setName(String name)
@Size(max=100) public String getDescription()
public void setDescription(String description)
public String getSourceViewURL()
public void setSourceViewURL(String sourceViewURL)
public String getSourceCheckoutURL()
public void setSourceCheckoutURL(String sourceCheckoutURL)
public Links getLinks()
public void setLinks(Links links)
public Links getLinks(boolean createIfNull)
public List<ProjectIteration> getIterations()
public void setIterations(List<ProjectIteration> iterations)
public List<ProjectIteration> getIterations(boolean createIfNull)
public EntityStatus getStatus()
public void setStatus(EntityStatus status)
public Project createSample()
createSample
in interface HasCollectionSample<Project>
createSample
in interface HasSample<Project>
public Collection<Project> createSamples()
createSamples
in interface HasCollectionSample<Project>
public static void main(String[] args)
public String getMediaType(MediaTypes.Format format)
getMediaType
in interface HasMediaType
Copyright © 2018 Zanata Project. All rights reserved.