|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.project.MockProject
public class MockProject
Bean implementation of Project interface but doesn't believe in GenericValues. Equals and hashCode are based on id alone.
| Constructor Summary | |
|---|---|
MockProject()
|
|
MockProject(org.ofbiz.core.entity.GenericValue gv)
|
|
MockProject(long id)
|
|
MockProject(Long id)
|
|
MockProject(long id,
String key)
|
|
MockProject(long id,
String key,
String name)
|
|
MockProject(Long id,
String key,
String name)
|
|
MockProject(long id,
String key,
String name,
org.ofbiz.core.entity.GenericValue projectGV)
|
|
MockProject(Long id,
String key,
String name,
org.ofbiz.core.entity.GenericValue projectGV)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Long |
getAssigneeType()
Returns the default assignee for issues that get created in this project. |
Avatar |
getAvatar()
Gives the currently-configured Avatar for this project. |
Collection<org.ofbiz.core.entity.GenericValue> |
getComponents()
Returns the components for this Project. |
Long |
getCounter()
|
String |
getDescription()
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
|
Long |
getId()
|
Collection<IssueType> |
getIssueTypes()
|
String |
getKey()
|
com.atlassian.crowd.embedded.api.User |
getLead()
|
com.atlassian.crowd.embedded.api.User |
getLeadUser()
Returns the Project Lead |
String |
getLeadUserName()
|
String |
getName()
|
org.ofbiz.core.entity.GenericValue |
getProjectCategory()
|
Collection<ProjectComponent> |
getProjectComponents()
Returns the components for this Project. |
String |
getUrl()
|
Collection<Version> |
getVersions()
|
int |
hashCode()
|
void |
setAssigneeType(Long assigneeType)
|
void |
setAvatar(Avatar avatar)
|
void |
setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
|
void |
setCounter(Long counter)
|
void |
setDescription(String description)
|
void |
setId(Long id)
|
MockProject |
setIssueTypes(Collection<IssueType> types)
|
MockProject |
setIssueTypes(IssueType... types)
|
MockProject |
setIssueTypes(String... types)
|
void |
setKey(String key)
|
void |
setLead(com.atlassian.crowd.embedded.api.User lead)
|
void |
setName(String name)
|
void |
setProjectCategoryGV(org.ofbiz.core.entity.GenericValue projectCategoryGV)
|
void |
setUrl(String url)
|
void |
setVersions(Collection<Version> versions)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockProject(org.ofbiz.core.entity.GenericValue gv)
public MockProject()
public MockProject(long id)
public MockProject(Long id)
public MockProject(long id,
String key)
public MockProject(long id,
String key,
String name)
public MockProject(Long id,
String key,
String name)
public MockProject(long id,
String key,
String name,
org.ofbiz.core.entity.GenericValue projectGV)
public MockProject(Long id,
String key,
String name,
org.ofbiz.core.entity.GenericValue projectGV)
| Method Detail |
|---|
public Long getAssigneeType()
ProjectAssigneeTypes.PROJECT_LEAD or AssigneeTypes.UNASSIGNED.
Can return NULL if the default assignee has not been set for this project and this means the PROJECT LEAD is the default assignee.
TODO: Write upgrade task to ensure default assignee is always set.
getAssigneeType in interface Projectpublic void setAssigneeType(Long assigneeType)
public Collection<org.ofbiz.core.entity.GenericValue> getComponents()
Project
getComponents in interface ProjectProject.getProjectComponents()public Collection<ProjectComponent> getProjectComponents()
Project
getProjectComponents in interface Projectpublic void setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
public Long getCounter()
getCounter in interface Projectpublic void setCounter(Long counter)
public String getDescription()
getDescription in interface Projectpublic void setDescription(String description)
public Long getId()
getId in interface Projectpublic void setId(Long id)
public String getKey()
getKey in interface Projectpublic void setKey(String key)
public String getName()
getName in interface Projectpublic void setName(String name)
public String getUrl()
getUrl in interface Projectpublic void setUrl(String url)
public Collection<Version> getVersions()
getVersions in interface ProjectVersion for this projectpublic Collection<IssueType> getIssueTypes()
getIssueTypes in interface ProjectIssueType for this projectpublic MockProject setIssueTypes(IssueType... types)
public MockProject setIssueTypes(Collection<IssueType> types)
public MockProject setIssueTypes(String... types)
public org.ofbiz.core.entity.GenericValue getProjectCategory()
getProjectCategory in interface Projectpublic void setProjectCategoryGV(org.ofbiz.core.entity.GenericValue projectCategoryGV)
public void setVersions(Collection<Version> versions)
public org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue in interface Projectpublic com.atlassian.crowd.embedded.api.User getLead()
getLead in interface Projectpublic com.atlassian.crowd.embedded.api.User getLeadUser()
Project
getLeadUser in interface Projectpublic void setLead(com.atlassian.crowd.embedded.api.User lead)
public String getLeadUserName()
getLeadUserName in interface Project@NotNull public Avatar getAvatar()
ProjectAvatar for this project.
getAvatar in interface Projectpublic void setAvatar(Avatar avatar)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||