org.sakaiproject.poll.service.impl
Class PollListManagerImpl
java.lang.Object
org.sakaiproject.poll.service.impl.PollListManagerImpl
- All Implemented Interfaces:
- org.sakaiproject.entity.api.EntityProducer, org.sakaiproject.entity.api.EntityTransferrer, PollListManager
public class PollListManagerImpl
- extends Object
- implements PollListManager, org.sakaiproject.entity.api.EntityTransferrer
|
Method Summary |
String |
archive(String siteId,
Document doc,
Stack stack,
String archivePath,
List attachments)
|
void |
deleteOption(Option option)
|
void |
deleteOption(Option option,
boolean soft)
|
boolean |
deletePoll(Poll t)
|
void |
destroy()
|
List<Poll> |
findAllPolls(String siteId)
|
List<Poll> |
findAllPollsForUserAndSitesAndPermission(String userId,
String[] siteIds,
String permissionConstant)
|
org.sakaiproject.entity.api.Entity |
getEntity(org.sakaiproject.entity.api.Reference ref)
|
Collection |
getEntityAuthzGroups(org.sakaiproject.entity.api.Reference arg0,
String arg1)
|
String |
getEntityDescription(org.sakaiproject.entity.api.Reference arg0)
|
org.sakaiproject.entity.api.ResourceProperties |
getEntityResourceProperties(org.sakaiproject.entity.api.Reference arg0)
|
String |
getEntityUrl(org.sakaiproject.entity.api.Reference arg0)
|
org.sakaiproject.entity.api.HttpAccess |
getHttpAccess()
|
String |
getLabel()
|
Option |
getOptionById(Long optionId)
|
List<Option> |
getOptionsForPoll(Long pollId)
|
List<Option> |
getOptionsForPoll(Poll poll)
|
Poll |
getPoll(String ref)
|
Poll |
getPollById(Long pollId)
|
Poll |
getPollById(Long pollId,
boolean includeOptions)
|
Poll |
getPollWithVotes(Long pollId)
|
List<Option> |
getVisibleOptionsForPoll(Long pollId)
|
void |
init()
|
boolean |
isAllowedViewResults(Poll poll,
String userId)
|
boolean |
isPollPublic(Poll poll)
|
String |
merge(String arg0,
Element arg1,
String arg2,
String arg3,
Map arg4,
Map arg5,
Set arg6)
|
String[] |
myToolIds()
|
boolean |
parseEntityReference(String reference,
org.sakaiproject.entity.api.Reference ref)
|
boolean |
saveOption(Option t)
|
boolean |
savePoll(Poll t)
|
void |
setDao(PollDao dao)
|
void |
setEntityManager(org.sakaiproject.entity.api.EntityManager em)
|
void |
setExternalLogic(ExternalLogic externalLogic)
|
void |
setIdManager(org.sakaiproject.id.api.IdManager idm)
|
void |
setPollVoteManager(PollVoteManager pollVoteManager)
|
protected String[] |
split(String source,
String splitter)
|
void |
transferCopyEntities(String fromContext,
String toContext,
List resourceIds)
|
void |
transferCopyEntities(String fromContext,
String toContext,
List resourceIds,
boolean condition)
|
boolean |
willArchiveMerge()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFERENCE_ROOT
public static final String REFERENCE_ROOT
- See Also:
- Constant Field Values
PollListManagerImpl
public PollListManagerImpl()
setEntityManager
public void setEntityManager(org.sakaiproject.entity.api.EntityManager em)
setIdManager
public void setIdManager(org.sakaiproject.id.api.IdManager idm)
setDao
public void setDao(PollDao dao)
setPollVoteManager
public void setPollVoteManager(PollVoteManager pollVoteManager)
setExternalLogic
public void setExternalLogic(ExternalLogic externalLogic)
init
public void init()
destroy
public void destroy()
findAllPollsForUserAndSitesAndPermission
public List<Poll> findAllPollsForUserAndSitesAndPermission(String userId,
String[] siteIds,
String permissionConstant)
- Specified by:
findAllPollsForUserAndSitesAndPermission in interface PollListManager
savePoll
public boolean savePoll(Poll t)
throws SecurityException,
IllegalArgumentException
- Specified by:
savePoll in interface PollListManager
- Throws:
SecurityException
IllegalArgumentException
deletePoll
public boolean deletePoll(Poll t)
throws SecurityException,
IllegalArgumentException
- Specified by:
deletePoll in interface PollListManager
- Throws:
SecurityException
IllegalArgumentException
findAllPolls
public List<Poll> findAllPolls(String siteId)
- Specified by:
findAllPolls in interface PollListManager
getPollById
public Poll getPollById(Long pollId)
throws SecurityException
- Specified by:
getPollById in interface PollListManager
- Throws:
SecurityException
getPollById
public Poll getPollById(Long pollId,
boolean includeOptions)
throws SecurityException
- Specified by:
getPollById in interface PollListManager
- Throws:
SecurityException
getOptionsForPoll
public List<Option> getOptionsForPoll(Poll poll)
- Specified by:
getOptionsForPoll in interface PollListManager
getOptionsForPoll
public List<Option> getOptionsForPoll(Long pollId)
- Specified by:
getOptionsForPoll in interface PollListManager
getVisibleOptionsForPoll
public List<Option> getVisibleOptionsForPoll(Long pollId)
- Specified by:
getVisibleOptionsForPoll in interface PollListManager
getPollWithVotes
public Poll getPollWithVotes(Long pollId)
- Specified by:
getPollWithVotes in interface PollListManager
getOptionById
public Option getOptionById(Long optionId)
- Specified by:
getOptionById in interface PollListManager
deleteOption
public void deleteOption(Option option)
- Specified by:
deleteOption in interface PollListManager
deleteOption
public void deleteOption(Option option,
boolean soft)
- Specified by:
deleteOption in interface PollListManager
saveOption
public boolean saveOption(Option t)
- Specified by:
saveOption in interface PollListManager
getLabel
public String getLabel()
- Specified by:
getLabel in interface org.sakaiproject.entity.api.EntityProducer
willArchiveMerge
public boolean willArchiveMerge()
- Specified by:
willArchiveMerge in interface org.sakaiproject.entity.api.EntityProducer
archive
public String archive(String siteId,
Document doc,
Stack stack,
String archivePath,
List attachments)
- Specified by:
archive in interface org.sakaiproject.entity.api.EntityProducer
merge
public String merge(String arg0,
Element arg1,
String arg2,
String arg3,
Map arg4,
Map arg5,
Set arg6)
- Specified by:
merge in interface org.sakaiproject.entity.api.EntityProducer
parseEntityReference
public boolean parseEntityReference(String reference,
org.sakaiproject.entity.api.Reference ref)
- Specified by:
parseEntityReference in interface org.sakaiproject.entity.api.EntityProducer
getEntityDescription
public String getEntityDescription(org.sakaiproject.entity.api.Reference arg0)
- Specified by:
getEntityDescription in interface org.sakaiproject.entity.api.EntityProducer
getEntityResourceProperties
public org.sakaiproject.entity.api.ResourceProperties getEntityResourceProperties(org.sakaiproject.entity.api.Reference arg0)
- Specified by:
getEntityResourceProperties in interface org.sakaiproject.entity.api.EntityProducer
getEntity
public org.sakaiproject.entity.api.Entity getEntity(org.sakaiproject.entity.api.Reference ref)
- Specified by:
getEntity in interface org.sakaiproject.entity.api.EntityProducer
getEntityUrl
public String getEntityUrl(org.sakaiproject.entity.api.Reference arg0)
- Specified by:
getEntityUrl in interface org.sakaiproject.entity.api.EntityProducer
getEntityAuthzGroups
public Collection getEntityAuthzGroups(org.sakaiproject.entity.api.Reference arg0,
String arg1)
- Specified by:
getEntityAuthzGroups in interface org.sakaiproject.entity.api.EntityProducer
getHttpAccess
public org.sakaiproject.entity.api.HttpAccess getHttpAccess()
- Specified by:
getHttpAccess in interface org.sakaiproject.entity.api.EntityProducer
myToolIds
public String[] myToolIds()
-
- Specified by:
myToolIds in interface org.sakaiproject.entity.api.EntityTransferrer
transferCopyEntities
public void transferCopyEntities(String fromContext,
String toContext,
List resourceIds,
boolean condition)
- Specified by:
transferCopyEntities in interface org.sakaiproject.entity.api.EntityTransferrer
transferCopyEntities
public void transferCopyEntities(String fromContext,
String toContext,
List resourceIds)
- Specified by:
transferCopyEntities in interface org.sakaiproject.entity.api.EntityTransferrer
split
protected String[] split(String source,
String splitter)
getPoll
public Poll getPoll(String ref)
- Specified by:
getPoll in interface PollListManager
isAllowedViewResults
public boolean isAllowedViewResults(Poll poll,
String userId)
- Specified by:
isAllowedViewResults in interface PollListManager
isPollPublic
public boolean isPollPublic(Poll poll)
- Specified by:
isPollPublic in interface PollListManager
Copyright © 2003-2012 Sakai Project. All Rights Reserved.