001/*
002 *  Copyright 2012 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.odf.observation;
017
018import org.ametys.odf.ProgramItem;
019
020/**
021 * Observation constants specific to ODF.
022 */
023public interface OdfObservationConstants
024{
025    /** Event id sent when a content is translated. */
026    public static final String ODF_CONTENT_TRANSLATED = "odf.content.translated";
027    
028    /** Event id sent when a skills display of content is changed. */
029    public static final String ODF_CONTENT_SKILLS_EXCLUSION_CHANGED = "odf.content.skills.exclusion.changed";
030    
031    /** Argument of skills exclusion for a content. */
032    public static final String ODF_CONTENT_SKILLS_EXCLUSION_ARG = "odf.content.skills.exclusion.arg";
033    
034    /** Event when a educational path does no more exist */
035    public static final String EVENT_PROGRAM_ITEM_HIERARCHY_CHANGED = "odf.program.item.hierarchy.changed";
036    
037    /** Argument for a {@link ProgramItem} */
038    public static final String ARGS_PROGRAM_ITEM = "program.item";
039    
040    /** Argument for id of a {@link ProgramItem} */
041    public static final String ARGS_PROGRAM_ITEM_ID = "program.item.id";
042    
043    /** Argument for a old parent of a {@link ProgramItem} */
044    public static final String ARGS_OLD_PARENT_PROGRAM_ITEM_ID = "old.parent.program.item.id";
045    
046    /** Argument for new parents of a {@link ProgramItem} */
047    public static final String ARGS_NEW_PARENT_PROGRAM_ITEM_IDS = "new.parent.program.item.ids";
048}