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 PollenServiceContext
public void setTransaction(org.nuiton.topia.TopiaContext transaction)
setTransaction
in interface PollenServiceContext
public Locale getLocale()
getLocale
in interface PollenServiceContext
public URL getApplicationURL()
getApplicationURL
in interface PollenServiceContext
public boolean isCanSendEmail()
isCanSendEmail
in interface PollenServiceContext
public <E extends PollenService> E newService(Class<E> clazz)
newService
in interface PollenServiceContext
public PollenConfiguration getConfiguration()
getConfiguration
in interface PollenServiceContext
public PollenServiceFactory getServiceFactory()
getServiceFactory
in interface PollenServiceContext
public Date getCurrentTime()
getCurrentTime
in interface PollenServiceContext
public VoteCountingFactory getVoteCountingFactory()
getVoteCountingFactory
in interface PollenServiceContext
public String generateId()
PollenServiceContext
Poll.getPollId()
or
PollAccount.getAccountId()
.generateId
in interface PollenServiceContext
Copyright © 2009–2014 CodeLutin. All rights reserved.