Package com.tmm.enterprise.microblog.domain

Examples of com.tmm.enterprise.microblog.domain.Activity


      boolean startRecording = (latestId == 0l);
      for (int i = latest.size() - 1; i >= 0; i--) {
        if (latest.get(i).getActivity() == null) {
          continue;
        }
        Activity a = latest.get(i).getActivity();
        if (startRecording) {
          JsonObject o = jsonService.convertToJson(a);
          o.addProperty("isOwner", currentUser.equals(a.getRaisedBy()));
          array.add(o);
        }

        // check whether to update status from here
        if (a.getId().equals(latestId)) {
          startRecording = true;
        }
      }

      returnObj.add("statuses", array);
View Full Code Here


    if (!latest.isEmpty()) {
      JsonArray array = new JsonArray();
      boolean startRecording = (latestId == 0l);
      for (int i = latest.size() - 1; i >= 0; i--) {

        Activity a = latest.get(i);
        if (startRecording) {
          JsonObject o = jsonService.convertToJson(a);
          o.addProperty("isOwner", true);
          array.add(jsonService.convertToJson(a));
        }

        // check whether to update status from here
        if (a.getId().equals(latestId)) {
          startRecording = true;
        }
      }

      returnObj.add("statuses", array);
View Full Code Here

TOP

Related Classes of com.tmm.enterprise.microblog.domain.Activity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.