src/main/java/edu/kit/informatik/pcc/webinterface/datamanagement/VideoDataManager.java
/**
     * This method sends a request to delete a video via the ServerProxy.
     *
     * @param videoID the id of the video to delete
     */
This method sends a request to delete a video via the ServerProxy.
@param videoID the id of the video to delete
This method sends a request to delete a video via the ServerProxy . @param videoID the id of the video to delete
public static void deleteVideo(int videoID, VaadinSession session) {
        Account account = (Account) session.getAttribute(MyUI.SESSION_KEY_ACCOUNT);
        String ret = ServerProxy.videoDelete(videoID, account);
        switch (ret) {
            case SUCCESS:
                MessageBox.createInfo()
                        .withMessage(errors.getString("videoDeleted"))
                        .open();
                break;
            case WRONGACCOUNT:
                MessageBox.createInfo()
                        .withMessage(errors.getString("wrongAccount"))
                        .open();
                break;
            case FAILURE:
            default:
                MessageBox.createInfo()
                        .withMessage(errors.getString("videoDeleteFail"))
                        .open();
        }
    }
public static void deleteVideo ( int videoID , VaadinSession session ) { Account account = ( Account ) session . getAttribute ( MyUI . SESSION_KEY_ACCOUNT ) ; String ret = ServerProxy . videoDelete ( videoID , account ) ; switch ( ret ) { case SUCCESS : MessageBox . createInfo ( ) . withMessage ( errors . getString ( "videoDeleted" ) ) . open ( ) ; break ; case WRONGACCOUNT : MessageBox . createInfo ( ) . withMessage ( errors . getString ( "wrongAccount" ) ) . open ( ) ; break ; case FAILURE : default : MessageBox . createInfo ( ) . withMessage ( errors . getString ( "videoDeleteFail" ) ) . open ( ) ; } }
This method sends a request to delete a video via the ServerProxy.
This method sends a request to delete a video via the ServerProxy .