info.extensiblecatalog.nacm.model
Class AuthorityLink

java.lang.Object
  extended by info.extensiblecatalog.nacm.model.AuthorityLink

public class AuthorityLink
extends java.lang.Object

Contains information about a match between a bibliographic record and an authorized name that has been identified by the system

Author:
Dean Rzonca

Constructor Summary
AuthorityLink()
          Creates a new, empty AuthorityLink Note that this does NOT create a viable object, and is only present for JavaBeans compliance Using this constructor is not recommended
AuthorityLink(AuthorityRecord record, Name relatedName, java.util.Date whenFound)
          Creates a new AuthorityLink
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getApprovedBy()
          Gets the person who approved this match
 java.lang.String getEvidence()
          Gets the evidence for this match
 java.lang.Long getId()
          Gets the unique ID associated with this record
 int getPercentConfidence()
          Gets the percent confidence for this match
 AuthorityRecord getRecord()
          Gets the authority record that has been matched
 Name getRelatedName()
          Gets the original name to which this is related
 java.util.Date getWhenApproved()
          Gets the date when this was approved
 java.util.Date getWhenFound()
          Gets the date when this match was found
 int hashCode()
           
 java.lang.Boolean isApproved()
          Gets the approval status for this match
 java.lang.Boolean isFlagged()
          Determines whether this link has been flagged for review
 java.lang.Boolean isRejected()
          Determines whether or not this link has been rejected
 void setApproved(java.lang.Boolean approved)
          Sets the approval status for this match
 void setApprovedBy(java.lang.String approvedBy)
          Sets the person who approved this match
 void setEvidence(java.lang.String evidence)
          Sets the evidence for this match
 void setFlagged(java.lang.Boolean flagged)
          Sets whether or not this link has been flagged
 void setId(java.lang.Long id)
          Sets the unique ID associated with this record
 void setPercentConfidence(int percentConfidence)
          Sets the percent confidence for this match
 void setRecord(AuthorityRecord record)
          Sets the authority record that has been matched
 void setRejected(java.lang.Boolean rejected)
          Sets whether or not this link has been rejected
 void setRelatedName(Name relatedName)
          Sets the original name to which this is related
 void setWhenApproved(java.util.Date whenApproved)
          Sets when this was approved
 void setWhenFound(java.util.Date whenFound)
          Sets the date when this match was found
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorityLink

public AuthorityLink()
Creates a new, empty AuthorityLink Note that this does NOT create a viable object, and is only present for JavaBeans compliance Using this constructor is not recommended


AuthorityLink

public AuthorityLink(AuthorityRecord record,
                     Name relatedName,
                     java.util.Date whenFound)
Creates a new AuthorityLink

Parameters:
record - the matched authority record
relatedName - the name that was matched
whenFound - when the match was found
Method Detail

isApproved

public java.lang.Boolean isApproved()
Gets the approval status for this match

Returns:
true or false

setApproved

public void setApproved(java.lang.Boolean approved)
Sets the approval status for this match

Parameters:
approved - true or false

getApprovedBy

public java.lang.String getApprovedBy()
Gets the person who approved this match

Returns:
the name or initials of the user who approved this match

isFlagged

public java.lang.Boolean isFlagged()
Determines whether this link has been flagged for review

Returns:
true or false

setFlagged

public void setFlagged(java.lang.Boolean flagged)
Sets whether or not this link has been flagged

Parameters:
flagged - true or false

isRejected

public java.lang.Boolean isRejected()
Determines whether or not this link has been rejected

Returns:
true or false

setRejected

public void setRejected(java.lang.Boolean rejected)
Sets whether or not this link has been rejected

Parameters:
rejected - true or false

setApprovedBy

public void setApprovedBy(java.lang.String approvedBy)
Sets the person who approved this match

Parameters:
approvedBy - the name or intials of the user who approved this match

getEvidence

public java.lang.String getEvidence()
Gets the evidence for this match

Returns:
a String representation of the evidence for this match

setEvidence

public void setEvidence(java.lang.String evidence)
Sets the evidence for this match

Parameters:
evidence - a String representation of the evidence for this match

getPercentConfidence

public int getPercentConfidence()
Gets the percent confidence for this match

Returns:
an integer between 0 and 100

setPercentConfidence

public void setPercentConfidence(int percentConfidence)
Sets the percent confidence for this match

Parameters:
percentConfidence - an integer between 0 and 100

getRecord

public AuthorityRecord getRecord()
Gets the authority record that has been matched

Returns:
an AuthorityRecord

setRecord

public void setRecord(AuthorityRecord record)
Sets the authority record that has been matched

Parameters:
record - an AuthorityRecord

getWhenFound

public java.util.Date getWhenFound()
Gets the date when this match was found

Returns:
a Date

setWhenFound

public void setWhenFound(java.util.Date whenFound)
Sets the date when this match was found

Parameters:
whenFound - a Date

getWhenApproved

public java.util.Date getWhenApproved()
Gets the date when this was approved

Returns:
a Date, or null if this was not approved

setWhenApproved

public void setWhenApproved(java.util.Date whenApproved)
Sets when this was approved

Parameters:
whenApproved - a Date

getId

public java.lang.Long getId()
Gets the unique ID associated with this record

Returns:
a unique ID

setId

public void setId(java.lang.Long id)
Sets the unique ID associated with this record

Parameters:
id - a unique ID

getRelatedName

public Name getRelatedName()
Gets the original name to which this is related

Returns:
a Name

setRelatedName

public void setRelatedName(Name relatedName)
Sets the original name to which this is related

Parameters:
relatedName - a Name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object