public final class CommitInfo
extends java.lang.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 java.lang.String |
OAK_UNKNOWN |
Constructor and Description |
---|
CommitInfo(@NotNull java.lang.String sessionId,
@Nullable java.lang.String userId)
Creates a commit info for the given session and user.
|
CommitInfo(@NotNull java.lang.String sessionId,
@Nullable java.lang.String userId,
java.util.Map<java.lang.String,java.lang.Object> info)
Creates a commit info for the given session and user and info map.
|
CommitInfo(@NotNull java.lang.String sessionId,
@Nullable java.lang.String userId,
java.util.Map<java.lang.String,java.lang.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(java.lang.Object object) |
long |
getDate() |
java.util.Map<java.lang.String,java.lang.Object> |
getInfo()
Return the info map
|
java.lang.String |
getPath()
/**
Returns the base path of this commit.
|
@NotNull java.lang.String |
getSessionId() |
@NotNull java.lang.String |
getUserId() |
int |
hashCode() |
boolean |
isExternal()
Return a flag indicating whether this is commit info is
for an external change
|
java.lang.String |
toString() |
public static final java.lang.String OAK_UNKNOWN
public static final CommitInfo EMPTY
public static final CommitInfo EMPTY_EXTERNAL
public CommitInfo(@NotNull @NotNull java.lang.String sessionId, @Nullable @Nullable java.lang.String userId)
sessionId
- session identifieruserId
- The user id.public CommitInfo(@NotNull @NotNull java.lang.String sessionId, @Nullable @Nullable java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> info)
sessionId
- session identifieruserId
- The user id.info
- info mappublic CommitInfo(@NotNull @NotNull java.lang.String sessionId, @Nullable @Nullable java.lang.String userId, java.util.Map<java.lang.String,java.lang.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 java.lang.String getSessionId()
@NotNull public @NotNull java.lang.String getUserId()
public long getDate()
public boolean isExternal()
public java.lang.String getPath()
public java.util.Map<java.lang.String,java.lang.Object> getInfo()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved