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