This project has retired. For details please refer to its Attic page.
ChangeEventImpl 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.io.Serializable;
22  import java.util.GregorianCalendar;
23  import java.util.List;
24  import java.util.Map;
25  
26  import org.apache.chemistry.opencmis.client.api.ChangeEvent;
27  import org.apache.chemistry.opencmis.commons.data.Acl;
28  import org.apache.chemistry.opencmis.commons.enums.ChangeType;
29  import org.apache.chemistry.opencmis.commons.impl.dataobjects.ChangeEventInfoDataImpl;
30  
31  /**
32   * Change Event.
33   */
34  public class ChangeEventImpl extends ChangeEventInfoDataImpl implements ChangeEvent, Serializable {
35  
36      private static final long serialVersionUID = 1L;
37  
38      private String objectId;
39      private Map<String, List<?>> properties;
40      private List<String> policyIds;
41      private Acl acl;
42  
43      public ChangeEventImpl() {
44      }
45  
46      public ChangeEventImpl(ChangeType changeType, GregorianCalendar changeTime, String objectId,
47              Map<String, List<?>> properties, List<String> policyIds, Acl acl) {
48          setChangeType(changeType);
49          setChangeTime(changeTime);
50          setObjectId(objectId);
51          setProperties(properties);
52          setPolicyIds(policyIds);
53          setAcl(acl);
54      }
55  
56      public String getObjectId() {
57          return objectId;
58      }
59  
60      public void setObjectId(String objectId) {
61          this.objectId = objectId;
62      }
63  
64      public Map<String, List<?>> getProperties() {
65          return properties;
66      }
67  
68      public void setProperties(Map<String, List<?>> properties) {
69          this.properties = properties;
70      }
71  
72      public List<String> getPolicyIds() {
73          return policyIds;
74      }
75  
76      public void setPolicyIds(List<String> policyIds) {
77          this.policyIds = policyIds;
78      }
79  
80      public Acl getAcl() {
81          return acl;
82      }
83  
84      public void setAcl(Acl acl) {
85          this.acl = acl;
86      }
87  }