class: PubFileVOPresentation

public class: PubFileVOPresentation
Author: franke (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 2721 $ $LastChangedDate: 2009-06-04 14:; Complexity: 1
Dates: Created: 16.07.2009 15:33:45; Modified: 16.07.2009 15:33:45;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {3FEA1CB2-F8FD-4d65-BE9D-9E98F3A141EA}
Presentation wrapper for {@link FileVO}.
 

Goto: Custom Properties, Fields, Methods

Extends: FacesBean

See also: LoginHelper, PubItemSimpleStatistics, FacesBean

Appears in: util

Connections
 
Custom Properties
 
PubFileVOPresentation Attributes
Attribute Details
private FileVO
  file
public static const String
  FILE_TYPE_FILE
Initial: "FILE"
public static const String
  FILE_TYPE_LOCATOR
Initial: "LOCATOR"
private String
  fileType
private ArrayList
  grantList
Initial: new ArrayList()
private int
  index
private boolean
  isLocator
Initial: false
private static const Logger
  logger
Initial: Logger.getLogger(PubFileVOPresentation.class)
private LoginHelper
  loginHelper
private PubItemSimpleStatistics
  pubItemStatistics
private HtmlCommandButton
  removeButton
Initial: new HtmlCommandButton()
 
PubFileVOPresentation Methods
Operation Details
public
addGrant():String
Sequential
protected
getApplicationBean():ApplicationBean
Sequential
Notes: Returns the ApplicationBean.
@return a reference to the scoped data bean (ApplicationBean)
public
getContentCategory():String
Sequential
Notes: Returns an internationalized String for the file's content category.
@return The internationalized content-category.
public
getContentCategoryAsXmlString():String
Sequential
Notes: Returns an string according to XML conventions.
@return The content category of the file.
public
getDescription():String
Sequential
protected
getEasySubmissionSessionBean():EasySubmissionSessionBean
Sequential
Notes: Returns the EasySubmissionSessionBean.
@return a reference to the scoped data bean (EasySubmissionSessionBean)
public
getFile():FileVO
Sequential
public
getFileType():String
Sequential
public
getGrantList():List
Sequential
public
getIndex():int
Sequential
public
getIsLocator():boolean
Sequential
public
getLocator():String
Sequential
public
getMimeType():String
Sequential
public
getNumberOfFileDownloadsPerFileAllUsers():String
Sequential
Tags: throws=Exception
public
getNumberOfFileDownloadsPerFileAnonymousUsers():String
Sequential
Tags: throws=Exception
public
getRemoveButton():HtmlCommandButton
Sequential
public
getShowEmbargoDate():boolean
Sequential
Notes: This Method evaluates if the embargo date input filed has to be displayed or not (yes, if visibility is set to private or restricted)
@return boolean flag if embargo date input field should be displayed or not
public
getSize():int
Sequential
Notes: Return the file size.
@return The number of bytes.
public
getVisibility():String
Sequential
public
init():void
Sequential
private
initStatisticService():void
Sequential
public
PubFileVOPresentation():
Sequential
Notes: Default constructor.
public
PubFileVOPresentation(
   int fileIndex,
   boolean isLocator):
Sequential
public
PubFileVOPresentation(
   int fileIndex,
   FileVO file):
Sequential
public
PubFileVOPresentation(
   int fileIndex,
   FileVO file,
   boolean isLocator):
Sequential
public
removeFile():String
Sequential
public
removeFileEasySubmission():String
Sequential
public
removeLocatorEasySubmission():String
Sequential
public
removeLocatorEditItem():String
Sequential
public
setContentCategoryAsXmlString(
   String category):void
Sequential
Notes: Sets the content category of the file.
public
setDescription(
   String description):void
Sequential
public
setFile(
   FileVO file):void
Sequential
public
setFileType(
   String fileType):void
Sequential
public
setGrantList(
   List grantList):void
Sequential
public
setIndex(
   int index):void
Sequential
public
setLocator(
   boolean isLocator):void
Sequential
public
setLocator(
   String locator):void
Sequential
public
setMimeType(
   String mimeType):void
Sequential
public
setRemoveButton(
   HtmlCommandButton removeButton):void
Sequential
public
setUpdateVisibility(
   ValueChangeEvent event):void
Sequential
Notes: This method updates the file's visibility with the new one selected by the user
private
setVisibility():void
Sequential