Package org.dependency.domain
Class Project
- java.lang.Object
-
- org.dependency.domain.Project
-
- All Implemented Interfaces:
Serializable
public class Project extends Object implements Serializable
Contains the main information about a project.- Author:
- Scott Conway
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Project()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtifactName()StringgetGroupName()longgetProjectId()List<ProjectVersion>getVersionList()booleanisProjectSunset()voidsetArtifactName(String artifactName)Setter for the artifact name.voidsetGroupName(String groupName)Setter for the group name.voidsetProjectId(long projectId)Setter for the project id.voidsetProjectSunset(boolean projectSunset)Setter for the sunset.voidsetVersionList(List<ProjectVersion> versionList)Setter for the project version list.StringtoString()
-
-
-
Method Detail
-
getProjectId
public long getProjectId()
- Returns:
- the id of the project that is used by the database.
-
setProjectId
public void setProjectId(long projectId)
Setter for the project id.- Parameters:
projectId-
-
getGroupName
public String getGroupName()
- Returns:
- the maven groupId of the Project - for example the groupId of this application is "org.dependency".
-
setGroupName
public void setGroupName(String groupName)
Setter for the group name.- Parameters:
groupName-
-
getArtifactName
public String getArtifactName()
- Returns:
- the maven artifactId of the dependency - for example the artifactId for this application is "tracker-server".
-
setArtifactName
public void setArtifactName(String artifactName)
Setter for the artifact name.- Parameters:
artifactName-
-
isProjectSunset
public boolean isProjectSunset()
- Returns:
- - If a project is sunset. The only reason an entire project is sunset is that it is no longer deployed on any servers.
-
setProjectSunset
public void setProjectSunset(boolean projectSunset)
Setter for the sunset.- Parameters:
projectSunset-
-
getVersionList
public List<ProjectVersion> getVersionList()
- Returns:
- a list of ProjectVersion for the project.
-
setVersionList
public void setVersionList(List<ProjectVersion> versionList)
Setter for the project version list.- Parameters:
versionList-
-
-