com.atlassian.jira.project
Class AManageableAsProject

java.lang.Object
  extended by com.atlassian.jira.referentiel.entities.AExternalEntity
      extended by com.atlassian.jira.project.AManageableAsProject
All Implemented Interfaces:
IManageableAsProject

public abstract class AManageableAsProject
extends AExternalEntity
implements IManageableAsProject

FQCN : com.atlassian.jira.project.AManageableAsProject

Since:
3.10.1.21 Description : AManageableAsProject represents any External entity able to be managed as JIRA Project
Author:
Kaamelot

Field Summary
protected  java.lang.String projectKey
           
 
Fields inherited from class com.atlassian.jira.referentiel.entities.AExternalEntity
associationManager, genericValue, modifiedFields
 
Constructor Summary
AManageableAsProject(org.ofbiz.core.entity.GenericValue genericValue)
          Default Constructor
 
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.util.List getChildren()
           
abstract  java.lang.String getJIRAProjectRelation()
           
 com.opensymphony.user.User getLeader()
           
 IManageableAsProject getParentManageableAsProject()
           
 IManageableAsProject getParentManageableAsProject(java.lang.Class _parentClass)
           
 IManageableAsProject getParentManageableAsProject(long _level)
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 com.atlassian.jira.project.Project getProjectObject()
           
 boolean isManagedAsProject()
           
 boolean isParentManageableEntityRequired()
           
 void setProject(org.ofbiz.core.entity.GenericValue project)
           
 
Methods inherited from class com.atlassian.jira.referentiel.entities.AExternalEntity
addFields, addKeys, equals, getEntityKeys, getEntityName, getGenericValue, getModifiedFields, init, isCreated, load, store, update, updateGV
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.project.IManageableAsProject
getChildEntityName, getChildRelation, getDescription, getEntityName, getGenericValue, getId, getIssueTypeCode, getLeaders, getParentRelation, getProjectKey, getShortDescription, populateFields
 

Field Detail

projectKey

protected java.lang.String projectKey
Constructor Detail

AManageableAsProject

public AManageableAsProject(org.ofbiz.core.entity.GenericValue genericValue)
Default Constructor

Parameters:
genericValue -
Method Detail

getJIRAProjectRelation

public abstract java.lang.String getJIRAProjectRelation()
Specified by:
getJIRAProjectRelation in interface IManageableAsProject
Returns:
The Node Association Relation Key for Entity against JIRA Project
See Also:
IManageableAsProject.getJIRAProjectRelation()

isManagedAsProject

public boolean isManagedAsProject()
                           throws org.ofbiz.core.entity.GenericEntityException
Specified by:
isManagedAsProject in interface IManageableAsProject
Returns:
True if the Entity is managed through an associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

isParentManageableEntityRequired

public boolean isParentManageableEntityRequired()
Specified by:
isParentManageableEntityRequired in interface IManageableAsProject
Returns:
True, if a ParentManageableEntity is required

getProject

public org.ofbiz.core.entity.GenericValue getProject()
                                              throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getProject in interface IManageableAsProject
Returns:
The associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectObject

public com.atlassian.jira.project.Project getProjectObject()
                                                    throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getProjectObject in interface IManageableAsProject
Returns:
The associated JIRA Project
Throws:
org.ofbiz.core.entity.GenericEntityException

getLeader

public com.opensymphony.user.User getLeader()
Specified by:
getLeader in interface IManageableAsProject
Returns:
1st candidate User to be the leader of the project.

setProject

public void setProject(org.ofbiz.core.entity.GenericValue project)
                throws org.ofbiz.core.entity.GenericEntityException
Specified by:
setProject in interface IManageableAsProject
Parameters:
project - Asociated JIRA project
Throws:
org.ofbiz.core.entity.GenericEntityException

associateToParent

public void associateToParent()
Description copied from interface: IManageableAsProject
Create an association Parent - Child using the relation specified by getParentRelation() assuming as Parent the Manageable Project returned by getParentManageableAsProject()

Specified by:
associateToParent in interface IManageableAsProject

appendChild

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

Specified by:
appendChild in interface IManageableAsProject
Parameters:
_child - Manageable Project to associate as Child of current Project
Throws:
org.ofbiz.core.entity.GenericEntityException
See Also:
IManageableAsProject.appendChild(IManageableAsProject)

getParentManageableAsProject

public IManageableAsProject getParentManageableAsProject(long _level)
                                                  throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getParentManageableAsProject in interface IManageableAsProject
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
See Also:
IManageableAsProject.getParentManageableAsProject(Class)

getParentManageableAsProject

public IManageableAsProject getParentManageableAsProject(java.lang.Class _parentClass)
                                                  throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getParentManageableAsProject in interface IManageableAsProject
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
See Also:
IManageableAsProject.getParentManageableAsProject(Class)

getChildren

public java.util.List getChildren()
                           throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getChildren in interface IManageableAsProject
Returns:
List of Children (GenericValue) identified as valid part of the current ManageableAsProject (Validation done by each Leader )
Throws:
org.ofbiz.core.entity.GenericEntityException

getParentManageableAsProject

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

getCategoryName

public java.lang.String getCategoryName()
Specified by:
getCategoryName in interface IManageableAsProject
Returns:
the Name of the Category with which the Project have to be linked
See Also:
IManageableAsProject.getCategoryName()


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