private static Map<String, Object> newInfoWithCommitContext(Map<String, Object> info){ return ImmutableMap.<String, Object>builder() .putAll(info) .put(CommitContext.NAME, new SimpleCommitContext()) .build(); }
private static void resetAttributes(CommitInfo info) { SimpleCommitContext attrs = (SimpleCommitContext) info.getInfo().get(CommitContext.NAME); //As per implementation this should not be null checkNotNull(attrs, "No commit attribute instance found in info map").clear(); } }
private static Map<String, Object> newInfoWithCommitContext(Map<String, Object> info){ return ImmutableMap.<String, Object>builder() .putAll(info) .put(CommitContext.NAME, new SimpleCommitContext()) .build(); }
private static void resetAttributes(CommitInfo info) { SimpleCommitContext attrs = (SimpleCommitContext) info.getInfo().get(CommitContext.NAME); //As per implementation this should not be null checkNotNull(attrs, "No commit attribute instance found in info map").clear(); } }
private static Map<String, Object> newInfoWithCommitContext(Map<String, Object> info){ return ImmutableMap.<String, Object>builder() .putAll(info) .put(CommitContext.NAME, new SimpleCommitContext()) .build(); }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo(){ Map<String, Object> infoMap = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(SESSION_ID, null, infoMap); } }
private static CommitInfo createCommitInfo(){ Map<String, Object> infoMap = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(SESSION_ID, null, infoMap); } }
private static CommitInfo createCommitInfo(){ Map<String, Object> infoMap = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(SESSION_ID, null, infoMap); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); } }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); }
private static CommitInfo createCommitInfo() { Map<String, Object> info = ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext()); return new CommitInfo(CommitInfo.OAK_UNKNOWN, CommitInfo.OAK_UNKNOWN, info); }
private CommitInfo newCommitInfo(){ info = new CommitInfo("admin", "s1", ImmutableMap.<String, Object>of(CommitContext.NAME, new SimpleCommitContext())); return info; }