hi
i am trying to get the blip creation or last modified time in the
console client when i do like this
public ArrayList<BlipDTO> getWaveBlips(int waveNo) {
ClientWaveView wave = getBackend().getWave(getWaveId(waveNo));
if (wave == null) {
throw new IllegalArgumentException("NOT FOUND");
}
final WaveletData convRoot =
ClientUtils.getConversationRoot(wave);
BlipData manifest =
convRoot.getDocument(DocumentConstants.MANIFEST_DOCUMENT_ID);
if (manifest == null) {
throw new IllegalArgumentException("MANIFEST MISSING");
}
manifest.getContent().asOperation().apply(InitializationCursorAdapter.adapt((new
DocInitializationCursor() {
@Override
public void elementStart(String type, Attributes attrs) {
if (type.equals(DocumentConstants.BLIP)) {
if (attrs.containsKey(DocumentConstants.BLIP_ID))
{
BlipData document =
convRoot.getDocument(attrs.get(DocumentConstants.BLIP_ID));
if (document != null) {
// A nonexistent document is
indistinguishable from
// the empty document, so document == null
is not necessarily an error.
long time =document.getLastModifiedTime();
it always returns me -1;
y
--
You received this message because you are subscribed to the Google Groups "Wave
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/wave-protocol?hl=en.