Package com.almende.eve.entity.calendar

Examples of com.almende.eve.entity.calendar.AgentData


        (Map<String, AgentData>) getState().get("calendarAgents");

    if (calendarAgents != null && calendarAgents.containsKey(agentUrl)) {
      return calendarAgents.get(agentUrl);
    }
    return new AgentData();
  }
View Full Code Here


   * Retrieve the busy intervals of a calendar agent from the state
   * @param agent
   * @return busy returns busy intervals, or null if not available
   */
  private List<Interval> getAgentBusy(String agent) {
    AgentData data = getAgentData(agent);
    return data.busy;
  }
View Full Code Here

   * Put the busy intervals for a calendar agent into the state
   * @param agent
   * @param busy
   */
  private void putAgentBusy(String agent, List<Interval> busy) {
    AgentData data = getAgentData(agent);
    data.busy = busy;
    putAgentData(agent, data);
  }
View Full Code Here

      return;
    }
   
    // check if the activity or the retrieved event is changed since the
    // last synchronization
    AgentData agentData = getAgentData(agent);
    boolean activityChanged = !equalsDateTime(agentData.activityUpdated,
        activity.withStatus().getUpdated());
    boolean eventChanged = !equalsDateTime(agentData.eventUpdated,
        eventActivity.withStatus().getUpdated());
    boolean changed = activityChanged || eventChanged;   
View Full Code Here

   * Clear an event from given agent
   *
   * @param agent
   */
  private void clearAttendee(@Name("agent") String agent) {
    AgentData data = getAgentData(agent);
    if (data != null) {
      try {
        if (data.eventId != null) {
          ObjectNode params = JOM.createObjectNode();
          params.put("eventId", data.eventId);
View Full Code Here

        (Map<String, AgentData>) getState().get("calendarAgents");

    if (calendarAgents != null && calendarAgents.containsKey(agentUrl)) {
      return calendarAgents.get(agentUrl);
    }
    return new AgentData();
  }
View Full Code Here

   * Retrieve the busy intervals of a calendar agent from the state
   * @param agent
   * @return busy returns busy intervals, or null if not available
   */
  private List<Interval> getAgentBusy(String agent) {
    AgentData data = getAgentData(agent);
    return data.busy;
  }
View Full Code Here

   * Put the busy intervals for a calendar agent into the state
   * @param agent
   * @param busy
   */
  private void putAgentBusy(String agent, List<Interval> busy) {
    AgentData data = getAgentData(agent);
    data.busy = busy;
    putAgentData(agent, data);
  }
View Full Code Here

      return;
    }
   
    // check if the activity or the retrieved event is changed since the
    // last synchronization
    AgentData agentData = getAgentData(agent);
    boolean activityChanged = !equalsDateTime(agentData.activityUpdated,
        activity.withStatus().getUpdated());
    boolean eventChanged = !equalsDateTime(agentData.eventUpdated,
        eventActivity.withStatus().getUpdated());
    boolean changed = activityChanged || eventChanged;   
View Full Code Here

   * Clear an event from given agent
   *
   * @param agent
   */
  private void clearAttendee(@Name("agent") String agent) {
    AgentData data = getAgentData(agent);
    if (data != null) {
      try {
        if (data.eventId != null) {
          ObjectNode params = JOM.createObjectNode();
          params.put("eventId", data.eventId);
View Full Code Here

TOP

Related Classes of com.almende.eve.entity.calendar.AgentData

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.