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