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.RichText; 022 023/** 024 * Common interface for post of a thread 025 * 026 */ 027public interface Post 028{ 029 /** 030 * Get the content of the post 031 * @return The content as a {@link RichText} 032 */ 033 public RichText getContent(); 034 035 /** 036 * Get the author of the post 037 * @return The post's author 038 */ 039 public UserIdentity getAuthor(); 040 041 /** 042 * Get the post's creation date. 043 * @return the post's creation date. 044 */ 045 public Date getCreationDate(); 046 047 /** 048 * Get the post's last modification date. 049 * @return the post's last modification date. 050 */ 051 public Date getLastModified(); 052}