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 MutableProjectComponent
Copy given componentstatic Collection
<MutableProjectComponent> Copy given collection of componentsboolean
Returns true if same object, instance of MutableProjectComponent and equal ID.boolean
equalsName
(MutableProjectComponent component) long
Returns the assignee type.Returns the lead for this project component.Returns the component description.org.ofbiz.core.entity.GenericValue
getId()
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.int
hashCode()
Returns the hash code of the IDboolean
Returns archived status of the component.boolean
Returns the deletion status of the component.void
setArchived
(boolean archived) void
setAssigneeType
(long assigneeType) void
setDeleted
(boolean deleted) void
setDescription
(String description) Set description to give value.void
void
void
toString()
-
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:ProjectComponent
Returns the component ID.- Specified by:
getId
in interfaceProjectComponent
- Specified by:
getId
in interfaceProjectConstant
- Returns:
- component ID
-
setId
-
getDescription
Description copied from interface:ProjectComponent
Returns the component description.- Specified by:
getDescription
in interfaceProjectComponent
- Specified by:
getDescription
in 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:ProjectComponent
Returns the key of the lead for this project component.- Specified by:
getLead
in interfaceProjectComponent
- Returns:
- userkey of the lead for this project component
-
getComponentLead
Description copied from interface:ProjectComponent
Returns the lead for this project component.- Specified by:
getComponentLead
in interfaceProjectComponent
- Returns:
- the lead for this project component
-
setLead
-
getName
Description copied from interface:ProjectComponent
Returns the name of this project component.- Specified by:
getName
in interfaceProjectComponent
- Specified by:
getName
in interfaceProjectConstant
- Returns:
- name of this project component
-
setName
-
getProjectId
Description copied from interface:ProjectComponent
Returns the id of the project of this component.- Specified by:
getProjectId
in interfaceProjectComponent
- Specified by:
getProjectId
in interfaceProjectConstant
- Returns:
- the project's id.
-
getAssigneeType
public long getAssigneeType()Description copied from interface:ProjectComponent
Returns the assignee type.- Specified by:
getAssigneeType
in interfaceProjectComponent
- Returns:
- the assignee type.
- See Also:
-
setAssigneeType
public void setAssigneeType(long assigneeType) -
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()- Specified by:
getGenericValue
in interfaceProjectComponent
- Returns:
- the underlying GenericValue
-
isArchived
public boolean isArchived()Description copied from interface:ProjectComponent
Returns archived status of the component.- Specified by:
isArchived
in interfaceProjectComponent
- Returns:
- true if component is archived.
-
setArchived
public void setArchived(boolean archived) -
isDeleted
public boolean isDeleted()Description copied from interface:ProjectComponent
Returns the deletion status of the component.- Specified by:
isDeleted
in 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
-