com.atlassian.jira.project
Interface IManageableAsProject

All Known Implementing Classes:
AManageableAsProject

public interface IManageableAsProject

Since:
3.10.1.21
Author:
Kaamelot

Method Summary
 void appendChild(IManageableAsProject _child)
          Create an association Parent - Child using the relation specified by getParentRelation()
 void associateToParent()
          Create an association Parent - Child using the relation specified by getParentRelation() assuming as Parent the Manageable Project returned by getParentManageableAsProject()
 java.lang.String getCategoryName()
           
 java.lang.String getChildEntityName()
           
 java.lang.String getChildRelation()
           
 java.util.List getChildren()
           
 java.lang.String getDescription()
           
 java.lang.String getEntityName()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 java.lang.Long getId()
           
 java.lang.String getIssueTypeCode()
           
 java.lang.String getJIRAProjectRelation()
           
 com.opensymphony.user.User getLeader()
           
 java.util.Collection getLeaders()
           
 IManageableAsProject getParentManageableAsProject()
           
 IManageableAsProject getParentManageableAsProject(java.lang.Class _parentClass)
           
 IManageableAsProject getParentManageableAsProject(long _level)
           
 java.lang.String getParentRelation()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 java.lang.String getProjectKey()
           
 com.atlassian.jira.project.Project getProjectObject()
           
 java.lang.String getShortDescription()
           
 boolean isManagedAsProject()
           
 boolean isParentManageableEntityRequired()
           
 void populateFields(ProjectCreator _pc)
          Populates the ProjectCreator attributes required to perform the Project Creation.
 void setProject(org.ofbiz.core.entity.GenericValue project)
           
 

Method Detail

getEntityName

java.lang.String getEntityName()
Returns:
The Entity Name (OFBIZ)

getId

java.lang.Long getId()
Returns:
Entity Id

getShortDescription

java.lang.String getShortDescription()
Returns:
Short description

getDescription

java.lang.String getDescription()
Returns:
Description to use in case of Project creation

getJIRAProjectRelation

java.lang.String getJIRAProjectRelation()
Returns:
The Node Association Relation Key for Entity against JIRA Project

getParentRelation

java.lang.String getParentRelation()
Returns:
The Node Association Relation Key for Entity against Parent Entity

getChildRelation

java.lang.String getChildRelation()
Returns:
The Node Association Relation Key for Entity against Child Entity

getChildEntityName

java.lang.String getChildEntityName()
Returns:
The Child Entity Name

getChildren

java.util.List getChildren()
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectKey

java.lang.String getProjectKey()
Returns:
The Key used for JIRA Project Identification

getIssueTypeCode

java.lang.String getIssueTypeCode()
Returns:
The Issue Type Code

getProject

org.ofbiz.core.entity.GenericValue getProject()
                                              throws org.ofbiz.core.entity.GenericEntityException
Returns:
The associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectObject

com.atlassian.jira.project.Project getProjectObject()
                                                    throws org.ofbiz.core.entity.GenericEntityException
Returns:
The associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

setProject

void setProject(org.ofbiz.core.entity.GenericValue project)
                throws org.ofbiz.core.entity.GenericEntityException
Parameters:
project - The associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

getGenericValue

org.ofbiz.core.entity.GenericValue getGenericValue()
Returns:
GenericValue of the current entity.

associateToParent

void associateToParent()
Create an association Parent - Child using the relation specified by getParentRelation() assuming as Parent the Manageable Project returned by getParentManageableAsProject()


appendChild

void appendChild(IManageableAsProject _child)
                 throws org.ofbiz.core.entity.GenericEntityException
Create an association Parent - Child using the relation specified by getParentRelation()

Parameters:
_child - Manageable Project to associate as Child of current Project
Throws:
org.ofbiz.core.entity.GenericEntityException

isManagedAsProject

boolean isManagedAsProject()
                           throws org.ofbiz.core.entity.GenericEntityException
Returns:
True, if the Entity has an associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

isParentManageableEntityRequired

boolean isParentManageableEntityRequired()
Returns:
True, if a Parent Entity should exist

getParentManageableAsProject

IManageableAsProject getParentManageableAsProject()
                                                  throws org.ofbiz.core.entity.GenericEntityException
Returns:
The direct Parent Entity of the current Manageable Entity
Throws:
org.ofbiz.core.entity.GenericEntityException

getParentManageableAsProject

IManageableAsProject getParentManageableAsProject(long _level)
                                                  throws org.ofbiz.core.entity.GenericEntityException
Returns:
The Parent Entity of the current Manageable Entity depending on the level Level 1 = Direct Parent Level 2 = Direct Parent of Direct Parent
Throws:
org.ofbiz.core.entity.GenericEntityException

getParentManageableAsProject

IManageableAsProject getParentManageableAsProject(java.lang.Class _parentClass)
                                                  throws org.ofbiz.core.entity.GenericEntityException
Parameters:
_parentClass - Wanted Class for the searched Parent
Returns:
The 1st Parent Entity of the current Manageable Entity, respecting the specified _parentClass
Throws:
org.ofbiz.core.entity.GenericEntityException

getLeaders

java.util.Collection getLeaders()
Returns:
Collection of User candidate to be the leader of the project. The implemented ProjectCreator will define which one will be the final leader, and in which Group or Role will be applied to the leaders candidates

getLeader

com.opensymphony.user.User getLeader()
Returns:
1st candidate User to be the leader of the project.

populateFields

void populateFields(ProjectCreator _pc)
Populates the ProjectCreator attributes required to perform the Project Creation.

Parameters:
_pc - ProjectCreator

getCategoryName

java.lang.String getCategoryName()
Returns:
the Name of the Category with which the Project have to be linked


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.