001/* 002 * Copyright 2010 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.repository.metadata; 018 019import org.ametys.plugins.repository.AmetysRepositoryException; 020 021/** 022 * Rich text that is modifiable 023 * @deprecated Use org.ametys.cms.data.RichText instead 024 */ 025@Deprecated 026public interface ModifiableRichText extends RichText, ModifiableResource 027{ 028 /** 029 * Returns the Folder holding additional data.<br> 030 * Its internal organization is application dependant. 031 * @return the Folder holding additional data 032 */ 033 public ModifiableFolder getAdditionalDataFolder(); 034 035 /** 036 * Add a value to a semantic annotation 037 * @param name The name of the annotation 038 * @param value The value to append 039 * @throws AmetysRepositoryException if an error occurs. 040 */ 041 public void addAnnotation(String name, String value) throws AmetysRepositoryException; 042 043 /** 044 * Add values to a semantic annotation 045 * @param name The name of the annotation 046 * @param values The values to append 047 * @throws AmetysRepositoryException if an error occurs. 048 */ 049 public void addAnnotation(String name, String[] values) throws AmetysRepositoryException; 050 051 /** 052 * Return all semantic annotations 053 * @throws AmetysRepositoryException if an error occurs. 054 */ 055 public void removeAnnotations() throws AmetysRepositoryException; 056 057 /** 058 * Remove a given semantic annotation 059 * @param name The name of the semantic association to remove 060 * @throws AmetysRepositoryException if an error occurs. 061 */ 062 public void removeAnnotation(String name) throws AmetysRepositoryException; 063 064}