Class WbWebService
java.lang.Object
org.apache.openmeetings.webservice.BaseWebService
org.apache.openmeetings.webservice.WbWebService
@Service("wbWebService")
@Produces("application/json")
@Path("/wb")
public class WbWebService
extends BaseWebService
WbService contains methods to manipulate whiteboard contents
-
Field Summary
Fields inherited from class org.apache.openmeetings.webservice.BaseWebService
fileDao, roomDao, sessionDao, userDao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncleanSlide
(String sid, long roomId, long wbId, int slide) This method will do the same as clean slide in the room (except for there will be no UNDO)This method will do the same as clean WB in the room (except for there will be no UNDO)This method will remove all whiteboards from given room and create empty one(s) for room files specifiedThis method will receive WB as binary data (png) and store it to temporary PDF/PNG file unlike other web service methods this one uses internal client sid NOT web service sid
-
Constructor Details
-
WbWebService
public WbWebService()
-
-
Method Details
-
resetWb
@GET @Path("/resetwb/{id}") public ServiceResult resetWb(@QueryParam("sid") String sid, @PathParam("id") long id) throws ServiceException This method will remove all whiteboards from given room and create empty one(s) for room files specified- Parameters:
sid
- - The SID of the User. This SID must be marked as Loggedinid
- - id of the room to clean- Returns:
- - serviceResult object with the result
- Throws:
ServiceException
-
cleanWb
@GET @Path("/cleanwb/{roomid}/{wbid}") public ServiceResult cleanWb(@QueryParam("sid") String sid, @PathParam("roomid") long roomId, @PathParam("wbid") long wbId) throws ServiceException This method will do the same as clean WB in the room (except for there will be no UNDO)- Parameters:
sid
- - The SID of the User. This SID must be marked as LoggedinroomId
- - id of the room to cleanwbId
- - id of the white board to clean- Returns:
- - serviceResult object with the result
- Throws:
ServiceException
-
cleanSlide
@GET @Path("/cleanslide/{roomid}/{wbid}/{slide}") public ServiceResult cleanSlide(@QueryParam("sid") String sid, @PathParam("roomid") long roomId, @PathParam("wbid") long wbId, @PathParam("slide") int slide) throws ServiceException This method will do the same as clean slide in the room (except for there will be no UNDO)- Parameters:
sid
- - The SID of the User. This SID must be marked as LoggedinroomId
- - id of the room to cleanwbId
- - id of the white board to cleanslide
- - slide number (zero based)- Returns:
- - serviceResult object with the result
- Throws:
ServiceException
-
uploadWb
@POST @Path("/uploadwb/{type}") public ServiceResult uploadWb(@QueryParam("sid") String sid, @PathParam("type") String type, @FormParam("data") String data) throws ServiceException This method will receive WB as binary data (png) and store it to temporary PDF/PNG file unlike other web service methods this one uses internal client sid NOT web service sid- Parameters:
sid
- - internal client sidtype
- - the type of document being saved PNG/PDFdata
- - binary data- Returns:
- - serviceResult object with the result
- Throws:
ServiceException
-