public class

ProjectComponentImpl

extends Object
implements ProjectComponent
java.lang.Object
   ↳ com.atlassian.jira.bc.project.component.ProjectComponentImpl

Class Overview

Standard implementation of the ProjectComponent.

Summary

Public Constructors
ProjectComponentImpl(String name, String description, String lead, long assigneeType)
ProjectComponentImpl(Long id, String name, String description, String lead, long assigneeType, Long projectId)
Protected Constructors
ProjectComponentImpl(Long id, String name, String description, String lead, long assigneeType, Long projectId, GenericValue gv)
Public Methods
boolean equals(Object o)
Returns true if same object, instance of ProjectComponent and equal ID.
long getAssigneeType()
Returns the assignee type.
ApplicationUser getComponentLead()
Returns the lead for this project component.
String getDescription()
Returns the component description.
GenericValue getGenericValue()
This method is deprecated. use this object instead
Long getId()
Returns the component ID.
String getLead()
Returns the key 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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.project.component.ProjectComponent
From interface com.atlassian.jira.project.ProjectConstant

Public Constructors

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

public ProjectComponentImpl (Long id, String name, String description, String lead, long assigneeType, Long projectId)

Protected Constructors

protected ProjectComponentImpl (Long id, String name, String description, String lead, long assigneeType, Long projectId, GenericValue gv)

Public Methods

public boolean equals (Object o)

Returns true if same object, instance of ProjectComponent and equal ID.

Parameters
o object to compare with
Returns
  • true if same object, instance of ProjectComponent and equal ID; false otherwise

public long getAssigneeType ()

Returns the assignee type.

Returns
  • the assignee type.

public ApplicationUser getComponentLead ()

Returns the lead for this project component.

Returns
  • the lead for this project component

public String getDescription ()

Returns the component description.

Returns
  • component description

public GenericValue getGenericValue ()

This method is deprecated.
use this object instead

Returns
  • a GenericValue representation

public Long getId ()

Returns the component ID.

Returns
  • component ID

public String getLead ()

Returns the key of the lead for this project component.

Returns
  • userkey of the lead for this project component

public String getName ()

Returns the name of this project component.

Returns
  • name of this project component

public Long getProjectId ()

Returns the id of the project of this component.

Returns
  • the project's id.

public int hashCode ()

Returns the hash code of the ID

Returns
  • hash code of the ID

public String toString ()

Nice debug output.

Returns
  • a detailed String representation useful in debug.