001/* 002 * Copyright 2010 Anyware Services 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 */ 016package org.ametys.cms; 017 018/** 019 * Constants for observers. 020 */ 021public interface ObservationConstants 022{ 023 /** Event id when a content is added. */ 024 public static final String EVENT_CONTENT_ADDED = "content.added"; 025 /** Event id when a content is being modified. */ 026 public static final String EVENT_CONTENT_MODIFYING = "content.modifying"; 027 /** Event id when a content is modified. */ 028 public static final String EVENT_CONTENT_MODIFIED = "content.modified"; 029 /** Event id when a content is validated. */ 030 public static final String EVENT_CONTENT_VALIDATED = "content.validated"; 031 /** Event id when a content is unpublished. */ 032 public static final String EVENT_CONTENT_UNTAG_LIVE = "content.untag.live"; 033 /** Event id when a content is being delete. */ 034 public static final String EVENT_CONTENT_DELETING = "content.deleting"; 035 /** Event id when a content is deleled. */ 036 public static final String EVENT_CONTENT_DELETED = "content.deleted"; 037 /** Event id when a content is tagged. */ 038 public static final String EVENT_CONTENT_TAGGED = "content.tagged"; 039 /** Event id when the workflow a content is modified. */ 040 public static final String EVENT_CONTENT_WORKFLOW_CHANGED = "content.workflow.changed"; 041 /** Event id when the reaction change on a content. */ 042 public static final String EVENT_CONTENT_REACTION_CHANGED = "content.reaction.changed"; 043 044 /** Event id when a content is archived */ 045 public static final String EVENT_CONTENT_ARCHIVED = "event.content.archived"; 046 /** Event id when a content is unarchived */ 047 public static final String EVENT_CONTENT_UNARCHIVED = "event.content.unarchived"; 048 049 /** Event id when a comment is added with auto-validation. */ 050 public static final String EVENT_CONTENT_COMMENT_ADDED = "content.comment.added"; 051 /** Event id when a comment is modified. */ 052 public static final String EVENT_CONTENT_COMMENT_MODIFYING = "content.comment.modified"; 053 /** Event id when a comment is being deleted. */ 054 public static final String EVENT_CONTENT_COMMENT_DELETING = "content.comment.deleting"; 055 /** Event id when a comment is deleted. */ 056 public static final String EVENT_CONTENT_COMMENT_DELETED = "content.comment.deleted"; 057 /** Event id when a comment is validated. */ 058 public static final String EVENT_CONTENT_COMMENT_VALIDATED = "content.comment.validated"; 059 /** Event id when a comment is removed from validation. */ 060 public static final String EVENT_CONTENT_COMMENT_UNVALIDATED = "content.comment.unvalidated"; 061 /** Event id when a reaction changed on a comment. */ 062 public static final String EVENT_CONTENT_COMMENT_REACTION_CHANGED = "content.comment.reaction.changed"; 063 /** Event id when a comment is reported. */ 064 public static final String EVENT_CONTENT_COMMENT_REPORTED = "content.comment.reported"; 065 /** Event id when reports are ignored on comment. */ 066 public static final String EVENT_CONTENT_COMMENT_IGNORE_REPORTS = "content.comment.ignore.reports"; 067 /** Event id when reports are ignored on content. */ 068 public static final String EVENT_CONTENT_IGNORE_REPORTS = "content.ignore.reports"; 069 070 /** Event id when a contributor comment is added */ 071 public static final String EVENT_CONTENT_CONTRIBUTOR_COMMENT_ADDED = "content.contributor.comment.added"; 072 073 /** Argument name for processed ametys object's id */ 074 public static final String ARGS_AMETYS_OBJECT_ID = "ametys-object.id"; 075 /** Argument name for processed content */ 076 public static final String ARGS_CONTENT = "content"; 077 /** Argument name for processed content's name */ 078 public static final String ARGS_CONTENT_NAME = "content.name"; 079 /** Argument name for processed content's new values */ 080 public static final String ARGS_CONTENT_VALUES = "content.values"; 081 /** Argument name for processed content's id */ 082 public static final String ARGS_CONTENT_ID = "content.id"; 083 /** Argument name for indicating if content modifications have to be commited into Solr */ 084 public static final String ARGS_CONTENT_COMMIT = "content.commit"; 085 /** Argument name for processed comment */ 086 public static final String ARGS_COMMENT = "comment"; 087 /** Argument name for processed comment's id */ 088 public static final String ARGS_COMMENT_ID = "comment.id"; 089 /** Argument name for processed comment's author */ 090 public static final String ARGS_COMMENT_AUTHOR = "comment.author"; 091 /** Argument name for processed comment's author email */ 092 public static final String ARGS_COMMENT_AUTHOR_EMAIL = "comment.author.email"; 093 /** Argument name for processed comment's validation state */ 094 public static final String ARGS_COMMENT_VALIDATED = "comment.validated"; 095 /** Argument name for processed comment's creation date */ 096 public static final String ARGS_COMMENT_CREATION_DATE = "comment.creation.date"; 097 /** Argument name for processed jcr tag */ 098 public static final String ARGS_TAG = "tag"; 099 /** Argument name for processed tag's id */ 100 public static final String ARGS_TAG_ID = "tag.id"; 101 /** Argument name for processed tag's name */ 102 public static final String ARGS_TAG_NAME = "tag.name"; 103 /** Argument name for reaction type */ 104 public static final String ARGS_REACTION_TYPE = "reaction.type"; 105 /** Argument name for reaction issuer */ 106 public static final String ARGS_REACTION_ISSUER = "reaction.issuer"; 107 /** Argument name (optional, default=false) for the acl.update event for indicating if this update has no influence on Solr ACL cache */ 108 public static final String ARGS_ACL_SOLR_CACHE_UNINFLUENTIAL = "acl-solr-cache-uninfluential"; 109 110 /** Event id when a tag is created. */ 111 public static final String EVENT_TAG_ADDED = "tag.added"; 112 /** Event id when a tag is modified. */ 113 public static final String EVENT_TAG_UPDATED = "tag.updated"; 114 /** Event id when a tag is removed. */ 115 public static final String EVENT_TAG_DELETED = "tag.deleted"; 116 /** Event id when a tag is moved. */ 117 public static final String EVENT_TAG_MOVED = "tag.moved"; 118}