This project has retired. For details please refer to its Attic page.
ChangeEventsImpl xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.chemistry.opencmis.client.runtime;
20  
21  import java.util.List;
22  
23  import org.apache.chemistry.opencmis.client.api.ChangeEvent;
24  import org.apache.chemistry.opencmis.client.api.ChangeEvents;
25  
26  public class ChangeEventsImpl implements ChangeEvents {
27  
28      private String latestChangeLogToken;
29      private List<ChangeEvent> events;
30      private boolean hasMoreItems = false;
31      private long totalNumItems = -1;
32  
33      public ChangeEventsImpl() {
34      }
35  
36      public ChangeEventsImpl(String latestChangeLogToken, List<ChangeEvent> events, boolean hasMoreItems,
37              long totalNumItems) {
38          setLatestChangeLogToken(latestChangeLogToken);
39          setChangeEvents(events);
40          setHasMoreItems(hasMoreItems);
41          setTotalNumItems(totalNumItems);
42      }
43  
44      public String getLatestChangeLogToken() {
45          return latestChangeLogToken;
46      }
47  
48      public void setLatestChangeLogToken(String latestChangeLogToken) {
49          this.latestChangeLogToken = latestChangeLogToken;
50      }
51  
52      public List<ChangeEvent> getChangeEvents() {
53          return events;
54      }
55  
56      public void setChangeEvents(List<ChangeEvent> events) {
57          this.events = events;
58      }
59  
60      public boolean getHasMoreItems() {
61          return hasMoreItems;
62      }
63  
64      public void setHasMoreItems(boolean hasMoreItems) {
65          this.hasMoreItems = hasMoreItems;
66      }
67  
68      public void setTotalNumItems(long totalNumItems) {
69          this.totalNumItems = totalNumItems;
70      }
71  
72      public long getTotalNumItems() {
73          return totalNumItems;
74      }
75  }