cz.muni.fi.pclis.service.learningContracts
Interface LearningContractService

All Known Implementing Classes:
LearningContractServiceImpl

public interface LearningContractService

User: Ľuboš Pecho Date: 11.2.2010 Time: 9:33:31


Method Summary
 void acceptLearningContractAddition(long additionId)
           
 void addAdditionToContract(long contractId, ContractAddition contractAddition)
           
 LearningContract create(LearningContract entity)
           
 List<LearningContract> getAll()
           
 List<LearningContract> getByCourseAndTerm(Course course, Term term)
           
 LearningContract getById(long id)
           
 int getVotes(long contractId)
           
 int[] getVotesCountsByCourseAndTerm(Course course, Term term)
           
 LearningContract refresh(LearningContract entity)
           
 void remove(LearningContract entity)
           
 void removeById(long id)
           
 LearningContract searchById(long id)
           
 LearningContract update(LearningContract entity)
           
 void voteForContract(long contractId, User user)
           
 

Method Detail

getById

LearningContract getById(long id)

searchById

LearningContract searchById(long id)

getAll

List<LearningContract> getAll()

create

LearningContract create(LearningContract entity)

update

LearningContract update(LearningContract entity)

remove

void remove(LearningContract entity)

removeById

void removeById(long id)

refresh

LearningContract refresh(LearningContract entity)

getByCourseAndTerm

List<LearningContract> getByCourseAndTerm(Course course,
                                          Term term)

getVotesCountsByCourseAndTerm

int[] getVotesCountsByCourseAndTerm(Course course,
                                    Term term)

voteForContract

void voteForContract(long contractId,
                     User user)

addAdditionToContract

void addAdditionToContract(long contractId,
                           ContractAddition contractAddition)

getVotes

int getVotes(long contractId)

acceptLearningContractAddition

void acceptLearningContractAddition(long additionId)


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.