001/*
002 *  Copyright 2016 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.threads;
017
018import java.util.Date;
019
020import org.ametys.core.user.UserIdentity;
021import org.ametys.plugins.repository.metadata.ModifiableRichText;
022
023/**
024 * Common interface for modifiable post of a thread
025 *
026 */
027public interface ModifiablePost extends Post
028{
029    /**
030     * Get the content of the post
031     * @return The content of the post
032     */
033    public ModifiableRichText getContent();
034    
035    /**
036     * Set the author of this post.
037     * @param author the author
038     */
039    public void setAuthor(UserIdentity author);
040    
041    /**
042     * Set the post's creation date.
043     * @param startDate the post's creation date.
044     */
045    public void setCreationDate(Date startDate);
046    
047    /**
048     * Set the post's modification date.
049     * @param date the last modification date to set.
050     */
051    public void setLastModified(Date date);
052}