Package org.cyclos.impl.system
Class CustomWizardExecutionStorage
- java.lang.Object
-
- org.cyclos.utils.AbstractParameterStorage
-
- org.cyclos.server.utils.JacksonParameterStorage
-
- org.cyclos.impl.system.EntityBackedParameterStorage
-
- org.cyclos.impl.system.CustomWizardExecutionStorage
-
- All Implemented Interfaces:
ObjectParameterStorage,ParameterStorage
public class CustomWizardExecutionStorage extends EntityBackedParameterStorage
A dedicatedEntityBackedParameterStoragewhich has a list of getters / setters for well-known attributes
-
-
Constructor Summary
Constructors Constructor Description CustomWizardExecutionStorage(com.fasterxml.jackson.databind.ObjectMapper objectMapper, CustomWizardExecution entity, ConversionHandler conversionHandler)
-
Method Summary
-
Methods inherited from class org.cyclos.impl.system.EntityBackedParameterStorage
onChange
-
Methods inherited from class org.cyclos.server.utils.JacksonParameterStorage
cache, doSet, getNames, getObject, getString, getStringList, propertyMissing, propertyMissing, remove, setObject, toString
-
Methods inherited from class org.cyclos.utils.AbstractParameterStorage
getBoolean, getDate, getDecimal, getDecimalList, getEnum, getEnumList, getInteger, getIntegerList, getLong, getLongList, isSet, setBoolean, setDate, setDecimal, setEnum, setInteger, setLong, setString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.utils.ParameterStorage
getBoolean, getDate, getDecimal, getDecimalList, getEnum, getEnumList, getInteger, getIntegerList, getLong, getLongList, isSet, setBoolean, setDate, setDecimal, setEnum, setInteger, setLong, setString
-
-
-
-
Constructor Detail
-
CustomWizardExecutionStorage
public CustomWizardExecutionStorage(com.fasterxml.jackson.databind.ObjectMapper objectMapper, CustomWizardExecution entity, ConversionHandler conversionHandler)
-
-
Method Detail
-
clearNotification
public void clearNotification()
Clears any pending notification message
-
error
public void error(String message)
Sends an error notification
-
getEmailVerificationCode
public String getEmailVerificationCode()
-
getEmailVerificationCodeAddress
public String getEmailVerificationCodeAddress()
-
getEmailVerificationCodeDate
public Date getEmailVerificationCodeDate()
-
getIdentityProviderId
public Long getIdentityProviderId()
-
getIdentityProviderProfile
public IdentityProviderProfile getIdentityProviderProfile()
-
getInviteToken
public InviteToken getInviteToken()
-
getMenuItem
public MenuItem getMenuItem()
-
getNotificationLevel
public NotificationLevel getNotificationLevel()
-
getNotificationMessage
public String getNotificationMessage()
-
getRegistration
public PublicRegistrationDTO getRegistration()
-
getSmsVerificationCode
public String getSmsVerificationCode()
-
getSmsVerificationCodeDate
public Date getSmsVerificationCodeDate()
-
getSmsVerificationCodeNumber
public String getSmsVerificationCodeNumber()
-
getSteps
public List<CustomWizardStepWithTransitions> getSteps()
-
getVerifiedEmail
public String getVerifiedEmail()
-
getVerifiedSms
public String getVerifiedSms()
-
info
public void info(String message)
Sends an information notification
-
isStepExecuted
public boolean isStepExecuted(CustomWizardStep step)
-
notify
public void notify(NotificationLevel level, String message)
Sends a notification with a given type
-
setEmailVerificationCode
public void setEmailVerificationCode(String code)
-
setEmailVerificationCodeAddress
public void setEmailVerificationCodeAddress(String address)
-
setEmailVerificationCodeDate
public void setEmailVerificationCodeDate(Date date)
-
setIdentityProviderId
public void setIdentityProviderId(Long id)
-
setIdentityProviderProfile
public void setIdentityProviderProfile(IdentityProviderProfile profile)
-
setInviteToken
public void setInviteToken(InviteToken inviteToken)
-
setMenuItem
public void setMenuItem(MenuItem item)
-
setRegistration
public void setRegistration(PublicRegistrationDTO registration)
-
setSmsVerificationCode
public void setSmsVerificationCode(String code)
-
setSmsVerificationCodeDate
public void setSmsVerificationCodeDate(Date date)
-
setSmsVerificationCodeNumber
public void setSmsVerificationCodeNumber(String number)
-
setStepExecuted
public void setStepExecuted(CustomWizardStep step, boolean executed)
Marks the given step as already executed. It means that if the user goes back and forward again, nothing will be shown, except that the step was already executed, with a next button.
-
setSteps
public void setSteps(List<CustomWizardStepWithTransitions> steps)
-
setVerifiedEmail
public void setVerifiedEmail(String email)
-
setVerifiedSms
public void setVerifiedSms(String number)
-
warn
public void warn(String message)
Sends a warning notification
-
-