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

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

public class MockProjectComponent
extends Object
implements ProjectComponent


Constructor Summary
MockProjectComponent(Long id, String name)
           
MockProjectComponent(Long id, String name, Long projectId)
           
 
Method Summary
 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.
 MockProjectComponent setId(Long id)
           
 MockProjectComponent setLead(String lead)
           
 MockProjectComponent setName(String name)
           
 MockProjectComponent setProjectId(Long projectId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockProjectComponent

public MockProjectComponent(Long id,
                            String name)

MockProjectComponent

public MockProjectComponent(Long id,
                            String name,
                            Long projectId)
Method Detail

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

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

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.

setId

public MockProjectComponent setId(Long id)

setName

public MockProjectComponent setName(String name)

setProjectId

public MockProjectComponent setProjectId(Long projectId)

setLead

public MockProjectComponent setLead(String lead)

getGenericValue

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.