001/*
002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     narcis
018 *
019 * $Id$
020 */
021
022package org.nuxeo.ecm.platform.ec.notification;
023
024/**
025 * @author <a href="mailto:npaslaru@nuxeo.com">Narcis Paslaru</a>
026 * @author <a href="mailto:tmartins@nuxeo.com">Thierry Martins</a>
027 */
028public class NotificationConstants {
029
030    /**
031     * A event property to block the notification service. (use Boolen.TRUE as the value to block)
032     */
033    public static final String DISABLE_NOTIFICATION_SERVICE = "disableNotificationService";
034
035    public static final String SUBJECT_KEY = "subject";
036
037    public static final String TEMPLATE_KEY = "template";
038
039    public static final String SUBJECT_TEMPLATE_KEY = "subjectTemplate";
040
041    public static final String SENDER_KEY = "mail.from";
042
043    /**
044     * A string array of recipients a notifications should be sent to.
045     */
046    public static final String RECIPIENTS_KEY = "recipients";
047
048    public static final String DOCUMENT_KEY = "document";
049
050    public static final String DESTINATION_KEY = "destination";
051
052    public static final String NOTIFICATION_KEY = "notification";
053
054    public static final String DOCUMENT_ID_KEY = "docId";
055
056    public static final String DATE_TIME_KEY = "dateTime";
057
058    public static final String AUTHOR_KEY = "author";
059
060    public static final String PRINCIPAL_AUTHOR_KEY = "principalAuthor";
061
062    public static final String DOCUMENT_URL_KEY = "docUrl";
063
064    public static final String USER_URL_KEY = "userUrl";
065
066    public static final String DOCUMENT_TITLE_KEY = "docTitle";
067
068    public static final String EVENT_ID_KEY = "eventId";
069
070    public static final String USER_PREFIX = "user:";
071
072    public static final String GROUP_PREFIX = "group:";
073
074    public static final String DOCUMENT_VERSION = "docVersion";
075
076    public static final String DOCUMENT_STATE = "docState";
077
078    public static final String DOCUMENT_CREATED = "docCreated";
079
080    public static final String DOCUMENT_LOCATION = "docLocation";
081
082    public static final String DOCUMENT_MAIN_FILE = "docMainFileUrl";
083
084    public static final String IS_JSF_UI = "isJSFUI";
085
086    private NotificationConstants() {
087    }
088
089}