]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.jcr/src/org/argeo/jcr/VersionDiff.java
Better deal with multiple user directories.
[lgpl/argeo-commons.git] / org.argeo.jcr / src / org / argeo / jcr / VersionDiff.java
1 package org.argeo.jcr;
2
3 import java.util.Calendar;
4 import java.util.Map;
5
6 /**
7 * Generic Object that enables the creation of history reports based on a JCR
8 * versionable node. userId and creation date are added to the map of
9 * PropertyDiff.
10 *
11 * These two fields might be null
12 *
13 */
14 public class VersionDiff {
15
16 private String userId;
17 private Map<String, PropertyDiff> diffs;
18 private Calendar updateTime;
19
20 public VersionDiff(String userId, Calendar updateTime,
21 Map<String, PropertyDiff> diffs) {
22 this.userId = userId;
23 this.updateTime = updateTime;
24 this.diffs = diffs;
25 }
26
27 public String getUserId() {
28 return userId;
29 }
30
31 public Map<String, PropertyDiff> getDiffs() {
32 return diffs;
33 }
34
35 public Calendar getUpdateTime() {
36 return updateTime;
37 }
38 }