org.chorem.pollen.services.impl
Class SecurityService
java.lang.Object
org.chorem.pollen.services.PollenServiceSupport
org.chorem.pollen.services.impl.SecurityService
- All Implemented Interfaces:
- PollenService
public class SecurityService
- extends PollenServiceSupport
Service to manager security.
- Since:
- 1.4
- Author:
- tchemit
|
Method Summary |
SecurityService.AccountIdRole |
getAccountIdRole(Poll poll,
String accountId)
|
String |
isCanAccessResult(Poll poll,
SecurityService.AccountIdRole accountIdRole)
|
boolean |
isCanAccessResult(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userAccount)
|
String |
isCanAccessVote(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole)
|
boolean |
isCanClosePoll(Poll poll,
SecurityService.AccountIdRole accountIdRole)
|
boolean |
isCanDeleteComment(Comment comment,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userAccount)
|
boolean |
isCanDeleteVote(Poll poll,
String voteId,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userConnected)
|
boolean |
isCanModifyVote(Poll poll,
String voteId,
String accountId,
UserAccount userConnected)
|
boolean |
isCanVote(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole)
|
boolean |
isPollCreator(Poll poll,
String accountId,
UserAccount pollenUserAccount)
|
void |
removeAccountIdWhenConnected(PollUrl url,
UserAccount userAccount)
|
| Methods inherited from class org.chorem.pollen.services.PollenServiceSupport |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE_FREE_ACCOUNT_ID_ROLES
public static final Set<SecurityService.AccountIdRole> NONE_FREE_ACCOUNT_ID_ROLES
SecurityService
public SecurityService()
isPollCreator
public boolean isPollCreator(Poll poll,
String accountId,
UserAccount pollenUserAccount)
isCanClosePoll
public boolean isCanClosePoll(Poll poll,
SecurityService.AccountIdRole accountIdRole)
removeAccountIdWhenConnected
public void removeAccountIdWhenConnected(PollUrl url,
UserAccount userAccount)
getAccountIdRole
public SecurityService.AccountIdRole getAccountIdRole(Poll poll,
String accountId)
isCanAccessResult
public boolean isCanAccessResult(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userAccount)
isCanAccessResult
public String isCanAccessResult(Poll poll,
SecurityService.AccountIdRole accountIdRole)
isCanAccessVote
public String isCanAccessVote(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole)
isCanVote
public boolean isCanVote(Poll poll,
String accountId,
SecurityService.AccountIdRole accountIdRole)
isCanModifyVote
public boolean isCanModifyVote(Poll poll,
String voteId,
String accountId,
UserAccount userConnected)
isCanDeleteVote
public boolean isCanDeleteVote(Poll poll,
String voteId,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userConnected)
isCanDeleteComment
public boolean isCanDeleteComment(Comment comment,
String accountId,
SecurityService.AccountIdRole accountIdRole,
UserAccount userAccount)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.