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