Class Overview
Bean implementation of Project interface but doesn't believe in GenericValues. Equals and hashCode are based on
id alone.
Summary
Public Constructors |
|
MockProject(GenericValue gv)
|
|
MockProject()
|
|
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, GenericValue projectGV)
|
|
MockProject(Long id, String key, String name, GenericValue projectGV)
|
Public Constructors
public
MockProject
(GenericValue gv)
public
MockProject
(long id)
public
MockProject
(Long id)
public
MockProject
(long id, String key)
public
MockProject
(long id, String key, String name, GenericValue projectGV)
Public Methods
public
boolean
equals
(Object o)
public
Long
getAssigneeType
()
Returns the default assignee for issues that get created in this project.
Returns PROJECT_LEAD
or 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.
Returns
- the default assignee. NB: Can return NULL
@Nonnull
public
Avatar
getAvatar
()
Gives the currently-configured Avatar
for this project.
Returns
- the current Avatar, never null.
public
Collection<GenericValue>
getComponents
()
Returns the components for this Project.
Returns
- the components for this Project.
public
Long
getCounter
()
public
String
getDescription
()
public
GenericValue
getGenericValue
()
public
User
getLeadUser
()
public
String
getLeadUserKey
()
public
String
getLeadUserName
()
public
String
getOriginalKey
()
public
GenericValue
getProjectCategory
()
Returns the components for this Project.
Returns
- the components for this Project.
public
void
setAssigneeType
(Long assigneeType)
public
void
setAvatar
(Avatar avatar)
public
void
setComponents
(Collection<GenericValue> components)
public
void
setCounter
(Long counter)
public
void
setDescription
(String description)
public
void
setId
(Long id)
public
void
setKey
(String key)
public
void
setLead
(User lead)
public
void
setName
(String name)
public
void
setProjectCategoryGV
(GenericValue projectCategoryGV)
public
void
setUrl
(String url)