public class Signature extends Object implements Serializable
Constructor and Description |
---|
Signature(String id,
String repositoryFileId,
String repositoryFilePath,
String repositoryFileVersion,
String userId,
String role,
String reason,
String comment,
Date timestamp,
String signature)
It is not intended or recommended that the consumer of this API construct these objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getComment()
Gets the comment that was provided with the signature, if one was provided.
|
String |
getId()
Gets the unique identifier of the signature.
|
String |
getReason()
Gets the reason that was used to create the signature.
|
String |
getRepositoryFileId()
Gets the unique identifier of the repository file that is associated with the signature.
|
String |
getRepositoryFilePath()
Gets the path of the repository file that is associated with the signature.
|
String |
getRepositoryFileVersion()
Gets the version of the repository file that is associated with the signature.
|
String |
getRole()
Gets the role that was used to create the signature.
|
String |
getSignature()
Gets the hash that was generated when the signature was created.
|
Date |
getTimestamp()
Gets the
Date on which the signature was created. |
String |
getUserId()
Returns the identifier of the user who created the signature.
|
int |
hashCode() |
String |
toString() |
public Signature(String id, String repositoryFileId, String repositoryFilePath, String repositoryFileVersion, String userId, String role, String reason, String comment, Date timestamp, String signature)
Note: Signatures are identifier based, which means that a Signature is linked to the identifier of the RepositoryFile object. The path is provided here as a convenience, but this information is transient. For instance, if the RepositoryFile is moved, the identifier is the same, but the path changes.
id
- The unique identifier of the signature.repositoryFileId
- The unique identifier of the repository file associated with the signature.repositoryFilePath
- The path of the repository file associated with the signature.repositoryFileVersion
- The version of the repository file associated with the signature.userId
- The identifier of the user who created the signature.role
- The role that was used to create the signature.reason
- The reason that was used to create the signature.comment
- The comment provided with the signature.timestamp
- The Date
on which the signature was created.signature
- The signature value that was generated when the signature was created.public String getId()
public String getRepositoryFileId()
AbstractIdentifiable.getId()
public String getRepositoryFilePath()
Note: Signatures are identifier based, which that means a Signature is linked to the identifier of the RepositoryFile object. The path is provided here as a convenience but this information is transient. For instance, if the RepositoryFile is moved, the identifier is the same but the path changes.
AbstractIdentifiable.getId()
,
RepositoryItem.getPath()
public String getRepositoryFileVersion()
null
if the file is not versioned.public String getUserId()
public String getRole()
CreateSignatureInfo.setRole(String)
,
SignatureService.getSignatureRoles()
public String getReason()
CreateSignatureInfo.setReason(String)
,
SignatureService.getSignatureReasons()
public String getComment()
CreateSignatureInfo.setComment(String)
public Date getTimestamp()
Date
on which the signature was created.public String getSignature()
Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA