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 modified. */ 026 public static final String EVENT_CONTENT_MODIFIED = "content.modified"; 027 /** Event id when a content is validated. */ 028 public static final String EVENT_CONTENT_VALIDATED = "content.validated"; 029 /** Event id when a content is being delete. */ 030 public static final String EVENT_CONTENT_DELETING = "content.deleting"; 031 /** Event id when a content is deleled. */ 032 public static final String EVENT_CONTENT_DELETED = "content.deleted"; 033 /** Event id when a content is tagged. */ 034 public static final String EVENT_CONTENT_TAGGED = "content.tagged"; 035 /** Event id when the workflow a content is modified. */ 036 public static final String EVENT_CONTENT_WORKFLOW_CHANGED = "content.workflow.changed"; 037 038 /** Event id when a content is archived */ 039 public static final String EVENT_CONTENT_ARCHIVED = "event.content.archived"; 040 /** Event id when a content is unarchived */ 041 public static final String EVENT_CONTENT_UNARCHIVED = "event.content.unarchived"; 042 043 /** Event id when a comment is added with auto-validation. */ 044 public static final String EVENT_CONTENT_COMMENT_ADDED = "content.comment.added"; 045 /** Event id when a comment is modified. */ 046 public static final String EVENT_CONTENT_COMMENT_MODIFYING = "content.comment.modified"; 047 /** Event id when a comment is being deleted. */ 048 public static final String EVENT_CONTENT_COMMENT_DELETING = "content.comment.deleting"; 049 /** Event id when a comment is deleted. */ 050 public static final String EVENT_CONTENT_COMMENT_DELETED = "content.comment.deleted"; 051 /** Event id when a comment is validated. */ 052 public static final String EVENT_CONTENT_COMMENT_VALIDATED = "content.comment.validated"; 053 /** Event id when a comment is removed from validation. */ 054 public static final String EVENT_CONTENT_COMMENT_UNVALIDATED = "content.comment.unvalidated"; 055 056 /** Argument name for processed content */ 057 public static final String ARGS_CONTENT = "content"; 058 /** Argument name for processed content's name */ 059 public static final String ARGS_CONTENT_NAME = "content.name"; 060 /** Argument name for processed content's id */ 061 public static final String ARGS_CONTENT_ID = "content.id"; 062 /** Argument name for indicating if content modifications have to be commited into Solr */ 063 public static final String ARGS_CONTENT_COMMIT = "content.commit"; 064 /** Argument name for processed comment */ 065 public static final String ARGS_COMMENT = "comment"; 066 /** Argument name for processed comment's id */ 067 public static final String ARGS_COMMENT_ID = "comment.id"; 068 /** Argument name for processed comment's author */ 069 public static final String ARGS_COMMENT_AUTHOR = "comment.author"; 070 /** Argument name for processed comment's author email */ 071 public static final String ARGS_COMMENT_AUTHOR_EMAIL = "comment.author.email"; 072 /** Argument name for processed comment's validation state */ 073 public static final String ARGS_COMMENT_VALIDATED = "comment.validated"; 074 /** Argument name for processed jcr tag */ 075 public static final String ARGS_TAG = "tag"; 076 /** Argument name for processed tag's id */ 077 public static final String ARGS_TAG_ID = "tag.id"; 078 /** Argument name for processed tag's name */ 079 public static final String ARGS_TAG_NAME = "tag.name"; 080 081 /** Event id when a tag is created. */ 082 public static final String EVENT_TAG_ADDED = "tag.added"; 083 /** Event id when a tag is modified. */ 084 public static final String EVENT_TAG_UPDATED = "tag.updated"; 085 /** Event id when a tag is removed. */ 086 public static final String EVENT_TAG_DELETED = "tag.deleted"; 087 /** Event id when a tag is moved. */ 088 public static final String EVENT_TAG_MOVED = "tag.moved"; 089}