class: PubItemVOPresentation

public class: PubItemVOPresentation
Author: franke
Project: Phase: 1.0; Status: Proposed; Version: : $Revision: 1881 $ $LastChangedDate: 2007-12-04 1; Complexity: 1
Dates: Created: 16.07.2009 15:33:47; Modified: 16.07.2009 15:33:47;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {F49F7AD2-9AC9-4763-926A-E243661334CF}
Wrapper class for items to be used in the presentation.
 

Goto: Custom Properties, Fields, Methods

Implements: Internationalized

See also: EditItem, InternationalizationHelper, Internationalized, WrappedLocalTag, ViewItemFull, ItemControllerSessionBean

Appears in: util

Connections
 
Custom Properties
 
PubItemVOPresentation Attributes
Attribute Details
private List
  affiliatedOrganizationsList
Notes: The list of affiliated organizations in a list.
private ArrayList
  allCreatorsList
Initial: new ArrayList()
Notes: The list of formatted creators (persons AND organizations) in an ArrayList.
private ArrayList
  creatorArray
Notes: The list of formatted creators (persons) in an ArrayList.
private ArrayList
  creatorOrganizationsArray
Notes: The list of formatted creators which are organizations in an ArrayList.
private SourceVO
  firstSource
Initial: new SourceVO()
Notes: the first source of the item (for display in the medium view)
private InternationalizationHelper
  i18nHelper
Initial: (InternationalizationHelper)FacesContext .getCurrentInstance() .getApplication().getVariableResolver() .resolveVariable(FacesContext.getCurrentInstance(), InternationalizationHelper.BEAN_NAME)
Notes: For handling the resource bundles (i18n) private Application application = FacesContext.getCurrentInstance().getApplication(); get the selected language...
private boolean
  isFromEasySubmission
private boolean
  isRevisionView
Initial: false
Notes: True if the item is shown in the revisions list, additional information is displayed then (release date, description)
private boolean
  isSearchResult
Initial: false
private ArrayList
  organizationArray
Notes: The list of formatted organzations in an ArrayList.
private ArrayList
  organizationList
Notes: The list of affiliated organizations as VO List.
private boolean
  released
Initial: false
private java.util.ArrayList
  searchHitList
Initial: new java.util.ArrayList()
Notes: List of hits. Every hit in files contains the file reference and the text fragments of the search hit.
private ArrayList
  searchHits
Initial: new ArrayList()
Notes: List of search hits wrapped in a display optimized bean
private boolean
  selected
Initial: false
private boolean
  shortView
Initial: true
private ArrayList
  wrappedLocalTags
Initial: new ArrayList()
 
PubItemVOPresentation Methods
Operation Details
public
bindComponentLabel(
   UIComponent component,
   String placeholder):void
Sequential
Notes: (non-Javadoc)
@see de.mpg.escidoc.pubman.appbase.Internationalized#bindComponentLabel(javax.faces.component.UIComponent, java.lang.String)
private
createAffiliatedOrganizationList():void
Sequential
Notes: Generates the affiliated organization list as one string for presenting it in the jsp via the dynamic html component. Doubled organizations will be detected and merged. All organizzations will be numbered.
private
createCreatorList():void
Sequential
Notes: Generates the creator list as list of formatted Strings.
@return String formatted creator list as string
public
getAffiliatedOrganizationsList():List
Sequential
public
getAllCreatorsList():ArrayList
Sequential
public
getAmountOfFiles():int
Sequential
Notes: Counts the files and gives info back as int
@return int the amount of files belonging to this item
public
getAmountOfLocators():int
Sequential
Notes: Counts the locators and gives info back as int
@return int the amount of locators belonging to this item
protected
getApplicationBean():ApplicationBean
Sequential
Notes: Returns the ApplicationBean.
@return a reference to the scoped data bean (ApplicationBean)
public
getCountAffiliatedOrganizations():int
Sequential
Notes: Counts the affiliated organizations and returns the number as int (inportant for rendering in )
@return int number of organiozations
public
getCountCreators():int
Sequential
Notes: Counts the creators and returns the number as int (inportant for rendering in )
@return int number of creators
public
getCreatorArray():ArrayList
Sequential
public
getCreatorOrganizationsArray():ArrayList
Sequential
public
getCreators():String
Sequential
Notes: Distinguish between Persons and organization as creators and returns them formatted as string.
@return String the formatted creators
public
getCreatorsShort():String
Sequential
public
getDatesAsString():String
Sequential
public
getEventTitle():String
Sequential
Notes: Returns the event title (50 Chars) and crops the last characters
@return String the event title
public
getFileInfo():String
Sequential
Notes: This method examines the pubitem concerning its files and generates a display string for the page according to the number of files detected.
@param pubitemVo the pubitem to be examined
@return String the formatted String to display the occurencies of files
private
getFileList():List
Sequential
Notes: This method examines which file is really a file and not a locator and returns a list of native files
@return List<FileVO> file list
public
getFirstSource():SourceVO
Sequential
public
getFormattedLatestReleaseModificationDate():String
Sequential
public
getFurtherSources():int
Sequential
Notes: Counts the sources of the current item
@return int number of sources
public
getGenre():String
Sequential
Notes: gets the genre of the item
@return String the genre of the item
public
getHasSearchHits():boolean
Sequential
public
getIsFromEasySubmission():boolean
Sequential
public
getIsReleased():boolean
Sequential
public
getIsRevisionView():boolean
Sequential
public
getIsStateInRevision():boolean
Sequential
Notes: This method return true if the item is in revision, otherwise false
@author Tobias Schraut
@return Boolean true if item is in revision
public
getIsStatePending():boolean
Sequential
Notes: This method return true if the item is pending, otherwise false
@author Tobias Schraut
@return Boolean true if item is pending
public
getIsStateReleased():boolean
Sequential
Notes: This method return true if the item is released, otherwise false
@author Tobias Schraut
@return Boolean true if item is released
public
getIsStateSubmitted():boolean
Sequential
Notes: This method return true if the item is submitted, otherwise false
@author Tobias Schraut
@return Boolean true if item is submitted
public
getIsStateWithdrawn():boolean
Sequential
Notes: This method return true if the item is withdrawn, otherwise false
@author Tobias Schraut
@return Boolean true if item is withdrawn
public
getItemPublicState():String
Sequential
Notes: This method return the public state of the current item
@author Tobias Schraut
@return String public state of the current item
public
getItemState():String
Sequential
Notes: This method return the state of the current item version
@author Tobias Schraut
@return String state of the current item version
public
getLabel(
   String placeholder):String
