Examples of ICollectionEntry


Examples of com.semagia.atomico.server.dm.ICollectionEntry

        DefaultFeed<ICollectionEntry> feed = new DefaultFeed<ICollectionEntry>(iri,
                                getConfiguration().getOverviewFeedTitle(),
                                _lastModification);
        applyAuthorInfo(feed);
        for (ICollectionInfo info: _getCollections()) {
            ICollectionEntry entry = new DefaultCollectionEntry(info, super.linkToCollection(info), new ArrayList<MediaType>(FeedHandlerRegistry.getMediaTypes()));
            feed.addEntry(entry);
        }
        return new WritableAwareRepresentation(variant.getMediaType(),
                new OverviewFeedWriter(feed, makeFeedHandler(variant)),
                _lastModification);
View Full Code Here

Examples of com.semagia.atomico.server.feed.impl.IOverviewFeed.ICollectionEntry

        final String title = "title";
        final long updated = now();
        final ICollectionInfo collInfo = new CollectionInfo(id, title, updated, "collId");
        feed.addEntry(collInfo, link);
        assertEquals(1, feed.getEntries().size());
        final ICollectionEntry entry = feed.getEntries().iterator().next();
        assertNotNull(entry);
        assertEquals(id, entry.getId());
        assertEquals(title, entry.getTitle());
        assertEquals(linkAdr, entry.getLink());
        assertEquals(updated, entry.getUpdated());
    }
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.