Examples of StampTreeModel


Examples of open.dolphin.infomodel.StampTreeModel

                        StringBuilder sb = new StringBuilder();
                        while( (line = reader.readLine()) != null ) {
                            sb.append(line);
                        }
                        // Tree情報を設定し保存する
                        IStampTreeModel tm = new StampTreeModel();
                        tm.setUser(Project.getUserModel());
                        tm.setName(ClientContext.getString("stampTree.personal.box.name"));
                        tm.setDescription(ClientContext.getString("stampTree.personal.box.tooltip"));
                        FacilityModel facility = Project.getUserModel().getFacilityModel();
                        tm.setPartyName(facility.getFacilityName());
                        String url = facility.getUrl();
                        if (url != null) {
                            tm.setUrl(url);
                        }
                        tm.setTreeXml(sb.toString());
                        in.close();
                        reader.close();
                        // リストの先頭へ追加する
                        treeList.add(0, tm);
                    }
View Full Code Here

Examples of open.dolphin.infomodel.StampTreeModel

     * @return id
     */
    @Override
    public long putTree(StampTreeModel model) {
       
        StampTreeModel saveOrUpdate = em.merge(model);
        return saveOrUpdate.getId();
    }
View Full Code Here

Examples of open.dolphin.infomodel.StampTreeModel

       
        //
        // パーソナルツリーを取得する
        //
        try {
            StampTreeModel personal = (StampTreeModel) em.createQuery("from StampTreeModel s where s.user.id=:userPk")
            .setParameter("userPk", userPk)
            .getSingleResult();
            ret.add(personal);
           
        } catch (NoResultException ne) {
View Full Code Here

Examples of open.dolphin.infomodel.StampTreeModel

     * @return ASP提供のStampTree
     */
    @Override
    public StampTreeModel getAspTree(String managerId) {
       
        StampTreeModel ret = null;
       
        try {
            ret =  (StampTreeModel)em.createQuery("from StampTreeModel s where s.userId = :mid")
            .setParameter("mid", managerId)
            .getSingleResult();
View Full Code Here

Examples of open.dolphin.infomodel.StampTreeModel

        for (PublishedTreeModel tree : publishedTrees) {
            em.remove(tree);
        }
       
        // PersonalTreeを削除する
        StampTreeModel stampTree = (StampTreeModel) em.createQuery("from StampTreeModel s where s.user.id = :pk")
        .setParameter("pk", removePk)
        .getSingleResult();
        em.remove(stampTree);
       
        //
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.