src/main/java/edu/kit/informatik/pcc/webinterface/datamanagement/VideoDataManager.java
/**
     * This method adds the meta-info to every video object in the list.
     */
This method adds the meta-info to every video object in the list.
This method adds the meta - info to every video object in the list .
private static LinkedList<Video> addInfoToVideoList(LinkedList<Video> videos, VaadinSession session) {
        LinkedList<Video> ret = new LinkedList<>();
        if (videos == null) {
            MessageBox.createInfo()
                    .withMessage(errors.getString("infoFail"))
                    .open();
            return null;
        }
        for (Video v : videos) {
            String info = getMetaInfFromServer(v.getId(), session);
            v.setInfo(info);
            ret.add(v);
        }
        return ret;
    }
private static LinkedList < Video > addInfoToVideoList ( LinkedList < Video > videos , VaadinSession session ) { LinkedList < Video > ret = new LinkedList < > ( ) ; if ( videos == null ) { MessageBox . createInfo ( ) . withMessage ( errors . getString ( "infoFail" ) ) . open ( ) ; return null ; } for ( Video v : videos ) { String info = getMetaInfFromServer ( v . getId ( ) , session ) ; v . setInfo ( info ) ; ret . add ( v ) ; } return ret ; }
This method adds the meta-info to every video object in the list.
This method adds the meta - info to every video object in the list .