/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.java.sip.communicator.service.protocol;
import java.util.*;
import net.java.sip.communicator.service.protocol.event.*;
/**
* Provides basic functionality for white-board.
*
* @author Julien Waechter
*/
public interface OperationSetWhiteboarding
extends OperationSet
{
/**
* Returns a list of the WhiteboardSessions that we have joined and
* are currently active in.
*
* @return a List of the WhiteboardSessions where the user
* has joined using a given connection.
*/
public List getCurrentlyJoinedWhiteboards();
/**
* Returns a list of the WhiteboardSessions that
* WhiteboardParticipant has joined and is currently active in.
*
* @param participant the participant whose current
* WhiteboardSessions we will be querying.
* @return a list of the WhiteboardSessions that
* WhiteboardParticipant has joined and is currently active in.
*
* @throws OperationFailedException if an error occurs while trying to
* discover the session.
* @throws OperationNotSupportedException if the server does not support
* white-boarding
*/
public List getCurrentlyJoinedWhiteboards(
WhiteboardParticipant participant)
throws OperationFailedException, OperationNotSupportedException;
/**
* Creates a WhiteboardSession with the name sessionName
* and according to the specified sessionProperties. When the
* method returns the white-board session object, the local user will not
* have joined it and thus will not receive messages on it until the
* WhiteboardSession.join() method is called.
*
* @param sessionName the name of the WhiteboardSession to create.
* @param sessionProperties properties specifying how the session should be
* created.
* @throws OperationFailedException if the room couldn't be created for some
* reason (e.g. room already exists; user already joined to an existent
* room or user has no permissions to create a chat room).
* @throws OperationNotSupportedException if chat room creation is not
* supported by this server
*
* @return the newly created WhiteboardSession named
* sessionName.
*/
public WhiteboardSession createWhiteboardSession(
String sessionName,
Hashtable