|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProposalProvider
A provider of proposals.
CVS Info:
$Revision: 161 $ |
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $ |
$Author: btruitt $ |
Method Summary | |
---|---|
Proposal |
findByCode(String proposalCode)
Returns the Proposal with the given proposalId , if any. |
Proposal |
findById(long id)
Returns the Proposal with the given id , if any. |
List<Proposal> |
findByUserId(long uid)
|
List<Proposal> |
findProposals(Long userId,
ProposalStatus status)
This method returns a List of Projects owned by userId that
have a status of status . |
List<Proposal> |
findProposals(ProposalStatus status)
returns a non-null (but possibly empty) list of Proposals that have the Proposal Status of status |
List<Proposal> |
getAllProposals()
Returns a list of all proposals held by this provider. |
Method Detail |
---|
Proposal findById(long id) throws RepositoryException
Proposal
with the given id
, if any.
If this provider holds no Proposal
with an ID of id
,
null is returned.
id
- the identifier (primary key) for a Proposal
in this
repository.
Proposal
with the given id
, or
null, if this provider holds no such Proposal
.
RepositoryException
- if anything goes wrong while trying to fetch
proposals from this provider.Proposal findByCode(String proposalCode) throws RepositoryException
Proposal
with the given proposalId
, if any.
If this provider holds no Proposal
with the given proposal ID,
null is returned.
proposalCode
- the identifier for a Proposal
in this
repository.
Proposal
with the given id
, or
null, if this provider holds no such Proposal
.
RepositoryException
- if anything goes wrong while trying to fetch
proposals from this provider.List<Proposal> findByUserId(long uid) throws RepositoryException
RepositoryException
List<Proposal> findProposals(Long userId, ProposalStatus status) throws RepositoryException
userId
that
have a status of status
.
RepositoryException
List<Proposal> findProposals(ProposalStatus status) throws RepositoryException
status
status
- the status to search for.
RepositoryException
List<Proposal> getAllProposals() throws RepositoryException
RepositoryException
- if anything goes wrong while trying to fetch
proposals from this provider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |