001/* 002 * Copyright 2016 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.workspaces; 017 018/** 019 * Constants for event identifiers. 020 */ 021public interface ObservationConstants 022{ 023 /** Event id when a project is added. */ 024 public static final String EVENT_PROJECT_ADDED = "project.added"; 025 /** Event id when a project's configuration is updated. */ 026 public static final String EVENT_PROJECT_UPDATED = "project.updated"; 027 /** Event id when a project is deleted. */ 028 public static final String EVENT_PROJECT_DELETED = "project.deleted"; 029 /** Event id when a member is added. */ 030 public static final String EVENT_MEMBER_ADDED = "member.added"; 031 /** Event id when a member is deleted. */ 032 public static final String EVENT_MEMBER_DELETED = "member.deleted"; 033 034 /** Argument name for processed project */ 035 public static final String ARGS_PROJECT = "project"; 036 /** Argument name for processed project id */ 037 public static final String ARGS_PROJECT_ID = "projectId"; 038 /** Argument name for processed member */ 039 public static final String ARGS_MEMBER = "project.member"; 040 /** Argument name for processed member id */ 041 public static final String ARGS_MEMBER_ID = "project.member.id"; 042 /** Argument name for processed member identity */ 043 public static final String ARGS_MEMBER_IDENTITY = "project.member.identity"; 044 /** Argument name for processed member identity type */ 045 public static final String ARGS_MEMBER_IDENTITY_TYPE = "project.member.identity.type"; 046 047 /** Event id when a new front edition page if created */ 048 public static final String EVENT_EDITIONFO_CREATED = "wiki.page.created"; 049 /** Event id when a new front edition page if updated */ 050 public static final String EVENT_EDITIONFO_UPDATED = "wiki.page.updated"; 051 /** Event id when a new front edition page if renamed */ 052 public static final String EVENT_EDITIONFO_RENAMED = "wiki.page.renamed"; 053 /** Event id when a new front edition page if deleted */ 054 public static final String EVENT_EDITIONFO_DELETED = "wiki.page.deleted"; 055 /** Argument name for the page title */ 056 public static final String ARGS_PAGE_TITLE = "wiki.page.title"; 057 /** Argument name for the renamed page old name */ 058 public static final String ARGS_PAGE_OLD_NAME = "wiki.page.name.old"; 059}