Examples of SubscribedTreeModel


Examples of open.dolphin.infomodel.SubscribedTreeModel

        } catch (UnsupportedEncodingException e) {
            e.printStackTrace(System.err);
        }
        //importTree.setTreeBytes(null);
        // サブスクライブリストに追加する
        SubscribedTreeModel sm = new SubscribedTreeModel();
        sm.setUser(Project.getUserModel());
        sm.setTreeId(importTree.getId());
        final List<SubscribedTreeModel> subscribeList = new ArrayList<SubscribedTreeModel>(1);
        subscribeList.add(sm);
       
        // デリゲータを生成する
        sdl = new StampDelegater();
View Full Code Here

Examples of open.dolphin.infomodel.SubscribedTreeModel

            return;
        }
       
        // 削除するTreeを取得する
        final PublishedTreeModel removeTree = (PublishedTreeModel) objects[0];
        SubscribedTreeModel sm = new SubscribedTreeModel();
        sm.setTreeId(removeTree.getId());
        sm.setUser(Project.getUserModel());
        final List<SubscribedTreeModel> list = new ArrayList<SubscribedTreeModel>(1);
        list.add(sm);
       
        // DeleteTaskを実行する
        sdl = new StampDelegater();
View Full Code Here

Examples of open.dolphin.infomodel.SubscribedTreeModel

        //
        // サブスクライブリストから公開Treeを取得する
        //
        for (Iterator iter=subscribed.iterator(); iter.hasNext(); ) {
           
            SubscribedTreeModel sm = (SubscribedTreeModel) iter.next();
           
            //
            // 公開Treeが削除されている場合
            // サブスクライブTreeも削除する
            //
            try {
                PublishedTreeModel published = (PublishedTreeModel) em.find(PublishedTreeModel.class, sm.getTreeId());
               
                if (published == null) {
                    //
                    // 公開Treeが削除されている場合
                    // サブスクライブリストレコードを削除する
View Full Code Here

Examples of open.dolphin.infomodel.SubscribedTreeModel

    public int unsubscribeTrees(List<SubscribedTreeModel> removeList) {
       
        int cnt = 0;
       
        for (SubscribedTreeModel model : removeList) {
            SubscribedTreeModel remove = (SubscribedTreeModel) em.createQuery("from SubscribedTreeModel s where s.user.id=:userPk and s.treeId=:treeId")
            .setParameter("userPk", model.getUser().getId())
            .setParameter("treeId", model.getTreeId())
            .getSingleResult();
            em.remove(remove);
            cnt++;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.