private void internalAddStatus(Status status) throws IOException { XContentBuilder jsonifiedObject; jsonifiedObject = XContentFactory.jsonBuilder() .startObject() .field("username", status.getUsername()) .field("domain", status.getDomain()) .field("statusDate", status.getStatusDate()) .field("content", status.getContent()) .endObject(); addObject(status.getClass(), status.getStatusId(), jsonifiedObject); }
@Override public void removeStatus(final Status status) { Assert.notNull(status, "status can't be null"); removeObject(status.getClass(), status.getStatusId()); }