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.explorer.threads; 017 018import java.util.Date; 019 020import org.ametys.core.user.UserIdentity; 021import org.ametys.plugins.explorer.ModifiableExplorerNode; 022import org.ametys.plugins.repository.ModifiableTraversableAmetysObject; 023import org.ametys.plugins.repository.RemovableAmetysObject; 024 025/** 026 * Common interface for modifiable thread 027 * 028 */ 029public interface ModifiableThread extends Thread, ModifiableTraversableAmetysObject, RemovableAmetysObject, ModifiableExplorerNode 030{ 031 /** 032 * Set the title of this thread. 033 * @param title the thread's title 034 */ 035 public void setTitle(String title); 036 037 /** 038 * Set the author of this thread. 039 * @param author the author 040 */ 041 public void setAuthor(UserIdentity author); 042 043 /** 044 * Set the thread's creation date. 045 * @param creationDate the thread's creation date. 046 */ 047 public void setCreationDate(Date creationDate); 048 049 /** 050 * Mark the thread as read by a user 051 * @param user The user 052 */ 053 public void markAsRead(UserIdentity user); 054}