public class DefaultPollenServiceContext extends Object implements PollenServiceContext
| Modifier and Type | Field and Description |
|---|---|
protected PollenConfiguration |
configuration |
protected Locale |
locale |
protected PollenServiceFactory |
serviceFactory |
protected org.nuiton.topia.TopiaContext |
transaction |
protected VoteCountingFactory |
voteCountingFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPollenServiceContext(Locale locale,
org.nuiton.topia.TopiaContext transaction,
PollenConfiguration configuration,
PollenServiceFactory serviceFactory,
VoteCountingFactory voteCountingFactory) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateId()
Generates a unique id usable for
Poll.getPollId() or
PollAccount.getAccountId(). |
URL |
getApplicationURL() |
PollenConfiguration |
getConfiguration() |
Date |
getCurrentTime() |
Locale |
getLocale() |
PollenServiceFactory |
getServiceFactory() |
org.nuiton.topia.TopiaContext |
getTransaction() |
VoteCountingFactory |
getVoteCountingFactory() |
boolean |
isCanSendEmail() |
static PollenServiceContext |
newContext(Locale locale,
org.nuiton.topia.TopiaContext transaction,
PollenConfiguration configuration,
PollenServiceFactory serviceFactory,
VoteCountingFactory voteCountingFactory) |
static PollenServiceContext |
newContext(PollenServiceContext serviceContext,
org.nuiton.topia.TopiaContext transaction) |
<E extends PollenService> |
newService(Class<E> clazz) |
void |
setTransaction(org.nuiton.topia.TopiaContext transaction) |
protected org.nuiton.topia.TopiaContext transaction
protected PollenServiceFactory serviceFactory
protected PollenConfiguration configuration
protected Locale locale
protected VoteCountingFactory voteCountingFactory
protected DefaultPollenServiceContext(Locale locale, org.nuiton.topia.TopiaContext transaction, PollenConfiguration configuration, PollenServiceFactory serviceFactory, VoteCountingFactory voteCountingFactory)
public static PollenServiceContext newContext(PollenServiceContext serviceContext, org.nuiton.topia.TopiaContext transaction)
public static PollenServiceContext newContext(Locale locale, org.nuiton.topia.TopiaContext transaction, PollenConfiguration configuration, PollenServiceFactory serviceFactory, VoteCountingFactory voteCountingFactory)
public org.nuiton.topia.TopiaContext getTransaction()
getTransaction in interface PollenServiceContextpublic void setTransaction(org.nuiton.topia.TopiaContext transaction)
setTransaction in interface PollenServiceContextpublic Locale getLocale()
getLocale in interface PollenServiceContextpublic URL getApplicationURL()
getApplicationURL in interface PollenServiceContextpublic boolean isCanSendEmail()
isCanSendEmail in interface PollenServiceContextpublic <E extends PollenService> E newService(Class<E> clazz)
newService in interface PollenServiceContextpublic PollenConfiguration getConfiguration()
getConfiguration in interface PollenServiceContextpublic PollenServiceFactory getServiceFactory()
getServiceFactory in interface PollenServiceContextpublic Date getCurrentTime()
getCurrentTime in interface PollenServiceContextpublic VoteCountingFactory getVoteCountingFactory()
getVoteCountingFactory in interface PollenServiceContextpublic String generateId()
PollenServiceContextPoll.getPollId() or
PollAccount.getAccountId().generateId in interface PollenServiceContextCopyright © 2009-2012 CodeLutin. All Rights Reserved.