Package org.eurekastreams.server.action.execution.notification.translator

Examples of org.eurekastreams.server.action.execution.notification.translator.NotificationTranslator


     */
    @Override
    public void validate(final ActionContext inActionContext) throws ValidationException
    {
        CreateNotificationsRequest currentRequest = (CreateNotificationsRequest) inActionContext.getParams();
        NotificationTranslator translator = translators.get(currentRequest.getType());
        if (translator == null)
        {
            throw new ValidationException("Invalid notification type: " + currentRequest.getType());
        }
    }
View Full Code Here


        log.info("Generating notifications for {}", currentRequest.getType());

        // ---- translate event to notifications ----

        NotificationTranslator translator = translators.get(currentRequest.getType());
        if (translator == null)
        {
            // exit if notification request type is disabled
            return Boolean.FALSE;
        }
        NotificationBatch batch = translator.translate(currentRequest);
        if (batch == null || batch.getRecipients().isEmpty())
        {
            return Boolean.TRUE;
        }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.execution.notification.translator.NotificationTranslator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.