Examples of NicoliveMeta


Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

    public void tearDown() throws Exception {
        // テストデータを削除する。
        if (0 < testDataKeys.size()) {
            Datastore.delete(testDataKeys);
        }
        NicoliveMeta n = NicoliveMeta.get();
        List<Key> keys =
                Datastore
                    .query(n)
                    .filter(n.title.startsWith("テスト"))
                    .asKeyList();
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

        SyndFeed feed = createFeed();
        List<Key> keys = service.put(feed);
        assertThat(keys, is(notNullValue()));
        assertThat(keys.size(), is(8));

        NicoliveMeta n = NicoliveMeta.get();
        assertThat(
            Datastore
                .query(n)
                .filter(n.link.equal(new Link("http://ryu22e.org/0")))
                .count(),
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

    /**
     *
     */
    private void clearDataStore() {
        NicoliveMeta n = NicoliveMeta.get();
        Datastore.delete(Datastore.query(n).asKeyList());
        NicoliveIndexMeta ni = NicoliveIndexMeta.get();
        Datastore.delete(Datastore.query(ni).asKeyList());
    }
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

    /**
     *
     */
    private void clearDataStore() {
        NicoliveMeta n = NicoliveMeta.get();
        Datastore.delete(Datastore.query(n).asKeyList());
        NicoliveIndexMeta ni = NicoliveIndexMeta.get();
        Datastore.delete(Datastore.query(ni).asKeyList());
    }
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

        assertThat(controller, is(notNullValue()));
        assertThat(tester.isRedirect(), is(false));
        assertThat(tester.response.getStatus(), is(200));
        assertThat(tester.getDestinationPath(), is(nullValue()));

        NicoliveMeta n = NicoliveMeta.get();
        assertThat(Datastore.query(n).count(), not(0));
    }
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

    /**
     *
     */
    private void clearDataStore() {
        NicoliveMeta n = NicoliveMeta.get();
        Datastore.delete(Datastore.query(n).asKeyList());
        NicoliveIndexMeta ni = NicoliveIndexMeta.get();
        Datastore.delete(Datastore.query(ni).asKeyList());
    }
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

    public List<Key> put(SyndFeed feed) {
        if (feed == null) {
            throw new NullPointerException("feed is null.");
        }

        NicoliveMeta n = NicoliveMeta.get();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        df.setTimeZone(TimeZone.getTimeZone("Asia/Tokyo"));
        List<Nicolive> nicolives = new LinkedList<Nicolive>();
        @SuppressWarnings("unchecked")
        List<SyndEntry> entries = (List<SyndEntry>) feed.getEntries();
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

        }
        if (condition.getStartDate() == null) {
            throw new IllegalArgumentException("StartDate is null.");
        }

        NicoliveMeta n = NicoliveMeta.get();
        if (condition.getEndDate() == null) {
            return Datastore
                .query(n)
                .filter(n.openTime.greaterThanOrEqual(condition.getStartDate()))
                .sort(n.openTime.getName(), SortDirection.ASCENDING)
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

     */
    public Nicolive find(Key key) {
        if (key == null) {
            throw new NullPointerException("key is null.");
        }
        NicoliveMeta n = NicoliveMeta.get();
        return Datastore.getOrNull(n, key);
    }
View Full Code Here

Examples of org.ryu22e.nico2cal.meta.NicoliveMeta

        Calendar calendar = new Calendar();
        calendar.getProperties().add(PROD_ID);
        calendar.getProperties().add(Version.VERSION_2_0);
        calendar.getProperties().add(new XProperty("X-WR-CALNAME", CALNAME));

        NicoliveMeta n = NicoliveMeta.get();
        NicoliveIndexMeta ni = NicoliveIndexMeta.get();

        ModelQuery<Nicolive> query =
                Datastore
                    .query(n)
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.