com.mizar.trinidad.components.intermedia
Class MediaRow

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.trinidad.components.intermedia.MediaBean
          extended by com.mizar.trinidad.components.intermedia.MediaRow
All Implemented Interfaces:
RowInterface, RowMutable, JPAInterface, java.io.Serializable, java.lang.Comparable

public class MediaRow
extends MediaBean
implements RowMutable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.trinidad.components.intermedia.MediaBean
content, dated, description, id, metadata, shredDate, source, title
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
MediaRow()
           
 
Method Summary
 void createRow(javax.faces.event.ActionEvent ae)
           
 void deleteRow(javax.faces.event.ActionEvent ae)
           
 void download(javax.faces.context.FacesContext context, java.io.OutputStream out)
           
 void downloadFile(javax.faces.event.ActionEvent ae)
           
 java.lang.Object getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 boolean isUserReadOnly()
           
 void updateRow(javax.faces.event.ActionEvent ae)
           
 
Methods inherited from class com.mizar.trinidad.components.intermedia.MediaBean
getContent, getDated, getDescription, getId, getImageURL, getMetadata, getShredDate, getSource, getTitle, setContent, setDated, setDescription, setId, setMetadata, setShredDate, setSource, setTitle
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mizar.faces.javax.components.RowMutable
isEditable, setEntityState
 
Methods inherited from interface com.mizar.faces.javax.components.RowInterface
getEntityState, getEntityStateLabel
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MediaRow

public MediaRow()
Method Detail

createRow

public void createRow(javax.faces.event.ActionEvent ae)

updateRow

public void updateRow(javax.faces.event.ActionEvent ae)
Specified by:
updateRow in interface RowMutable

deleteRow

public void deleteRow(javax.faces.event.ActionEvent ae)
Specified by:
deleteRow in interface RowMutable

isUserReadOnly

public boolean isUserReadOnly()
Specified by:
isUserReadOnly in interface RowMutable

getPrimaryKeyValue

public java.lang.Object getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Specified by:
getPrimaryKeyValue in interface RowInterface
Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

download

public void download(javax.faces.context.FacesContext context,
                     java.io.OutputStream out)
              throws java.io.IOException
Throws:
java.io.IOException

downloadFile

public void downloadFile(javax.faces.event.ActionEvent ae)