001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     narcis
016 *
017 * $Id$
018 */
019
020package org.nuxeo.ecm.platform.ec.notification;
021
022/**
023 * @author <a href="mailto:npaslaru@nuxeo.com">Narcis Paslaru</a>
024 * @author <a href="mailto:tmartins@nuxeo.com">Thierry Martins</a>
025 */
026public class NotificationConstants {
027
028    /**
029     * A event property to block the notification service. (use Boolen.TRUE as the value to block)
030     */
031    public static final String DISABLE_NOTIFICATION_SERVICE = "disableNotificationService";
032
033    public static final String SUBJECT_KEY = "subject";
034
035    public static final String TEMPLATE_KEY = "template";
036
037    public static final String SUBJECT_TEMPLATE_KEY = "subjectTemplate";
038
039    public static final String SENDER_KEY = "mail.from";
040
041    /**
042     * A string array of recipients a notifications should be sent to.
043     */
044    public static final String RECIPIENTS_KEY = "recipients";
045
046    public static final String DOCUMENT_KEY = "document";
047
048    public static final String DESTINATION_KEY = "destination";
049
050    public static final String NOTIFICATION_KEY = "notification";
051
052    public static final String DOCUMENT_ID_KEY = "docId";
053
054    public static final String DATE_TIME_KEY = "dateTime";
055
056    public static final String AUTHOR_KEY = "author";
057
058    public static final String PRINCIPAL_AUTHOR_KEY = "principalAuthor";
059
060    public static final String DOCUMENT_URL_KEY = "docUrl";
061
062    public static final String USER_URL_KEY = "userUrl";
063
064    public static final String DOCUMENT_TITLE_KEY = "docTitle";
065
066    public static final String EVENT_ID_KEY = "eventId";
067
068    public static final String USER_PREFIX = "user:";
069
070    public static final String GROUP_PREFIX = "group:";
071
072    public static final String DOCUMENT_VERSION = "docVersion";
073
074    public static final String DOCUMENT_STATE = "docState";
075
076    public static final String DOCUMENT_CREATED = "docCreated";
077
078    public static final String DOCUMENT_LOCATION = "docLocation";
079
080    public static final String DOCUMENT_MAIN_FILE = "docMainFileUrl";
081
082    private NotificationConstants() {
083    }
084
085}