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(@NotNull String sessionId,
@Nullable String userId)
Creates a commit info for the given session and user.
|
CommitInfo(@NotNull String sessionId,
@Nullable String userId,
Map<String,Object> info)
Creates a commit info for the given session and user and info map.
|
CommitInfo(@NotNull String sessionId,
@Nullable 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.
|
@NotNull String |
getSessionId() |
@NotNull 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(@NotNull
@NotNull String sessionId,
@Nullable
@Nullable String userId)
sessionId - session identifieruserId - The user id.public CommitInfo(@NotNull
@NotNull String sessionId,
@Nullable
@Nullable String userId,
Map<String,Object> info)
sessionId - session identifieruserId - The user id.info - info mappublic CommitInfo(@NotNull
@NotNull String sessionId,
@Nullable
@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 change@NotNull public @NotNull String getSessionId()
@NotNull public @NotNull String getUserId()
public long getDate()
public boolean isExternal()
public String getPath()
Copyright © 2010 - 2020 Adobe. All Rights Reserved