2001-01-31 20:55:37 +00:00

68 lines
2.0 KiB
Java

/*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
*
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
* language governing rights and limitations under the License.
*
* The Original Code is the Venice Web Community System.
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
package com.silverwrist.venice.core;
import java.util.Date;
import java.util.List;
public interface TopicContext
{
public abstract void refresh() throws DataException;
public abstract int getTopicID();
public abstract short getTopicNumber();
public abstract String getName();
public abstract int getUnreadMessages();
public abstract int getTotalMessages();
public abstract Date getLastUpdateDate();
public abstract int getCreatorUID();
public abstract boolean isFrozen();
public abstract boolean isArchived();
public abstract Date getCreatedDate();
public abstract boolean isHidden();
public abstract boolean isDeleted();
public abstract boolean canFreeze();
public abstract boolean canArchive();
public abstract void setFrozen(boolean flag) throws DataException, AccessError;
public abstract void setArchived(boolean flag) throws DataException, AccessError;
public abstract void setHidden(boolean flag) throws DataException;
public abstract int getFirstUnreadMessage();
public abstract void setUnreadMessages(int count) throws DataException;
public abstract void fixSeen() throws DataException;
} // end interface TopicContext