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.core;
017
018/**
019 * Interface for observers
020 *
021 */
022public interface ObservationConstants
023{
024    /** Event id when a profile is delete. */
025    public static final String EVENT_PROFILE_ADDED = "profile.added";
026    
027    /** Event id when a profile is delete. */
028    public static final String EVENT_PROFILE_UPDATED = "profile.updated";
029    
030    /** Event id when a profile is delete. */
031    public static final String EVENT_PROFILE_DELETED = "profile.deleted";
032    
033    /** Event id when a user is added. */
034    public static final String EVENT_USER_ADDED = "user.added";
035    
036    /** Event id when a user is updated. */
037    public static final String EVENT_USER_UPDATED = "user.updated";
038    
039    /** Event id when a user is deleted. */
040    public static final String EVENT_USER_DELETED = "user.deleted";
041
042    /** Event id when users are imported. */
043    public static final String EVENT_USER_IMPORTED = "user.imported";
044    
045    /** Event id when a user authenticates. */
046    public static final String EVENT_USER_AUTHENTICATED = "user.loggedin";
047    
048    /** Event id when a group is added. */
049    public static final String EVENT_GROUP_ADDED = "group.added";
050    
051    /** Event id when a group is updated. */
052    public static final String EVENT_GROUP_UPDATED = "group.updated";
053    
054    /** Event id when a group is deleted. */
055    public static final String EVENT_GROUP_DELETED = "group.deleted";
056    
057    /** Event id when ACL is updated. */
058    public static final String EVENT_ACL_UPDATED = "acl.update";
059    
060    /** Event id when a datasource is added. */
061    public static final String EVENT_DATASOURCE_ADDED = "datasource.added";
062    
063    /** Event id when a datasource is updated. */
064    public static final String EVENT_DATASOURCE_UPDATED = "datasource.updated";
065    
066    /** Event id when a datasource is deleted. */
067    public static final String EVENT_DATASOURCE_DELETED = "datasource.deleted";
068
069    /** Event id when a userpopulation is added. */
070    public static final String EVENT_USERPOPULATION_ADDED = "userpopulation.added";
071    
072    /** Event id when a userpopulation is updated. */
073    public static final String EVENT_USERPOPULATION_UPDATED = "userpopulation.updated";
074    
075    /** Event id when a userpopulation is deleted. */
076    public static final String EVENT_USERPOPULATION_DELETED = "userpopulation.deleted";
077
078    /** Event id when a userpopulation is assigned. */
079    public static final String EVENT_USERPOPULATIONS_ASSIGNMENT = "userpopulations.assignment";
080    
081    /** Event id when the migration process has successfully ended. */
082    public static final String EVENT_MIGRATION_ENDED = "migration.ended";
083    
084    /** Event when a cache is reset */
085    public static final String EVENT_CACHE_RESET = "cache.reset";
086    
087    /** Event when the maintenance mode is changing */
088    public static final String EVENT_RUNTIME_MAINTENANCE = "runtime.maintenance";
089
090    /** Argument name for processed profile */
091    public static final String ARGS_PROFILE = "profile";
092    
093    /** Argument name for processed user */
094    public static final String ARGS_USER = "user";
095
096    /** Argument name for new imported users */
097    public static final String ARGS_USERS_ADDED = "users.added";
098
099    /** Argument name for updated imported users */
100    public static final String ARGS_USERS_UPDATED = "users.updated";
101    
102    /** Argument name for processed group */
103    public static final String ARGS_GROUP = "group";
104    
105    /** Argument name for processed acl context */
106    public static final String ARGS_ACL_CONTEXT = "acl-context";
107    
108    /** Argument name for processed acl context identifier */
109    public static final String ARGS_ACL_CONTEXT_IDENTIFIER = "acl-context-identifier";
110    
111    /** Argument name for the updated ACL profiles */
112    public static final String ARGS_ACL_PROFILES = "acl-profiles";
113    
114    /** Argument name for processed datasources (a list of id) */
115    public static final String ARGS_DATASOURCE_IDS = "datasource-ids";
116
117    /** Argument name for processed userpopulation (an id) */
118    public static final String ARGS_USERPOPULATION_ID = "userpopulation-id";
119
120    /** Argument name for processed userpopulations (a list of id) */
121    public static final String ARGS_USERPOPULATION_IDS = "userpopulation-ids";
122
123    /** Argument name for processed userpopulations context */
124    public static final String ARGS_USERPOPULATION_CONTEXT = "userpopulation-context";
125
126    /** Argument name for cache id */
127    public static final String ARGS_CACHE_ID = "cache.id";
128}