edu.nrao.sss.model.proposal
Class JustificationFile

java.lang.Object
  extended by edu.nrao.sss.model.proposal.JustificationFile

public class JustificationFile
extends Object

Placeholder for time when we integrate proposal work. A scientific and technical justification for a proposal.

CVS Info:

$Revision: 161 $
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $
$Author: btruitt $

Since:
2006-03-23

Constructor Summary
JustificationFile()
          Creates a new instance.
 
Method Summary
 Blob getData()
          Returns the contents of this justification file.
 JustificationFileDescriptor getDescriptor()
          Returns a descriptor for this justification file.
 Long getProposalId()
          Returns the identifier of the proposal to which this justification belongs.
 void reset()
          Resets this file to its initial state.
 void setData(Blob data)
          Sets the contents of this justification file.
 void setProposalId(Long proposalId)
          Sets the identifier of the proposal to which this justification belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JustificationFile

public JustificationFile()
Creates a new instance.

Method Detail

reset

public void reset()
Resets this file to its initial state.


setProposalId

public void setProposalId(Long proposalId)
Sets the identifier of the proposal to which this justification belongs.

Parameters:
proposalId - the ID for this justification file's proposal.

getProposalId

public Long getProposalId()
Returns the identifier of the proposal to which this justification belongs.

Returns:
the ID of the proposal to which this justification belongs.

getDescriptor

public JustificationFileDescriptor getDescriptor()
Returns a descriptor for this justification file.

Returns:
a descriptor for this justification file.

setData

public void setData(Blob data)
Sets the contents of this justification file.

Parameters:
data - a Blob containing the justification file contents.

getData

public Blob getData()
Returns the contents of this justification file.

If this file has no content, null will be returned.

Returns:
the contents of this justification file, or null if this file has no content.


Copyright © 2009. All Rights Reserved.