Sequential
Notes: (non-Javadoc)
@see de.mpg.escidoc.pubman.appbase.Internationalized#getLabel(java.lang.String)
public
getLatestDate():String
Sequential
Notes: Returns the newest date of the metadata date section.
@return the latest date
public
getLink():String
Sequential
Tags: throws=Exception
public
getLinkLatestRelease():String
Sequential
Tags: throws=Exception
public
getLocatorInfo():String
Sequential
Notes: This method examines the pubitem concerning its locators and generates a display string for the page according to the number of locators detected.
@param pubitemVo the pubitem to be examined
@return String the formatted String to display the occurencies of locators
private
getLocatorList():List
Sequential
Notes: This method examines which file is a locator and not a file and returns a list of locators
@return List<FileVO> locator list
public
getMediumView():boolean
Sequential
public
getMessage(
   String placeholder):String
Sequential
Notes: (non-Javadoc)
@see de.mpg.escidoc.pubman.appbase.Internationalized#getMessage(java.lang.String)
public
getNumberOfFiles():int
Sequential
public
getNumberOfLocators():int
Sequential
public
getNumberOfWrappedLocalTags():int
Sequential
public
getOrganizationArray():ArrayList
Sequential
public
getOrganizationList():ArrayList
Sequential
public
getPublishingInfo():String
Sequential
Notes: Returns the formatted Publishing Info according to filled elements
@return String the formatted Publishing Info
public
getPublishingInfoSource():String
Sequential
Notes: Returns the formatted Publishing Info of the source(!!!) according to filled elements
@return String the formatted Publishing Info of the source
public
getSearchHitList():java.util.List
Sequential
public
getSearchHits():List
Sequential
public
getSelected():boolean
Sequential
public
getShortTitle():String
Sequential
Notes: Returns the title (80 Chars) and crops the last characters. Specification says 100 chars, but this is too long, 50 is too short.
@return String the title
public
getShortView():boolean
Sequential
public
getShowCheckbox():boolean
Sequential
public
getSourceGenre():String
Sequential
Notes: gets the genre of the first source of the item
@return String the genre of the source
public
getSourceTitle():String
Sequential
Notes: Returns the source title (50 Chars) of the first source and crops the last characters
@return String the event title
public
getStartEndPageSource():String
Sequential
Notes: Returns a formatted String containing the start and the end page of the source
@return String the formatted start and end page
public
getWrappedLocalTags():List
Sequential
public
isSearchResult():boolean
Sequential
public
PubItemVOPresentation(
   PubItemVO item):
Sequential
public
select(
   ValueChangeEvent event):void
Sequential
public
setAffiliatedOrganizationsList(
   List affiliatedOrganizationsList):void
Sequential
public
setAllCreatorsList(
   ArrayList allCreatorsList):void
Sequential
public
setCreatorArray(
   ArrayList creatorArray):void
Sequential
public
setCreatorOrganizationsArray(
   ArrayList creatorOrganizationsArray):void
Sequential
public
setFirstSource(
   SourceVO firstSource):void
Sequential
public
setFromEasySubmission(
   boolean isFromEasySubmission):void
Sequential
public
setIsRevisionView(
   boolean isRevisionView):void
Sequential
public
setMediumView(
   boolean mediumView):void
Sequential
public
setOrganizationArray(
   ArrayList organizationArray):void
Sequential
public
setOrganizationList(
   ArrayList organizationList):void
Sequential
public
setReleased(
   boolean released):void
Sequential
public
setSearchHits(
   List searchHits):void
Sequential
public
setSearchResult(
   boolean isSearchResult):void
Sequential
public
setSelected(
   boolean selected):void
Sequential
public
setShortView(
   boolean shortView):void
Sequential
public
setWrappedLocalTags(
   List wrappedLocalTags):void
Sequential
public
switchToMediumView():void
Sequential
public
switchToShortView():void
Sequential
public
writeBackLocalTags(
   ValueChangeEvent event):void
Sequential