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

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

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 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.
 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
Specified by:
getName in interface ProjectConstant
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
Specified by:
getId in interface ProjectConstant
Returns:
component ID

getDescription

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

Specified by:
getDescription in interface ProjectComponent
Specified by:
getDescription in interface ProjectConstant
Returns:
component description

getLead

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

Specified by:
getLead in interface ProjectComponent
Returns:
userkey 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
Specified by:
getProjectId in interface ProjectConstant
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

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-2013 Atlassian. All Rights Reserved.