Package org.ryu22e.nico2cal.model

Examples of org.ryu22e.nico2cal.model.Nicolive


            String[] keysString = request.getParameterValues("keys[]");
            for (String key : keysString) {
                Key nicoliveKey;
                try {
                    nicoliveKey = Datastore.stringToKey(key);
                    Nicolive nicolive = nicoliveService.find(nicoliveKey);
                    if (nicolive != null) {
                        List<Key> indexes =
                                nicoliveService.createIndex(nicolive);
                        LOGGER
                            .info("Generated " + indexes.size() + " indexes.");
View Full Code Here


            }

            // 「nicolive:***」が取得できないエントリーは登録しない。
            if (module != null) {
                // 重複するリンクを持つエンティティがある場合は更新対象から外す。
                Nicolive nicolive =
                        Datastore
                            .query(n)
                            .filter(n.link.equal(new Link(entry.getLink())))
                            .asSingle();
                if (nicolive == null) {
                    nicolive = new Nicolive();
                    nicolive.setTitle(entry.getTitle());
                    nicolive.setDescription(new Text(entry
                        .getDescription()
                        .getValue()));
                    try {
                        Date openTime =
                                DateUtil.toDate(df.parse(module.getOpenTime()));
                        nicolive.setOpenTime(openTime);
                        Date startTime =
                                DateUtil
                                    .toDate(df.parse(module.getStartTime()));
                        nicolive.setStartTime(startTime);
                    } catch (ParseException e) {
                        LOGGER.log(Level.WARNING, e.getMessage());
                        continue;
                    }

                    nicolive.setType(module.getType());
                    nicolive.setLink(new Link(entry.getLink()));

                    nicolives.add(nicolive);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.ryu22e.nico2cal.model.Nicolive

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.