com.jamasoftware.contour.ws.v3.domain
Class WsSignature

java.lang.Object
  extended by com.jamasoftware.contour.ws.v3.domain.WsSignature

public class WsSignature
extends java.lang.Object

This object is an electronic signature of a WsBaseline.

Author:
Dylan

Constructor Summary
WsSignature()
          Creates an empty WsSignature object.
WsSignature(java.lang.Integer scopeId, java.lang.Long refId, WsUser user, java.lang.String comments)
          Creates a new WsSignature object from the given baseline id, user and comments.
 
Method Summary
 java.lang.String getComments()
          Gets the comments associated with this signature.
 java.lang.Long getId()
          Gets the id of the signature.
 java.lang.Boolean getIsRevoked()
          Is this signature revoked?
 java.lang.Long getRefId()
          Gets the refId of the object associated with this signature
 java.lang.String getRevokeComments()
          Gets the comments associated with the revocation of this signature.
 java.util.Date getRevokeDate()
          Gets the date this signature was revoked.
 java.lang.Integer getScopeId()
          Gets the scopeId of the object associated with this signature Valid scopes for Signatures are Baseline and Revisions
 java.util.Date getSignedDate()
          Gets the date this signature took place.
 WsUser getUser()
          Gets the user that made this signature.
 void setComments(java.lang.String comments)
          Sets the comments associated with this signature.
 void setId(java.lang.Long id)
          Sets the id of the signature.
 void setIsRevoked(java.lang.Boolean isRevoked)
           
 void setRefId(java.lang.Long refId)
          Sets the refId of the object associated with this signature
 void setRevokeComments(java.lang.String revokeComments)
          Sets the comments associated with the revocation of this signature.
 void setRevokeDate(java.util.Date revokeDate)
           
 void setScopeId(java.lang.Integer scopeId)
          Sets the scopeId of the object associated with this signature
 void setSignedDate(java.util.Date signedDate)
           
 void setUser(WsUser user)
          Sets the user that made this signature.
 java.lang.String toString()
          Gets a string representation of this signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsSignature

public WsSignature()
Creates an empty WsSignature object.


WsSignature

public WsSignature(java.lang.Integer scopeId,
                   java.lang.Long refId,
                   WsUser user,
                   java.lang.String comments)
Creates a new WsSignature object from the given baseline id, user and comments. SignedDate is set to the current date.

Parameters:
scopeId - scope of the object being signature
refId - id of the object being signed
user - user signing
comments - any comments about the signature (can be null)
Method Detail

getId

public java.lang.Long getId()
Gets the id of the signature.

Returns:
signature id

setId

public void setId(java.lang.Long id)
Sets the id of the signature.

Parameters:
id - signature id

getComments

public java.lang.String getComments()
Gets the comments associated with this signature.

Returns:
signature comments

setComments

public void setComments(java.lang.String comments)
Sets the comments associated with this signature.

Parameters:
comments - signature comments

getRevokeComments

public java.lang.String getRevokeComments()
Gets the comments associated with the revocation of this signature.

Returns:
signature revocation comments

setRevokeComments

public void setRevokeComments(java.lang.String revokeComments)
Sets the comments associated with the revocation of this signature.

Parameters:
revokeComments - signature revocation comments

getUser

public WsUser getUser()
Gets the user that made this signature.

Returns:
WsUser

setUser

public void setUser(WsUser user)
Sets the user that made this signature.

Parameters:
user - WsUser

getSignedDate

public java.util.Date getSignedDate()
Gets the date this signature took place.

Returns:
signature date

setSignedDate

public void setSignedDate(java.util.Date signedDate)

getIsRevoked

public java.lang.Boolean getIsRevoked()
Is this signature revoked?

Returns:
whether or not the signature is revoked

setIsRevoked

public void setIsRevoked(java.lang.Boolean isRevoked)

getRevokeDate

public java.util.Date getRevokeDate()
Gets the date this signature was revoked.

Returns:
signature revocation date

setRevokeDate

public void setRevokeDate(java.util.Date revokeDate)

getScopeId

public java.lang.Integer getScopeId()
Gets the scopeId of the object associated with this signature Valid scopes for Signatures are Baseline and Revisions

Returns:
signed object scopeId

setScopeId

public void setScopeId(java.lang.Integer scopeId)
Sets the scopeId of the object associated with this signature

Parameters:
scopeId - scopeId of the object being signed

getRefId

public java.lang.Long getRefId()
Gets the refId of the object associated with this signature

Returns:
signed object refId

setRefId

public void setRefId(java.lang.Long refId)
Sets the refId of the object associated with this signature

Parameters:
refId - refId of the object being signed

toString

public java.lang.String toString()
Gets a string representation of this signature.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.