/* * Symphony - A modern community (forum/SNS/blog) platform written in Java. * Copyright (C) 2012-2017, b3log.org & hacpai.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.b3log.symphony.model; /** * This class defines all comment model relevant keys. * * @author <a href="http://88250.b3log.org">Liang Ding</a> * @version 1.11.0.10, May 6, 2017 * @since 0.2.0 */ public final class Comment { /** * Comment. */ public static final String COMMENT = "comment"; /** * Comments. */ public static final String COMMENTS = "comments"; /** * Key of comment content. */ public static final String COMMENT_CONTENT = "commentContent"; /** * Key of comment create time. */ public static final String COMMENT_CREATE_TIME = "commentCreateTime"; /** * Key of comment author id. */ public static final String COMMENT_AUTHOR_ID = "commentAuthorId"; /** * Key of comment on article id. */ public static final String COMMENT_ON_ARTICLE_ID = "commentOnArticleId"; /** * Key of client comment id. */ public static final String COMMENT_CLIENT_COMMENT_ID = "clientCommentId"; /** * Key of comment sharp URL. */ public static final String COMMENT_SHARP_URL = "commentSharpURL"; /** * Key of original comment id. */ public static final String COMMENT_ORIGINAL_COMMENT_ID = "commentOriginalCommentId"; /** * Key of comment status. */ public static final String COMMENT_STATUS = "commentStatus"; /** * Key of comment IP. */ public static final String COMMENT_IP = "commentIP"; /** * Key of comment UA. */ public static final String COMMENT_UA = "commentUA"; /** * Key of comment anonymous. */ public static final String COMMENT_ANONYMOUS = "commentAnonymous"; /** * Key of comment good count. */ public static final String COMMENT_GOOD_CNT = "commentGoodCnt"; /** * Key of comment bad count. */ public static final String COMMENT_BAD_CNT = "commentBadCnt"; /** * Key of comment score. */ public static final String COMMENT_SCORE = "commentScore"; /** * Key of comment reply count. */ public static final String COMMENT_REPLY_CNT = "commentReplyCnt"; /** * Key of comment audio URL. */ public static final String COMMENT_AUDIO_URL = "commentAudioURL"; //// Transient //// /** * Key of comment revision count. */ public static final String COMMENT_REVISION_COUNT = "commentRevisionCount"; /** * Key of comment vote. */ public static final String COMMENT_T_VOTE = "commentVote"; /** * Key of commenter. */ public static final String COMMENT_T_COMMENTER = "commenter"; /** * Key of comment author email. */ public static final String COMMENT_T_AUTHOR_EMAIL = "commentAuthorEmail"; /** * Key of comment id. */ public static final String COMMENT_T_ID = "commentId"; /** * Key of comment ids. */ public static final String COMMENT_T_IDS = "commentIds"; /** * Key of comment on symphony article id. */ public static final String COMMENT_T_SYMPHONY_ID = "commentSymphonyArticleId"; /** * Key of comment author thumbnail URL. */ public static final String COMMENT_T_AUTHOR_THUMBNAIL_URL = "commentAuthorThumbnailURL"; /** * Key of comment author name. */ public static final String COMMENT_T_AUTHOR_NAME = "commentAuthorName"; /** * Key of comment author URL. */ public static final String COMMENT_T_AUTHOR_URL = "commentAuthorURL"; /** * Key of comment article title. */ public static final String COMMENT_T_ARTICLE_TITLE = "commentArticleTitle"; /** * Key of comment article type. */ public static final String COMMENT_T_ARTICLE_TYPE = "commentArticleType"; /** * Key of comment article perfect. */ public static final String COMMENT_T_ARTICLE_PERFECT = "commentArticlePerfect"; /** * Key of comment article author name. */ public static final String COMMENT_T_ARTICLE_AUTHOR_NAME = "commentArticleAuthorName"; /** * Key of comment article author URL. */ public static final String COMMENT_T_ARTICLE_AUTHOR_URL = "commentArticleAuthorURL"; /** * Key of comment article author thumbnail URL. */ public static final String COMMENT_T_ARTICLE_AUTHOR_THUMBNAIL_URL = "commentArticleAuthorThumbnailURL"; /** * Key of comment article permalink. */ public static final String COMMENT_T_ARTICLE_PERMALINK = "commentArticlePermalink"; /** * Key of comment thank label. */ public static final String COMMENT_T_THANK_LABEL = "commentThankLabel"; /** * Key of comment nice. */ public static final String COMMENT_T_NICE = "commentNice"; /** * Key of comment replies. */ public static final String COMMENT_T_REPLIES = "commentReplies"; /** * Key of comment original author thumbnail URL. */ public static final String COMMENT_T_ORIGINAL_AUTHOR_THUMBNAIL_URL = "commentOriginalAuthorThumbnailURL"; //// Status constants /** * Comment status - valid. */ public static final int COMMENT_STATUS_C_VALID = 0; /** * Comment status - invalid. */ public static final int COMMENT_STATUS_C_INVALID = 1; // Anonymous constants /** * Comment anonymous - public. */ public static final int COMMENT_ANONYMOUS_C_PUBLIC = 0; /** * Comment anonymous - anonymous. */ public static final int COMMENT_ANONYMOUS_C_ANONYMOUS = 1; /** * Private constructor. */ private Comment() { } }