Open GoogleCodeExporter opened 8 years ago
I just know how to set the title, updated and author.
OAtomEntity oe = new OAtomEntity(){
@Override
public String getAtomEntityTitle() {
return "test-title";
}
@Override
public String getAtomEntitySummary() {
return null;
}
@Override
public String getAtomEntityAuthor() {
return "test-author";
}
@Override
public LocalDateTime getAtomEntityUpdated() {
Date startingDate = new Date();
GregorianCalendar gc = new GregorianCalendar();
gc.setTime(startingDate);
gc.add(Calendar.DAY_OF_YEAR, -1);
Date result = gc.getTime();
return new LocalDateTime(result);
}
};
olist.add(OEntities.create(entitySet, OEntityKey.create(user.getId()), propsUser, new ArrayList<OLink>(), oe));
Original comment by daniel.t...@gmail.com
on 10 Sep 2012 at 10:52
Original issue reported on code.google.com by
daniel.t...@gmail.com
on 8 Aug 2012 at 3:53