本文整理了Java中org.apache.abdera.model.Feed.getId()
方法的一些代码示例,展示了Feed.getId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feed.getId()
方法的具体详情如下:
包路径:org.apache.abdera.model.Feed
类名称:Feed
方法名:getId
暂无
代码示例来源:origin: stackoverflow.com
public class Job extends RealmObject {
...
Feed feed;
}
RealmResults<Job> results = realm.where(Job.class).equalTo("fulltime", true).findAllSorted("feed.id")
// Getting the count for each feed type would then require something like this:
RealmResults<Feed> feeds = realm.allObjects(Feed.class);
for (Feed feed : feeds) {
int feedCount = results.where().equalTo("feed.id", feed.getId()).count();
}
代码示例来源:origin: stackoverflow.com
import java.util.Collection;
import java.util.Iterator;
import com.xively.client.XivelyService;
import com.xively.client.model.Datastream;
import com.xively.client.model.Feed;
public class MainClass {
public static void main(String[] args) {
Feed feed = XivelyService.instance().feed().get(6630948); //your feedID as argument
System.out.println("channels of feed "+feed.getId()+ ":");
Collection<Datastream> datastreams = feed.getDatastreams();
Iterator<Datastream> datastreamsIterator=datastreams.iterator();
while(datastreamsIterator.hasNext()){
Datastream currentDatastream=datastreamsIterator.next();
System.out.println(currentDatastream.getId());
}
}//end main
}//end class
代码示例来源:origin: fcrepo3/fcrepo
Document<Feed> feedDoc = parser.parse(new StringReader(manifest.toString("UTF-8")));
Feed feed = feedDoc.getRoot();
assertEquals(PID.getInstance("demo:998").toURI(), feed.getId().toString());
代码示例来源:origin: stackoverflow.com
private final class ResponseListener implements DialogListener
{
public void onComplete(Bundle values) {
adapter.getFeedsAsync(new FeedDataListener());
}
}
// To receive the feed response after authentication
private final class FeedDataListener implements SocialAuthListener> {
@Override
public void onExecute(List t) {
Log.d("Share-Bar", "Receiving Data");
List feedList = t;
if (feedList != null && feedList.size() > 0) {
for (Feed f : feedList) {
Log.d("Custom-UI ", "Feed ID = " + f.getId());
Log.d("Custom-UI", "Screen Name = " + f.getScreenName());
Log.d("Custom-UI", "Message = " + f.getMessage());
Log.d("Custom-UI ", "Get From = " + f.getFrom());
Log.d("Custom-UI ", "Created at = " + f.getCreatedAt());
}
}
}
代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util
private EntityTag calculateEntityTag(Base base) {
String id = null;
String modified = null;
if (base instanceof Entry) {
id = ((Entry) base).getId().toString();
modified = ((Entry) base).getUpdatedElement().getText();
} else if (base instanceof Feed) {
id = ((Feed) base).getId().toString();
modified = ((Feed) base).getUpdatedElement().getText();
}
return EntityTag.generate(id, modified);
}
代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util
private EntityTag calculateEntityTag(Base base) {
String id = null;
String modifiedDate = null;
if (base instanceof Entry) {
id = ((Entry) base).getId().toString();
modifiedDate = ((Entry) base).getUpdatedElement().getText();
} else if (base instanceof Feed) {
id = ((Feed) base).getId().toString();
modifiedDate = ((Feed) base).getUpdatedElement().getText();
}
return EntityTag.generate(id, modifiedDate);
}
代码示例来源:origin: fcrepo3/fcrepo
Document<Feed> feedDoc = parser.parse(new StringReader(manifest.toString("UTF-8")));
Feed feed = feedDoc.getRoot();
assertEquals(PID.getInstance(TEST_PID).toURI(), feed.getId().toString());
代码示例来源:origin: org.apache.abdera/abdera-server
public static EntityTag calculateEntityTag(Base base) {
String id = null;
String modified = null;
if (base instanceof Entry) {
Entry entry = (Entry)base;
id = entry.getId().toString();
modified = AtomDate.format(entry.getEdited() != null ? entry.getEdited() : entry.getUpdated());
} else if (base instanceof Feed) {
Feed feed = (Feed)base;
id = feed.getId().toString();
modified = AtomDate.format(feed.getUpdated());
} else if (base instanceof Document) {
return calculateEntityTag(((Document<?>)base).getRoot());
}
return EntityTag.generate(id, modified);
}
代码示例来源:origin: fcrepo3/fcrepo
PID pid;
try {
pid = new PID(feed.getId().toString());
} catch (MalformedPIDException e) {
throw new ObjectIntegrityException(e.getMessage(), e);
代码示例来源:origin: org.fcrepo/fcrepo-server
PID pid;
try {
pid = new PID(feed.getId().toString());
} catch (MalformedPIDException e) {
throw new ObjectIntegrityException(e.getMessage(), e);
代码示例来源:origin: fcrepo3/fcrepo
private void addAtomManagedDatastream(Feed feed, String contentLocation) throws Exception {
String dsId = "DS";
Entry dsEntry = feed.addEntry();
dsEntry.setId(feed.getId().toString() + "/" + dsId);
Entry dsvEntry = feed.addEntry();
dsvEntry.setId(dsEntry.getId().toString() + "/" + feed.getUpdatedString());
dsEntry.setTitle(feed.getTitle());
dsEntry.setUpdated(feed.getUpdated());
dsEntry.addLink(dsvEntry.getId().toString(), Link.REL_ALTERNATE);
dsEntry.addCategory(MODEL.STATE.uri, "A", null);
dsEntry.addCategory(MODEL.CONTROL_GROUP.uri, "M", null);
dsEntry.addCategory(MODEL.VERSIONABLE.uri, "true", null);
dsvEntry.setTitle(feed.getTitle());
dsvEntry.setUpdated(feed.getUpdated());
ThreadHelper.addInReplyTo(dsvEntry, dsEntry.getId());
dsvEntry.setSummary("summary");
dsvEntry.setContent(new IRI(contentLocation), "text/plain");
}
内容来源于网络,如有侵权,请联系作者删除!