public class ProductNode
extends java.lang.Object
| Constructor and Description |
|---|
ProductNode(HiProduct product)
Create a new product node for the specified type of product
|
ProductNode(HiProduct product,
java.lang.String ref)
Create a new product node for the specified type of product
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProductFile(ProductFile file)
Add a file to this node
|
ProductFile |
getAbrowse()
Convenience method to get the annotated browse file info if it exists (otherwise null)
|
boolean |
getAvailable()
Get the availability.
|
ProductFile |
getBrowse()
Convenience method to get the browse file info if it exists (otherwise null)
|
ProductFile |
getColorThumb()
Convenience method to get the color thumbnail file if it exists (otherwise null)
|
java.util.Date |
getCreated()
Get the creation date
|
java.lang.String |
getDisplayName()
Get the (non-unique) name of the product for display.
|
ProductFile |
getFull()
Convenience method to get the full file info if it exists (otherwise null)
|
java.lang.String |
getName()
Get the name of the product.
|
HiProduct |
getProduct()
Get the product enumerator instance
|
java.util.Map<ProductFileType,ProductFile> |
getProductFiles()
Get the files for this product
|
java.lang.String |
getRef()
Get the reference product ID (may be null)
|
ProductState |
getState()
Get the state of this product
|
java.lang.String |
getStatus()
Get the status, typically a pipeline name to indicate that the product was last
sourced to the pipeline
|
ProductFile |
getThumb()
Convenience method to get the thumbnail file info if it exists (otherwise null)
|
void |
setCreated(java.util.Date created)
Set the product creation date
|
void |
setState(ProductState state)
Set the state of this product
|
void |
setStatus(java.lang.String status)
Set the status, e.g.
|
public ProductNode(HiProduct product)
product - typepublic ProductNode(HiProduct product, java.lang.String ref)
product - typeref - reference product IDpublic java.lang.String getName()
Enum.toString()public java.lang.String getDisplayName()
HiProduct.getDisplayName()public HiProduct getProduct()
public void addProductFile(ProductFile file)
file - reference to file for this productpublic java.util.Map<ProductFileType,ProductFile> getProductFiles()
public java.util.Date getCreated()
public void setCreated(java.util.Date created)
created - date of creationpublic ProductFile getFull()
public ProductFile getAbrowse()
public ProductFile getBrowse()
public ProductFile getThumb()
public ProductFile getColorThumb()
public boolean getAvailable()
public ProductState getState()
public void setState(ProductState state)
state - current statepublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status - pipeline name (or other identifier)public java.lang.String getRef()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona