Class ProjectComponentImpl

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

public class ProjectComponentImpl extends Object implements ProjectComponent
Standard implementation of the ProjectComponent.
  • Constructor Details

    • ProjectComponentImpl

      public ProjectComponentImpl(Long id, String name, String description, String lead, long assigneeType, Long projectId, boolean archived, org.ofbiz.core.entity.GenericValue gv)
    • ProjectComponentImpl

      public ProjectComponentImpl(Long id, String name, String description, String lead, long assigneeType, Long projectId, boolean archived, boolean deleted, org.ofbiz.core.entity.GenericValue gv)
  • Method Details

    • 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
    • getComponentLead

      public ApplicationUser getComponentLead()
      Description copied from interface: ProjectComponent
      Returns the lead for this project component.
      Specified by:
      getComponentLead in interface ProjectComponent
      Returns:
      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
      Specified by:
      getName in interface ProjectConstant
      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
      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:
    • isArchived

      public boolean isArchived()
      Description copied from interface: ProjectComponent
      Returns archived status of the component.
      Specified by:
      isArchived in interface ProjectComponent
      Returns:
      true if component is archived.
    • isDeleted

      public boolean isDeleted()
      Description copied from interface: ProjectComponent
      Returns the deletion status of the component.
      Specified by:
      isDeleted in interface ProjectComponent
      Returns:
      true if the component is deleted.
    • 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