コード例 #1
0
  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);
  }
コード例 #2
0
 @Override
 public void removeStatus(final Status status) {
   Assert.notNull(status, "status can't be null");
   removeObject(status.getClass(), status.getStatusId());
 }