public final class CommitInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static CommitInfo |
EMPTY
Empty commit information object.
|
static CommitInfo |
EMPTY_EXTERNAL
Empty commit information object to be used for external changes.
|
static String |
OAK_UNKNOWN |
| Constructor and Description |
|---|
CommitInfo(String sessionId,
String userId)
Creates a commit info for the given session and user.
|
CommitInfo(String sessionId,
String userId,
Map<String,Object> info)
Creates a commit info for the given session and user and info map.
|
CommitInfo(String sessionId,
String userId,
Map<String,Object> info,
boolean external)
Creates a commit info for the given session and user and info map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
long |
getDate() |
Map<String,Object> |
getInfo()
Return the info map
|
String |
getPath()
/**
Returns the base path of this commit.
|
String |
getSessionId() |
String |
getUserId() |
int |
hashCode() |
boolean |
isExternal()
Return a flag indicating whether this is commit info is
for an external change
|
String |
toString() |
public static final String OAK_UNKNOWN
public static final CommitInfo EMPTY
public static final CommitInfo EMPTY_EXTERNAL
public CommitInfo(@Nonnull String sessionId, @Nullable String userId)
sessionId - session identifieruserId - The user id.public CommitInfo(@Nonnull String sessionId, @Nullable String userId, Map<String,Object> info)
sessionId - session identifieruserId - The user id.info - info mappublic CommitInfo(@Nonnull String sessionId, @Nullable String userId, Map<String,Object> info, boolean external)
sessionId - session identifieruserId - The user id.info - info mapexternal - indicates if the commit info is from external changepublic long getDate()
public boolean isExternal()
public String getPath()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.