public class PollListManagerImpl extends Object implements PollListManager, EntityTransferrer
| Modifier and Type | Field and Description |
|---|---|
static String |
REFERENCE_ROOT |
PERMISSION_ADD, PERMISSION_DELETE_ANY, PERMISSION_DELETE_OWN, PERMISSION_EDIT_ANY, PERMISSION_EDIT_OWN, PERMISSION_VOTE, REF_POLL_TYPE| Constructor and Description |
|---|
PollListManagerImpl() |
public static final String REFERENCE_ROOT
public void setEntityManager(EntityManager em)
public void setIdManager(IdManager idm)
public void setDao(PollDao dao)
public void setPollVoteManager(PollVoteManager pollVoteManager)
public void setExternalLogic(ExternalLogic externalLogic)
public void init()
public void destroy()
public List<Poll> findAllPollsForUserAndSitesAndPermission(String userId, String[] siteIds, String permissionConstant)
findAllPollsForUserAndSitesAndPermission in interface PollListManagerpublic boolean savePoll(Poll t) throws SecurityException, IllegalArgumentException
savePoll in interface PollListManagerSecurityExceptionIllegalArgumentExceptionpublic boolean deletePoll(Poll t) throws SecurityException, IllegalArgumentException
deletePoll in interface PollListManagerSecurityExceptionIllegalArgumentExceptionpublic boolean userCanDeletePoll(Poll poll)
userCanDeletePoll in interface PollListManagerpublic List<Poll> findAllPolls(String siteId)
findAllPolls in interface PollListManagerpublic Poll getPollById(Long pollId) throws SecurityException
getPollById in interface PollListManagerSecurityExceptionpublic Poll getPollById(Long pollId, boolean includeOptions) throws SecurityException
getPollById in interface PollListManagerSecurityExceptionpublic List<Option> getOptionsForPoll(Poll poll)
getOptionsForPoll in interface PollListManagerpublic List<Option> getOptionsForPoll(Long pollId)
getOptionsForPoll in interface PollListManagerpublic List<Option> getVisibleOptionsForPoll(Long pollId)
getVisibleOptionsForPoll in interface PollListManagerpublic Poll getPollWithVotes(Long pollId)
getPollWithVotes in interface PollListManagerpublic Option getOptionById(Long optionId)
getOptionById in interface PollListManagerpublic void deleteOption(Option option)
deleteOption in interface PollListManagerpublic void deleteOption(Option option, boolean soft)
deleteOption in interface PollListManagerpublic boolean saveOption(Option t)
saveOption in interface PollListManagerpublic String getLabel()
getLabel in interface EntityProducerpublic boolean willArchiveMerge()
willArchiveMerge in interface EntityProducerpublic String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
archive in interface EntityProducerpublic String merge(String siteId, Element root, String archivePath, String fromSiteId, Map<String,String> attachmentNames, Map<String,String> userIdTrans, Set<String> userListAllowImport)
merge in interface EntityProducerpublic boolean parseEntityReference(String reference, Reference ref)
parseEntityReference in interface EntityProducerpublic String getEntityDescription(Reference arg0)
getEntityDescription in interface EntityProducerpublic ResourceProperties getEntityResourceProperties(Reference arg0)
getEntityResourceProperties in interface EntityProducerpublic Entity getEntity(Reference ref)
getEntity in interface EntityProducerpublic String getEntityUrl(Reference arg0)
getEntityUrl in interface EntityProducerpublic Collection getEntityAuthzGroups(Reference arg0, String arg1)
getEntityAuthzGroups in interface EntityProducerpublic HttpAccess getHttpAccess()
getHttpAccess in interface EntityProducerpublic String[] myToolIds()
myToolIds in interface EntityTransferrerpublic void transferCopyEntities(String fromContext, String toContext, List resourceIds, boolean condition)
transferCopyEntities in interface EntityTransferrerpublic void transferCopyEntities(String fromContext, String toContext, List resourceIds)
transferCopyEntities in interface EntityTransferrerpublic Poll getPoll(String ref)
getPoll in interface PollListManagerpublic boolean isAllowedViewResults(Poll poll, String userId)
isAllowedViewResults in interface PollListManagerpublic boolean isPollPublic(Poll poll)
isPollPublic in interface PollListManagerCopyright © 2003–2016 Sakai Project. All rights reserved.