Package jp.co.nskint.uq.pd.signage.model

Examples of jp.co.nskint.uq.pd.signage.model.TimeLine


     */
    @ActionPath("{tlid}")
    public Navigation view(@Var("tlid") long tlid) {
        putEnteringLog();
        try {
            TimeLine timeline = tlService.get(tlid);
            LayoutInfo layout = tlService.getViewLayout(timeline);
            request.setAttribute("title", timeline.getXmlModel().getName());
            request.setAttribute("layout", layout.layout.getXmlModel());
            request.setAttribute("reloadTime", layout.reloadTime.getTime() - new Date().getTime());
            request.setAttribute("title", "テスト");
            return forward("/view/view.jsp");
        } finally {
View Full Code Here


     *            タイムラインID
     * @return タイムライン情報
     */
    public TimeLine get(long tlid) {
        Transaction tx = Datastore.beginTransaction();
        TimeLine result = this.get(tx, tlid);
        tx.commit();
        return result;
    }
View Full Code Here

     * @param tlid
     *            タイムラインID
     * @return タイムライン情報
     */
    protected TimeLine get(Transaction tx, long tlid) {
        TimeLine result;
        result =
            Datastore.getOrNull(
                tx,
                TimeLineMeta.get(),
                createKey(tlid));
View Full Code Here

        Schedule schedule = cretateSchedule(scheduleId, blockId);

        // タイムラインXMLモデルの作成
        TimeLineXml timelineXml = cretateTimeLineXml(tlid, name, block, schedule);

        TimeLine timeline = new TimeLine();
        timeline.setId(id);
        Date now = new Date();
        timeline.setRegisteredDate(now);
        timeline.setUpdatedDate(now);
        timeline.setXmlModel(timelineXml);
        timeline.getManagerRef().setModel(manager);

        return timeline;
    }
View Full Code Here

            errors.put("page", "指定されたマネージャは存在しません。");
            return forward("/error.jsp");
        }

        // タイムライン情報の作成
        TimeLine timeline = tlService.cretateTimeLine(manager, lid, name);

        // 保存
        tlService.put(manager, timeline);

        // 一覧画面に遷移する。
View Full Code Here

            if(manager == null) {
                errors.put("page", "指定されたマネージャは存在しません。");
                return forward("/error.jsp");
            }

            TimeLine timeline = tlService.get(tlid);
            if(timeline == null) {
                errors.put("page", "指定されたタイムラインは存在しません。");
                return forward("/error.jsp");
            }

            // タイムラインXML情報を取得
            TimeLineXml timelineXml = timeline.getXmlModel();

            List<Layout> layoutList = manager.getLayoutListRef().getModelList();
            this.request.setAttribute("layoutList", layoutList);

//            String defaultLayoutId = timeline.getLayoutId();
View Full Code Here

            if(manager == null) {
                errors.put("page", "指定されたマネージャは存在しません。");
                return forward("/error.jsp");
            }

            TimeLine timeline = tlService.get(tlid);
            if(timeline == null) {
                errors.put("page", "指定されたタイムラインは存在しません。");
                return forward("/error.jsp");
            }

//            try {
//                JAXBContext context =
//                    JAXBContext.newInstance("jp.co.nskint.uq.pd.signage.model.xml");
                timeline.setXml(xml);
//                TimeLineXml tlXml = (TimeLineXml) context.createUnmarshaller().unmarshal(new StreamSource(new StringReader(xml)));
//                timeline.setXmlModel(tlXml);
//            } catch (JAXBException e) {
//                throw new IllegalStateException(e);
//            }
View Full Code Here

TOP

Related Classes of jp.co.nskint.uq.pd.signage.model.TimeLine

Copyright © 2018 www.massapicom. 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.