|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectProvider
A provider of projects.
CVS Info:
$Revision: 840 $ |
$Date: 2007-08-21 11:16:41 -0600 (Tue, 21 Aug 2007) $ |
$Author: dharland $ |
Method Summary | |
---|---|
Project |
findByCode(String code)
Returns the Project with the given code , if any. |
Project |
findById(long id)
Returns the Project with the given id , if any. |
List<Project> |
findByUserId(long uid)
Return a List of Projects that are owned (a.k.a. |
List<Project> |
findProjects(EventSetStatus status)
Returns the a list of projects held by this provider that have the given status. |
List<Project> |
findProjects(Long userId,
EventSetStatus status)
Returns the a list of projects held by this provider that have the given status and are owned by the user with the given ID. |
List<Project> |
findProjects(Long userId,
String proposalCode)
This method returns a List of Projects owned by userId that
have a proposal code of proposalCode . |
List<Project> |
findTestProjects(Long userId)
Returns the a list of test projects owned by the user with the given ID. |
List<Project> |
getAllProjects()
Returns a list of all projects held by this provider. |
Method Detail |
---|
Project findById(long id) throws RepositoryException
Project
with the given id
, if any.
If this provider holds no Project
with an ID of id
,
null is returned.
id
- The identifier (primary key) for a Project
in this
repository.
Project
with the given id
, or
null, if this provider holds no such Project
.
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.Project findByCode(String code) throws RepositoryException
Project
with the given code
, if any.
code
- the Project code to be searched for.
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.List<Project> findByUserId(long uid) throws RepositoryException
uid
RepositoryException
List<Project> findProjects(Long userId, String proposalCode) throws RepositoryException
userId
that
have a proposal code of proposalCode
.
userId
- user id of the user that owns this project.proposalCode
- the proposalCode to be searched for.
RepositoryException
List<Project> findTestProjects(Long userId) throws RepositoryException
If this provider holds no test projects for the given owner, an empty list is returned.
userId
- ID of the user who owns projects.
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.List<Project> findProjects(Long userId, EventSetStatus status) throws RepositoryException
If this provider holds no projects with the given status and owner, an empty list is returned.
userId
- ID of the user who owns projects.status
- the execution status of a project.
status
,
or an empty list if this provider has no such projects.
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.List<Project> findProjects(EventSetStatus status) throws RepositoryException
If this provider holds no projects with the given status, an empty list is returned.
status
- the execution status of a project.
status
,
or an empty list if this provider has no such projects.
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.List<Project> getAllProjects() throws RepositoryException
RepositoryException
- if anything goes wrong while trying to fetch
projects from this provider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |