001/* 002 * Copyright 2013 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.plugins.explorer; 017 018/** 019 * Constants for observers. 020 */ 021public interface ObservationConstants 022{ 023 // ------------------------- // 024 // Resources and collections // 025 // ------------------------- // 026 027 /** Event id when a resource is created. */ 028 public static final String EVENT_RESOURCE_CREATED = "resource.created"; 029 030 /** Event id when a resource is modified. */ 031 public static final String EVENT_RESOURCE_UPDATED = "resource.updated"; 032 033 /** Event id when a resource is renamed. */ 034 public static final String EVENT_RESOURCE_RENAMED = "resource.renamed"; 035 036 /** Event id when a resource is deleted. */ 037 public static final String EVENT_RESOURCE_DELETED = "resource.deleted"; 038 039 /** Event id when a resource is moved. */ 040 public static final String EVENT_RESOURCE_MOVED = "resource.moved"; 041 042 /** Event id when a collection is created. */ 043 public static final String EVENT_COLLECTION_CREATED = "collection.created"; 044 045 /** Event id when a collection is renamed. */ 046 public static final String EVENT_COLLECTION_RENAMED = "collection.renamed"; 047 048 /** Event id when a collection is deleting. */ 049 public static final String EVENT_COLLECTION_DELETING = "collection.deleting"; 050 051 /** Event id when a collection is deleted. */ 052 public static final String EVENT_COLLECTION_DELETED = "collection.deleted"; 053 054 /** Event id when a collection is moved. */ 055 public static final String EVENT_COLLECTION_MOVED = "collection.moved"; 056 057 /** Event id when a collection is copied. */ 058 public static final String EVENT_COLLECTION_COPIED = "collection.copied"; 059 060 /** Event id when a CMIS collection is updated. */ 061 public static final String EVENT_CMIS_COLLECTION_UPDATED = "cmis.collection.updated"; 062 063 // ----------------// 064 // Event arguments // 065 // ----------------// 066 067 /** Argument name for processed object's id */ 068 public static final String ARGS_ID = "object.id"; 069 070 /** Argument name for processed object's name */ 071 public static final String ARGS_NAME = "object.name"; 072 073 /** Argument name for processed object's path */ 074 public static final String ARGS_PATH = "object.path"; 075 076 /** Argument name for processed object's parent id */ 077 public static final String ARGS_PARENT_ID = "object.parent"; 078 079 /** Argument name for processed object's parent path */ 080 public static final String ARGS_PARENT_PATH = "object.parent.path"; 081 082 /** Argument name for processed resources */ 083 public static final String ARGS_RESOURCES = "resources"; 084 085 /** Argument name for processed resource path */ 086 public static final String ARGS_RESOURCE_PATH = "resource.path"; 087 088 /** Argument name for processed explorer path */ 089 public static final String ARGS_EXPLORER_PATH = "explorer.path"; 090}