org.deepamehta.plugins.signup
public class SignupPlugin extends de.deepamehta.thymeleaf.ThymeleafPlugin implements SignupPluginService, de.deepamehta.core.service.event.PostUpdateTopicListener
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_TOPIC_ACCOUNT_ENABLED |
static boolean |
DM4_ACCOUNTS_ENABLED |
static String |
DM4_HOST_URL |
static String |
MAILBOX_TYPE_URI |
| Constructor and Description |
|---|
SignupPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
createAPIWorkspaceMembershipRequest() |
com.sun.jersey.api.view.Viewable |
getAccountCreationOKView(String username) |
com.sun.jersey.api.view.Viewable |
getAccountCreationPendingView() |
com.sun.jersey.api.view.Viewable |
getAccountDetailsView() |
com.sun.jersey.api.view.Viewable |
getConfirmationInfoView() |
com.sun.jersey.api.view.Viewable |
getFailureView() |
com.sun.jersey.api.view.Viewable |
getLoginView() |
String |
getMailboxAvailability(String email) |
com.sun.jersey.api.view.Viewable |
getPasswordResetView() |
com.sun.jersey.api.view.Viewable |
getSignupFormView() |
String |
getUsernameAvailability(String username)
Checks for a Topic with the exact "username" value.
|
com.sun.jersey.api.view.Viewable |
handlePasswordResetRequest(String token) |
com.sun.jersey.api.view.Viewable |
handleSignupRequest(String username,
String password,
String mailbox)
Handles a sign-up request in regards to whether an Email based confirmation process is configured (true|false)
in the resp.
|
void |
init() |
javax.ws.rs.core.Response |
initiatePasswordReset(String email) |
void |
postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel tm,
de.deepamehta.core.model.TopicModel tm1) |
com.sun.jersey.api.view.Viewable |
processPasswordUpdateRequest(String token,
String password) |
com.sun.jersey.api.view.Viewable |
processSignupRequest(String key) |
void |
sendSystemMailboxNotification(String subject,
String message)
Send notification email to system administrator mailbox configured in current \"Sign-up Configuration\" topic.
|
void |
sendUserMailboxNotification(String mailbox,
String subject,
String message)
Send notification email to all mailboxes in String (many are seperated by a simple ";" and without spaces.
|
getTemplateEngine, initTemplateEngine, serviceRequestFilter, view, viewDatapublic static final String MAILBOX_TYPE_URI
public static final String DM4_HOST_URL
public static final boolean DM4_ACCOUNTS_ENABLED
public static final String CONFIG_TOPIC_ACCOUNT_ENABLED
public void init()
init in interface de.deepamehta.core.osgi.PluginContextinit in class de.deepamehta.core.osgi.PluginActivatorpublic String getUsernameAvailability(String username)
SignupPluginServicegetUsernameAvailability in interface SignupPluginServicepublic javax.ws.rs.core.Response initiatePasswordReset(String email) throws URISyntaxException
URISyntaxExceptionpublic com.sun.jersey.api.view.Viewable handlePasswordResetRequest(String token)
public com.sun.jersey.api.view.Viewable processPasswordUpdateRequest(String token, String password)
public com.sun.jersey.api.view.Viewable handleSignupRequest(String username, String password, String mailbox) throws javax.ws.rs.WebApplicationException
SignupPluginServiceSign-up Configuration topic.
To check whether a username is already taken you *must* use the getUsernameAvailability() call before issueing
an account creation request via this method.handleSignupRequest in interface SignupPluginServiceusername - String Unique username.password - String SHA256 encoded password with a prefix of "-SHA26-"mailbox - String containing a valid Email address related to the account creation request.javax.ws.rs.WebApplicationExceptionpublic com.sun.jersey.api.view.Viewable processSignupRequest(String key)
public String createAPIWorkspaceMembershipRequest()
createAPIWorkspaceMembershipRequest in interface SignupPluginServicepublic com.sun.jersey.api.view.Viewable getSignupFormView()
public com.sun.jersey.api.view.Viewable getLoginView()
public com.sun.jersey.api.view.Viewable getPasswordResetView()
public com.sun.jersey.api.view.Viewable getAccountCreationOKView(String username)
public com.sun.jersey.api.view.Viewable getAccountCreationPendingView()
public com.sun.jersey.api.view.Viewable getFailureView()
public com.sun.jersey.api.view.Viewable getConfirmationInfoView()
public com.sun.jersey.api.view.Viewable getAccountDetailsView()
public void sendSystemMailboxNotification(String subject, String message)
SignupPluginServicesendSystemMailboxNotification in interface SignupPluginServicepublic void sendUserMailboxNotification(String mailbox, String subject, String message)
SignupPluginServicesendUserMailboxNotification in interface SignupPluginServicepublic void postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel tm,
de.deepamehta.core.model.TopicModel tm1)
postUpdateTopic in interface de.deepamehta.core.service.event.PostUpdateTopicListenerCopyright © 2016. All Rights Reserved.