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(java.lang.String sessionId,
java.lang.String userId)
Creates a commit info for the given session and user.
|
CommitInfo(java.lang.String sessionId,
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(java.lang.String sessionId,
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.
|
java.lang.String |
getSessionId() |
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(java.lang.String sessionId, java.lang.String userId)
sessionId
- session identifieruserId
- The user id.public CommitInfo(java.lang.String sessionId, java.lang.String userId, java.util.Map<java.lang.String,java.lang.Object> info)
sessionId
- session identifieruserId
- The user id.info
- info mappublic CommitInfo(java.lang.String sessionId, 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 changepublic java.lang.String getSessionId()
public 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 Systems Incorporated. All Rights Reserved"