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

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

public class ProjectComponentImpl
extends Object
implements ProjectComponent

Standard implementation of the ProjectComponent.


Constructor Summary
protected ProjectComponentImpl(Long id, String name, String description, String lead, long assigneeType, Long projectId, org.ofbiz.core.entity.GenericValue gv)
           
  ProjectComponentImpl(String name, String description, String lead, long assigneeType)
           
 
Method Summary
 boolean equals(Object o)
          Returns true if same object, instance of ProjectComponent and equal ID.
 long getAssigneeType()
          Returns the assignee type.
 String getDescription()
          Returns the component description.
 org.ofbiz.core.entity.GenericValue getGenericValue()
          Deprecated. use this object instead
 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
 String toString()
          Nice debug output.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectComponentImpl

public ProjectComponentImpl(String name,
                            String description,
                            String lead,
                            long assigneeType)

ProjectComponentImpl

protected ProjectComponentImpl(Long id,
                               String name,
                               String description,
                               String lead,
                               long assigneeType,
                               Long projectId,
                               org.ofbiz.core.entity.GenericValue gv)
Method Detail

getId

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

Specified by:
getId in interface ProjectComponent
Returns:
component ID

getDescription

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

Specified by:
getDescription in interface ProjectComponent
Returns:
component description

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

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

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.

getAssigneeType

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

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

equals

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

Overrides:
equals in class Object
Parameters:
o - object to compare with
Returns:
true if same object, instance of ProjectComponent 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()
Nice debug output.

Overrides:
toString in class Object
Returns:
a detailed String representation useful in debug.

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Deprecated. use this object instead

Specified by:
getGenericValue in interface ProjectComponent
Returns:
a GenericValue representation


Copyright © 2002-2013 Atlassian. All Rights Reserved.