001/*
002 *  Copyright 2022 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 */
016
017package org.ametys.plugins.workspaces.tasks;
018
019import java.util.List;
020import java.util.Map;
021
022import org.apache.avalon.framework.component.Component;
023
024/**
025 * Component listing the available icons for a tasks list
026 */
027public class TasksListIconsComponent implements Component
028{
029    /** The component role */
030    public static final String ROLE = TasksListIconsComponent.class.getName();
031    
032    /**
033     * Get icons
034     * @return the list of icon as json
035     */
036    public List<Map<String, String>> getIcons()
037    {
038        return List.of(
039                Map.of("id", "1", "icon", "fa-map-signs"),
040                Map.of("id", "2", "icon", "far fa-images"),
041                Map.of("id", "3", "icon", "fa-bullhorn"),
042                Map.of("id", "4", "icon", "far fa-clock"),
043                Map.of("id", "5", "icon", "fa-chalkboard-teacher"),
044                Map.of("id", "6", "icon", "fa-chart-line"),
045                Map.of("id", "7", "icon", "far fa-comments"),
046                Map.of("id", "8", "icon", "fa-shopping-basket"),
047                Map.of("id", "9", "icon", "far fa-lightbulb"),
048                Map.of("id", "10", "icon", "fa-list-ul"),
049                Map.of("id", "11", "icon", "far fa-calendar-alt"),
050                Map.of("id", "12", "icon", "far fa-question-circle"),
051                Map.of("id", "13", "icon", "far fa-smile"),
052                Map.of("id", "14", "icon", "far fa-meh")
053            );
054    }
055    
056    /**
057     * Get default icon key
058     * @return the default icon key
059     */
060    public String getDefaultKey()
061    {
062        return "10";
063    }
064}