001/*
002 *  Copyright 2014 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.explorer.calendars;
017
018import org.ametys.plugins.explorer.ModifiableExplorerNode;
019import org.ametys.plugins.repository.ModifiableTraversableAmetysObject;
020import org.ametys.plugins.repository.RemovableAmetysObject;
021
022/**
023 * Modifiable Calendar Interface
024 */
025public interface ModifiableCalendar extends Calendar, ModifiableTraversableAmetysObject, RemovableAmetysObject, ModifiableExplorerNode
026{
027    /**
028     * set the description of the calendar
029     * @param desc The description
030     */
031    public void setDescription(String desc);
032    
033    /**
034     * set the color of the calendar
035     * @param color The color to set
036     */
037    public void setColor(String color);
038    
039    /**
040     * Set the visibility of the calendar
041     * @param visibility The visibility
042     */
043    public void setVisibility(CalendarVisibility visibility);
044    
045    /**
046     * set the name of the workflow of the calendar
047     * @param workflowName The workflow name
048     */
049    public void setWorkflowName(String workflowName);
050    
051
052    /**
053     * set the template description of the calendar
054     * @param templateDesc The template description
055     */
056    public void setTemplateDescription(String templateDesc);
057    
058    /**
059     * Set the token used by the ICS public URL
060     * @param token The token, or null to delete the existing token
061     */
062    public void setIcsUrlToken(String token);
063}