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 project name */
039    public static final String ARGS_PROJECT_NAME = "project.name";
040    /** Argument name for processed project members */
041    public static final String ARGS_PROJECT_MEMBERS = "project.members";
042    /** Argument name for processed member */
043    public static final String ARGS_MEMBER = "project.member";
044    /** Argument name for processed member id */
045    public static final String ARGS_MEMBER_ID = "project.member.id";
046    /** Argument name for processed member identity */
047    public static final String ARGS_MEMBER_IDENTITY = "project.member.identity";
048    /** Argument name for processed member identity type */
049    public static final String ARGS_MEMBER_IDENTITY_TYPE = "project.member.identity.type";
050    
051    /** Event id when a new front edition page if created */
052    public static final String EVENT_MINISITE_PAGE_CREATED = "minisite.page.created";
053    /** Event id when a new front edition page if updated */
054    public static final String EVENT_MINISITE_PAGE_UPDATED = "minisite.page.updated";
055    /** Event id when a new front edition page if renamed */
056    public static final String EVENT_MINISITE_PAGE_RENAMED = "minisite.page.renamed";
057    /** Event id when a new front edition page if deleted */
058    public static final String EVENT_MINISITE_PAGE_DELETED = "minisite.page.deleted";
059    /** Argument name for the page title */
060    public static final String ARGS_PAGE_TITLE = "minisite.page.title";
061    
062    /** Event id when a wall content is published. */
063    public static final String EVENT_WALLCONTENT_ADDED = "wallcontent.added";
064    
065    /** Event id when a project news is (published notified to members). */
066    public static final String EVENT_PROJECT_NEWS_PUBLISHED = "project.news.published";
067    
068    /** Event id when a task is created. */
069    public static final String EVENT_TASK_CREATED = "task.created";
070    /** Event id when a task is assigned to (a) user(s). */
071    public static final String EVENT_TASK_ASSIGNED = "task.assigned";
072    /** Event id when a task's closed status is changed. */
073    public static final String EVENT_TASK_CLOSED_STATUS_CHANGED = "task.closed.status.changed";
074    /** Event id when a task is modified. */
075    public static final String EVENT_TASK_UPDATED = "task.updated";
076    /** Event id when a task is deleted. */
077    public static final String EVENT_TASK_DELETING = "task.deleting";
078    /** Event id when a task is deleted. */
079    public static final String EVENT_TASK_DELETED = "task.deleted";
080    /** Argument name for processed task */
081    public static final String ARGS_TASK = "task";
082    /** Argument name for processed task ID */
083    public static final String ARGS_TASK_ID = "taskID";
084}