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 BaseWebServiceWbService contains methods to manipulate whiteboard contents
-
-
Field Summary
-
Fields inherited from class org.apache.openmeetings.webservice.BaseWebService
fileDao, roomDao, sessionDao, userDao
-
-
Constructor Summary
Constructors Constructor Description WbWebService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceResultcleanSlide(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)ServiceResultcleanWb(String sid, long roomId, long wbId)This method will do the same as clean WB in the room (except for there will be no UNDO)ServiceResultresetWb(String sid, long id)This method will remove all whiteboards from given room and create empty one(s) for room files specifiedServiceResultuploadWb(String sid, String type, String data)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
-
-
-
Method Detail
-
resetWb
@GET @Path("/resetwb/{id}") public ServiceResult resetWb(@QueryParam("sid") String sid, @PathParam("id") long id) throws ServiceExceptionThis 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 ServiceExceptionThis 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 ServiceExceptionThis 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 ServiceExceptionThis 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
-
-