com.atlassian.jira.project
Class DefaultProjectFactory

java.lang.Object
  extended by com.atlassian.jira.project.DefaultProjectFactory
All Implemented Interfaces:
ProjectFactory

public class DefaultProjectFactory
extends Object
implements ProjectFactory

Implementation that generates project objects. Note that this class cannot use constructor injection because of cyclic dependencies.


Constructor Summary
DefaultProjectFactory()
           
 
Method Summary
 Project getProject(org.ofbiz.core.entity.GenericValue projectGV)
          Returns a project object that is backed by the given generic value.
 List<Project> getProjects(Collection<org.ofbiz.core.entity.GenericValue> projectGVs)
          Returns the collection of Project objects that are backed by the GenericValue objects in the given collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProjectFactory

public DefaultProjectFactory()
Method Detail

getProject

public Project getProject(org.ofbiz.core.entity.GenericValue projectGV)
Description copied from interface: ProjectFactory
Returns a project object that is backed by the given generic value.

Specified by:
getProject in interface ProjectFactory
Parameters:
projectGV - project generic value
Returns:
existing project or null if project does not exist

getProjects

public List<Project> getProjects(Collection<org.ofbiz.core.entity.GenericValue> projectGVs)
Description copied from interface: ProjectFactory
Returns the collection of Project objects that are backed by the GenericValue objects in the given collection.

Specified by:
getProjects in interface ProjectFactory
Parameters:
projectGVs - GenericValues of projects to return.
Returns:
the Collection of existing projects, possibly empty, never null.


Copyright © 2002-2012 Atlassian. All Rights Reserved.