class: SearchBean

public class: SearchBean
Author:
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:19:42; Modified: 16.07.2009 15:19:42;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {1D3795B6-8FE5-4491-825D-36EC1C03F1A2}
{@inheritDoc}
 

Goto: Custom Properties, Fields, Methods, Tagged Values

Implements: Search

See also: CitationStyleHandler, StructuredExportHandler, XmlTransforming, Search

Appears in: bean

Connections
 
Custom Properties
 
SearchBean Attributes
Attribute Details
private CitationStyleHandler
  citationStyleHandler
annotations=@EJB
Notes: A CitationStyleHandler instance.
public static const String
  INDEXDATABASE_ALL
Initial: "escidoc_all"
Notes: Coreservice identifier for the 'all' lucene index database.
public static const String
  INDEXDATABASE_DE
Initial: "escidoc_de"
Notes: Coreservice identifier for the 'english' lucene index database.
public static const String
  INDEXDATABASE_EN
Initial: "escidoc_en"
Notes: Coreservice identifier for the 'german' lucene index database.
public static const String
  INDEXDATABASE_OU
Initial: "escidocou_all"
Notes: Coreservice identifier for the organizational unit index database.
private Logger
  logger
Initial: null
Notes: Logging instance.
private static const String
  RECORD_PACKING
Initial: "xml"
Notes: Packing of result.
private static const String
  SEARCHREQUEST_VERSION
Initial: "1.1"
Notes: Version of the cql search request.
private static const String
  SRW_SORT_NO_ERROR
Initial: "cannot determine sort type"
Notes: Diagnostic sort type error from the SRW interface which should not be treated as an error.
private static const String
  SRW_STARTRECORD_NO_ERROR
Initial: "61/StartRecord > endRecord"
Notes: Diagnostic startrecord error from the SRW interface which should not be treated as an error.
private StructuredExportHandler
  structuredExportHandler
annotations=@EJB
Notes: A EndnodeExportHandler instance.
private XmlTransforming
  xmlTransforming
annotations=@EJB
Notes: A XmlTransforming instance.
 
SearchBean Methods
Operation Details
private
checkValue(
   String str):boolean
Sequential
private
getOutput(
   String exportFormat,
   FormatType formatType,
   String outputFormat,
   String itemList):byte
Sequential
Tags: throws=TechnicalException,StructuredExportXSLTNotFoundException,StructuredExportManagerException,IOException,JRException,CitationStyleManagerException
Notes: Queries an export service to get the search result in an binary format.
@return a binary stream which contains the items in a given format (pdf, etc.)
private
performSearch(
   SearchRetrieveRequestType searchRetrieveRequest,
   String index):SearchRetrieveResponseType
Sequential
Tags: throws=TechnicalException
Notes: Perform a search with the SRU interface.
@param sel index database selector
@return search result set
public
searchAndExportItems(
   ExportSearchQuery query):ExportSearchResult
Sequential
Tags: throws=Exception
Notes: {@inheritDoc}
public
SearchBean():
Sequential
Notes: Standard constructor.
public
searchForItemContainer(
   SearchQuery query):ItemContainerSearchResult
Sequential
Tags: throws=Exception
Notes: {@inheritDoc}
public
searchForOrganizationalUnits(
   SearchQuery query):OrgUnitsSearchResult
Sequential
Tags: throws=Exception
Notes: {@inheritDoc}
private
transformToAffiliationList(
   SearchRetrieveResponseType searchResult):List
Sequential
Tags: throws=Exception
private
transformToItemListAsString(
   SearchRetrieveResponseType searchResult):String
Sequential
Tags: throws=Exception
Notes: Transforms the search result set to a xml string.
@return search result set as string
private
transformToSearchResultList(
   SearchRetrieveResponseType searchResult):List
Sequential
Tags: throws=TechnicalException
Notes: Transform the search result set into ItemContainerSearchResultVOs.
@return list of ItemContainerSearchResultVOs
 
SearchBean Tagged Values
Tag Value Notes
annotations @Remote@RemoteBinding(jndiBinding = Search.SERVICE_NAME)@Stateless@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)@Interceptors( { LogStartEndInterceptor.class, LogMethodDurationInterceptor.class })