|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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()
|
String |
getEmail()
|
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 |
getLeadUserKey()
|
String |
getLeadUserName()
|
String |
getName()
|
String |
getOriginalKey()
|
org.ofbiz.core.entity.GenericValue |
getProjectCategory()
|
ProjectCategory |
getProjectCategoryObject()
|
Collection<ProjectComponent> |
getProjectComponents()
Returns the components for this Project. |
ApplicationUser |
getProjectLead()
|
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)
|
MockProject |
setEmail(String email)
|
void |
setId(Long id)
|
MockProject |
setIssueTypes(Collection<IssueType> types)
|
MockProject |
setIssueTypes(IssueType... types)
|
MockProject |
setIssueTypes(String... types)
|
void |
setKey(String key)
|
void |
setLead(ApplicationUser lead)
|
void |
setLead(com.atlassian.crowd.embedded.api.User lead)
|
void |
setName(String name)
|
void |
setProjectCategoryGV(org.ofbiz.core.entity.GenericValue projectCategoryGV)
|
void |
setProjectComponents(Collection<ProjectComponent> projectComponents)
|
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()
Project
AssigneeTypes.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 Project
public void setAssigneeType(Long assigneeType)
public Collection<ProjectComponent> getProjectComponents()
Project
getProjectComponents
in interface Project
public void setProjectComponents(Collection<ProjectComponent> projectComponents)
public Collection<org.ofbiz.core.entity.GenericValue> getComponents()
Project
getComponents
in interface Project
Project.getProjectComponents()
public void setComponents(Collection<org.ofbiz.core.entity.GenericValue> components)
public Long getCounter()
getCounter
in interface Project
public void setCounter(Long counter)
public String getDescription()
getDescription
in interface Project
getDescription
in interface NamedWithDescription
public void setDescription(String description)
public Long getId()
getId
in interface WithId
getId
in interface Project
public void setId(Long id)
public String getKey()
getKey
in interface WithKey
getKey
in interface Project
public void setKey(String key)
public String getName()
getName
in interface Project
getName
in interface Named
public void setName(String name)
public String getUrl()
getUrl
in interface Project
public void setUrl(String url)
public MockProject setEmail(String email)
public String getEmail()
getEmail
in interface Project
public Collection<Version> getVersions()
getVersions
in interface Project
Version
for this projectpublic Collection<IssueType> getIssueTypes()
getIssueTypes
in interface Project
IssueType
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 Project
public ProjectCategory getProjectCategoryObject()
getProjectCategoryObject
in interface Project
public void setProjectCategoryGV(org.ofbiz.core.entity.GenericValue projectCategoryGV)
public void setVersions(Collection<Version> versions)
public org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue
in interface Project
public com.atlassian.crowd.embedded.api.User getLead()
getLead
in interface Project
public com.atlassian.crowd.embedded.api.User getLeadUser()
Project
getLeadUser
in interface Project
public void setLead(ApplicationUser lead)
public void setLead(com.atlassian.crowd.embedded.api.User lead)
public String getLeadUserName()
getLeadUserName
in interface Project
@Nonnull public Avatar getAvatar()
Project
Avatar
for this project.
getAvatar
in interface Project
public ApplicationUser getProjectLead()
getProjectLead
in interface Project
public String getLeadUserKey()
getLeadUserKey
in interface Project
public String getOriginalKey()
getOriginalKey
in interface Project
public void setAvatar(Avatar avatar)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |