class: SourceBean

public class: SourceBean
Author: Mario Wagner
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:32:21; Modified: 16.07.2009 15:32:21;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {AA74D6FD-A4B6-4e75-A146-44814C74E33A}
POJO bean to deal with one source.
 

Goto: Custom Properties, Fields, Methods

Extends: FacesBean

See also: CreatorCollection, IdentifierCollection, TitleCollection, FacesBean

Appears in: bean

Connections
 
Custom Properties
 
SourceBean Attributes
Attribute Details
private boolean
  autosuggestJournals
Initial: false
private CoreCommandButton
  btnChooseCollection
Initial: new CoreCommandButton()
private CreatorCollection
  creatorCollection
private String
  creatorParseString
public static const String
  HIDDEN_DELIMITER
Initial: "\\|\\|##\\|\\|"
public static const String
  HIDDEN_IDTYPE_DELIMITER
Initial: "\\|"
private String
  hiddenAlternativeTitlesField
private String
  hiddenIdsField
private IdentifierCollection
  identifierCollection
private boolean
  overwriteCreators
private SourceVO
  source
private TitleCollection
  titleCollection
 
SourceBean Methods
Operation Details
public
addCreatorString():String
Sequential
Notes: Parse the copy&paste creators string into CreatorVOs.
@return null
public
chooseGenre():String
Sequential
Notes: If genre is journal, activate auto suggest.
@return EditItem page.
public
chooseSourceGenre(
   ValueChangeEvent event):void
Sequential
public
getAutosuggestJournals():boolean
Sequential
public
getBtnChooseCollection():CoreCommandButton
Sequential
public
getCreatorCollection():CreatorCollection
Sequential
public
getCreatorParseString():String
Sequential
public
getHiddenAlternativeTitlesField():String
Sequential
public
getHiddenIdsField():String
Sequential
public
getIdentifierCollection():IdentifierCollection
Sequential
public
getOverwriteCreators():boolean
Sequential
public
getSource():SourceVO
Sequential
public
getSourceGenreOptions():SelectItem
Sequential
Notes: localized creation of SelectItems for the source genres available.
@return SelectItem[] with Strings representing source genres
public
getTitleCollection():TitleCollection
Sequential
public static
parseAlternativeTitles(
   String titleList):List
Sequential
public
parseAndSetAlternativeTitlesAndIds():String
Sequential
Notes: Takes the text from the hidden input fields, splits it using the delimiter and adds them to the model. Format of alternative titles: alt title 1 ||##|| alt title 2 ||##|| alt title 3 Format of ids: URN|urn:221441 ||##|| URL|http://www.xwdc.de ||##|| ESCIDOC|escidoc:21431
@return
public static
parseIdentifiers(
   String idList):List
Sequential
public
setAutosuggestJournals(
   boolean autosuggestJournals):void
Sequential
public
setBtnChooseCollection(
   CoreCommandButton btnChooseCollection):void
Sequential
public
setCreatorCollection(
   CreatorCollection creatorCollection):void
Sequential
public
setCreatorParseString(
   String creatorParseString):void
Sequential
public
setHiddenAlternativeTitlesField(
   String hiddenAlternativeTitlesField):void
Sequential
public
setHiddenIdsField(
   String hiddenIdsField):void
Sequential
public
setIdentifierCollection(
   IdentifierCollection identifierCollection):void
Sequential
public
setOverwriteCreators(
   boolean overwriteCreators):void
Sequential
public
setSource(
   SourceVO source):void
Sequential
Notes: Set the source and initialize collections.
public
setTitleCollection(
   TitleCollection titleCollection):void
Sequential
public
SourceBean():
Sequential
Notes: Default constructor.
public
SourceBean(
   SourceVO source):
Sequential
Notes: Create a source bean using a given {@link SourceVO}.