com.atlassian.jira.bc.project.component
Class MutableProjectComponent

java.lang.Object
  extended by com.atlassian.jira.bc.project.component.MutableProjectComponent
All Implemented Interfaces:
ProjectComponent

public class MutableProjectComponent
extends Object
implements ProjectComponent


Constructor Summary
MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId)
           
 
Method Summary
static Collection copy(Collection c)
          Copy given collection of components
static MutableProjectComponent copy(ProjectComponent c)
          Copy given component
 boolean equals(Object o)
          Returns true if same object, instance of MutableProjectComponent and equal ID.
 boolean equalsName(MutableProjectComponent component)
           
 long getAssigneeType()
          Returns the assignee type.
 String getDescription()
          Returns the component description.
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 Long getId()
          Returns the component ID.
 String getLead()
          Returns the name of the lead for this project component.
 String getName()
          Returns the name of this project component.
 Long getProjectId()
          Returns the id of the project of this component.
 int hashCode()
          Returns the hash code of the ID
 void setAssigneeType(long assigneeType)
           
 void setDescription(String description)
          Set description to give value.
 void setId(Long id)
           
 void setLead(String lead)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableProjectComponent

public MutableProjectComponent(Long id,
                               String name,
                               String description,
                               String lead,
                               long assigneeType,
                               Long projectId)
Method Detail

copy

public static MutableProjectComponent copy(ProjectComponent c)
Copy given component

Parameters:
c - component to copy
Returns:
new instance of MutableProjectComponent set with values of the given component

copy

public static Collection copy(Collection c)
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

getId

public Long getId()
Description copied from interface: ProjectComponent
Returns the component ID.

Specified by:
getId in interface ProjectComponent
Returns:
component ID

setId

public void setId(Long id)

getDescription

public String getDescription()
Description copied from interface: ProjectComponent
Returns the component description.

Specified by:
getDescription in interface ProjectComponent
Returns:
component description

setDescription

public void setDescription(String description)
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

public String getLead()
Description copied from interface: ProjectComponent
Returns the name of the lead for this project component.

Specified by:
getLead in interface ProjectComponent
Returns:
name of the lead for this project component

setLead

public void setLead(String lead)

getName

public String getName()
Description copied from interface: ProjectComponent
Returns the name of this project component.

Specified by:
getName in interface ProjectComponent
Returns:
name of this project component

setName

public void setName(String name)

getProjectId

public Long getProjectId()
Description copied from interface: ProjectComponent
Returns the id of the project of this component.

Specified by:
getProjectId in interface ProjectComponent
Returns:
the project's id.

equals

public boolean equals(Object o)
Returns true if same object, instance of MutableProjectComponent and equal ID.

Overrides:
equals in class Object
Parameters:
o - object to compare with
Returns:
true if same object, instance of MutableProjectComponent and equal ID; false otherwise

hashCode

public int hashCode()
Returns the hash code of the ID

Overrides:
hashCode in class Object
Returns:
hash code of the ID

toString

public String toString()
Overrides:
toString in class Object

equalsName

public boolean equalsName(MutableProjectComponent component)

getAssigneeType

public long getAssigneeType()
Description copied from interface: ProjectComponent
Returns the assignee type.

Specified by:
getAssigneeType in interface ProjectComponent
Returns:
the assignee type.

setAssigneeType

public void setAssigneeType(long assigneeType)

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Specified by:
getGenericValue in interface ProjectComponent
Returns:
the underlying GenericValue


Copyright © 2002-2009 Atlassian. All Rights Reserved.