org.alfresco.bm.user
Class AcceptInvite
java.lang.Object
org.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.user.AcceptInvite
- All Implemented Interfaces:
- org.alfresco.bm.event.EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class AcceptInvite
- extends org.alfresco.bm.event.AbstractEventProcessor
Process an Alfresco Cloud invite.
Input
User email address.
Data
A MongoDB collection containing the details of the user matching the input email address.
Actions
Fetches the user data from the MongoDB using the inbound email address.
Retrieves the invitation details for the user.
Accepts the invitation.
Output
EVENT_NAME_INVITE_ACCEPTED: The user's email address
- Since:
- 1.0
- Author:
- Derek Hulley
| Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor |
DEFAULT_WARN_DELAY, logger |
|
Constructor Summary |
AcceptInvite(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
String alfrescoUrl)
|
| Methods inherited from class org.alfresco.bm.event.AbstractEventProcessor |
getWarnDelay, register, setBeanName, setEventName, setEventNames, setRegistry, setWarnDelay |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_API_ACCOUNT_ACTIVATIONS
public static final String DEFAULT_API_ACCOUNT_ACTIVATIONS
- See Also:
- Constant Field Values
EVENT_NAME_INVITE_ACCEPTED
public static final String EVENT_NAME_INVITE_ACCEPTED
- See Also:
- Constant Field Values
AcceptInvite
public AcceptInvite(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
String alfrescoUrl)
- Parameters:
mongo - connection to MongoDBuserData - name of DB collection containing user detailsalfrescoUrl - the Alfresco root URL e.g. http://localhost:8080/
setApiAccountActivations
public void setApiAccountActivations(String apiAccountActivations)
- Override the
default URL part to the account activation API.
setEventNameInviteAccepted
public void setEventNameInviteAccepted(String eventNameInviteAccepted)
- Override the
default event name for 'invite accepted'.
processEvent
public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.