Class Signature
java.lang.Object
com.sas.lsaf.content.repository.signature.Signature
- All Implemented Interfaces:
Serializable
The client-side representation of a signature.
- Since:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSignature(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the comment that was specified with the signature, if one was specified.getId()Gets the unique identifier of the signature.Gets the reason that was specified to create the signature.Gets the unique identifier of the repository file that is associated with the signature.Gets the path to the repository file that is associated with the signature.Gets the version of the repository file that is associated with the signature.getRole()Gets the role that was specified to create the signature.Gets the hash that was generated when the signature was created.Gets the date on which the signature was created.Returns the identifier of the user who created the signature.inthashCode()toString()
-
Constructor Details
-
Signature
public 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. They should only deal with the user descriptors returned by the API.Note: Signatures are identifier-based, which means that a Signature is linked to the identifier of the RepositoryFile object. The path is specified here as a convenience, but the information is transient. For instance, if the RepositoryFile is moved, the identifier is the same, but the path changes.
- Parameters:
id- The unique identifier of the signature.repositoryFileId- The unique identifier of the repository file associated with the signature.repositoryFilePath- The path to the repository file that is associated with the signature.repositoryFileVersion- The version of the repository file that is 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 specified with the signature.timestamp- TheDateon which the signature was created.signature- The signature value that was generated when the signature was created.
-
-
Method Details
-
getId
Gets the unique identifier of the signature. The identifier is generated by the system when the signature is created.- Returns:
- The identifier of the signature.
-
getRepositoryFileId
Gets the unique identifier of the repository file that is associated with the signature.- Returns:
- The identifier of the repository file that is associated with the signature.
- See Also:
-
getRepositoryFilePath
Gets the path to the repository file that is associated with the signature.Note: Signatures are based on an identifier, which means that a Signature is linked to the identifier of the RepositoryFile object. The path is specified here as a convenience, but the information is transient. For instance, if the RepositoryFile is moved, the identifier is the same, but the path changes.
- Returns:
- The path to the repository file that is associated with the signature.
- See Also:
-
getRepositoryFileVersion
Gets the version of the repository file that is associated with the signature. This value isnull, if the file is not versioned.- Returns:
- The version of the repository file that is associated with the signature.
-
getUserId
Returns the identifier of the user who created the signature.- Returns:
- The idenfier of the user who created the signature.
-
getRole
Gets the role that was specified to create the signature.- Returns:
- The role that was specified to create the signature.
- See Also:
-
getReason
Gets the reason that was specified to create the signature.- Returns:
- The reason specified to create the signature.
- See Also:
-
getComment
Gets the comment that was specified with the signature, if one was specified.- Returns:
- The comment that is associated with the signature.
- See Also:
-
getTimestamp
Gets the date on which the signature was created.- Returns:
- The date and time on which the signature was created.
-
getSignature
Gets the hash that was generated when the signature was created.- Returns:
- The signature value that was generated when the file was signed.
-
hashCode
public int hashCode() -
equals
-
toString
-