Class MutableProjectComponent
java.lang.Object
com.atlassian.jira.bc.project.component.MutableProjectComponent
- All Implemented Interfaces:
ProjectComponent,ProjectConstant
-
Constructor Summary
ConstructorsConstructorDescriptionMutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId) Deprecated.MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId, boolean archived) Deprecated.MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId, boolean archived, boolean deleted) -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableProjectComponentCopy given componentstatic Collection<MutableProjectComponent> Copy given collection of componentsbooleanReturns true if same object, instance of MutableProjectComponent and equal ID.booleanequalsName(MutableProjectComponent component) longReturns the assignee type.Returns the lead for this project component.Returns the component description.org.ofbiz.core.entity.GenericValuegetId()Returns the component ID.getLead()Returns the key of the lead for this project component.getName()Returns the name of this project component.Returns the id of the project of this component.inthashCode()Returns the hash code of the IDbooleanReturns archived status of the component.booleanReturns the deletion status of the component.voidsetArchived(boolean archived) voidsetAssigneeType(long assigneeType) voidsetDeleted(boolean deleted) voidsetDescription(String description) Set description to give value.voidvoidvoidtoString()
-
Constructor Details
-
MutableProjectComponent
@Deprecated public MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId) Deprecated. -
MutableProjectComponent
@Deprecated public MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId, boolean archived) Deprecated. -
MutableProjectComponent
-
-
Method Details
-
getId
Description copied from interface:ProjectComponentReturns the component ID.- Specified by:
getIdin interfaceProjectComponent- Specified by:
getIdin interfaceProjectConstant- Returns:
- component ID
-
setId
-
getDescription
Description copied from interface:ProjectComponentReturns the component description.- Specified by:
getDescriptionin interfaceProjectComponent- Specified by:
getDescriptionin interfaceProjectConstant- Returns:
- component description
-
setDescription
Set description to give value. If the value is an empty string, it will be set to null- Parameters:
description- description to set it to
-
getLead
Description copied from interface:ProjectComponentReturns the key of the lead for this project component.- Specified by:
getLeadin interfaceProjectComponent- Returns:
- userkey of the lead for this project component
-
getComponentLead
Description copied from interface:ProjectComponentReturns the lead for this project component.- Specified by:
getComponentLeadin interfaceProjectComponent- Returns:
- the lead for this project component
-
setLead
-
getName
Description copied from interface:ProjectComponentReturns the name of this project component.- Specified by:
getNamein interfaceProjectComponent- Specified by:
getNamein interfaceProjectConstant- Returns:
- name of this project component
-
setName
-
getProjectId
Description copied from interface:ProjectComponentReturns the id of the project of this component.- Specified by:
getProjectIdin interfaceProjectComponent- Specified by:
getProjectIdin interfaceProjectConstant- Returns:
- the project's id.
-
getAssigneeType
public long getAssigneeType()Description copied from interface:ProjectComponentReturns the assignee type.- Specified by:
getAssigneeTypein interfaceProjectComponent- Returns:
- the assignee type.
- See Also:
-
setAssigneeType
public void setAssigneeType(long assigneeType) -
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()- Specified by:
getGenericValuein interfaceProjectComponent- Returns:
- the underlying GenericValue
-
isArchived
public boolean isArchived()Description copied from interface:ProjectComponentReturns archived status of the component.- Specified by:
isArchivedin interfaceProjectComponent- Returns:
- true if component is archived.
-
setArchived
public void setArchived(boolean archived) -
isDeleted
public boolean isDeleted()Description copied from interface:ProjectComponentReturns the deletion status of the component.- Specified by:
isDeletedin interfaceProjectComponent- Returns:
- true if the component is deleted.
-
setDeleted
public void setDeleted(boolean deleted) -
equals
Returns true if same object, instance of MutableProjectComponent and equal ID. -
hashCode
public int hashCode()Returns the hash code of the ID -
toString
-
equalsName
-
copy
Copy given component- Parameters:
c- component to copy- Returns:
- new instance of MutableProjectComponent set with values of the given component
-
copy
Copy given collection of components- Parameters:
c- collection of components to copy- Returns:
- new instance collection of MutableProjectComponent objects set with values of the given components
-