001/* 002 * (C) Copyright 2009 Nuxeo SA (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 * mcedica 016 */ 017package org.nuxeo.ecm.platform.comment.workflow.utils; 018 019/** 020 * Utility class used for registering constants. 021 */ 022public final class CommentsConstants { 023 024 /* 025 * Constants used for Comments 026 */ 027 public static final String PERMISSION_COMMENT = "Comment"; 028 029 public static final String PERMISSION_MODERATE = "Moderate"; 030 031 public static final String PERMISSION_WRITE = "Write"; 032 033 public static final String PERMISSION_MANAGE_EVERYTHING = "Everything"; 034 035 public static final String TRANSITION_TO_PUBLISHED_STATE = "moderation_publish"; 036 037 public static final String PUBLISHED_STATE = "moderation_published"; 038 039 public static final String PENDING_STATE = "moderation_pending"; 040 041 public static final String REJECT_STATE = "moderation_reject"; 042 043 public static final String MODERATION_PROCESS = "comments_moderation"; 044 045 public static final String COMMENT_ID = "commentId"; 046 047 public static final String COMMENT_PUBLISHED = "commentPublished"; 048 049 public static final String COMMENT_LIFECYCLE = "comment_moderation"; 050 051 public static final String ACCEPT_CHAIN_NAME = "acceptComment"; 052 053 public static final String REJECT_CHAIN_NAME = "rejectComment"; 054 055 public static final String MODERATION_DIRECTIVE_NAME = "moderate"; 056 057 /** 058 * Schemas and fields. 059 */ 060 public static final String COMMENT_DOC_TYPE = "Comment"; 061 062 public static final String COMMENT_CREATION_DATE = "comment:creationDate"; 063 064 public static final String COMMENT_AUTHOR = "comment:author"; 065 066 public static final String COMMENT_TEXT = "comment:text"; 067 068 private CommentsConstants() { 069 } 070 071}