@PublicApi public class

MutableProjectComponent

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

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Summary

Public Constructors
MutableProjectComponent(Long id, String name, String description, String lead, long assigneeType, Long projectId)
Public Methods
static Collection<MutableProjectComponent> copy(Collection<ProjectComponent> 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.
ApplicationUser getComponentLead()
Returns the lead for this project component.
String getDescription()
Returns the component description.
GenericValue getGenericValue()
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
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()
[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 MutableProjectComponent (Long id, String name, String description, String lead, long assigneeType, Long projectId)

Public Methods

public static Collection<MutableProjectComponent> copy (Collection<ProjectComponent> 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

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

public boolean equals (Object o)

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

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

public boolean equalsName (MutableProjectComponent component)

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 ()

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 void setAssigneeType (long assigneeType)

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

public void setId (Long id)

public void setLead (String lead)

public void setName (String name)

public String toString ()