class: PubItemSearchingBean

public class: PubItemSearchingBean
Author: Miriam Doelle (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 449 $ $LastChangedDate: 2007-11-28 14:4; Complexity: 1
Dates: Created: 16.07.2009 15:31:14; Modified: 16.07.2009 15:31:14;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6721CB93-A2E7-4822-BAC5-A21A5D85803D}
This class provides the ejb implementation of the {@link PubItemSearching} interface.
 

Goto: Custom Properties, Fields, Methods, Tagged Values

Implements: PubItemSearching

See also: ItemExporting, PubItemSearching

Appears in: searching

Connections
 
Custom Properties
 
PubItemSearchingBean Attributes
Attribute Details
private String
  cqlQuery
Initial: ""
Notes: the cql query string of the advanced search method
private static const String
  INDEX_CONTENT_TYPE
Initial: "escidoc.content-model.objid"
private ItemExporting
  itemExporting
annotations=@EJB
Notes: A ItemExporting instance.
private Logger
  logger
Initial: Logger.getLogger(getClass())
Notes: The logger instance.
private static const String
  SEARCH_CLAUSE_WITH_CONTENT_TYPE
Initial: "( {0} ) and " + INDEX_CONTENT_TYPE + "=\"{1}\""
private XmlTransforming
  xmlTransforming
annotations=@EJB
Notes: A XmlTransforming instance.
 
PubItemSearchingBean Methods
Operation Details
public
advancedSearch(
   ArrayList list,
   String language):List
Sequential
Tags: throws=ParseException,TechnicalException
Notes: compiles the search query from the criterion list and executes the advanced search.
@param ArrayList<CriterionVO> list: the search criteria in an ArrayList to search for
@return List<PubItemResultVO>: an list with the search result of the query
private
cqlSearchForPubItems(
   String cqlSearchString,
   String language):ArrayList
Sequential
Tags: throws=TechnicalException
Notes: Executes a search with the given cql query supplemented with the clause to search only for publication items.
@return The list of PubItemResultVOs that are in the search result.
private
createCqlQuery(
   String searchString,
   QueryType queryType):String
Sequential
Tags: throws=ParseException,TechnicalException
Notes: creates an cql query string by the QueryParser instance.
@return (String): the cql query string
private
createLogicOperator(
   LogicOperator op,
   int index,
   int size):String
Sequential
Notes: creates a logic operator string to be appended on the cql query
@return (String): the string with the logic operator
public
getCqlQuery():String
Sequential
Notes: (non-Javadoc)
@see de.mpg.escidoc.services.pubman.PubItemSearching#getCqlQuery()
public
search(
   String searchString,
   boolean searchInFiles):List
Sequential
Tags: throws=ParseException,TechnicalException
Notes: {@inheritDoc}
public
searchAndOutput(
   String cqlSearchString,
   String language,
   String exportFormat,
   String outputFormat):byte
Sequential
Tags: throws=ParseException,TechnicalException
Notes: {@inheritDoc}
public
searchByContextObjectIdAndDate(
   String contextobjId,
   Date greaterDate):List
Sequential
Tags: throws=ParseException,TechnicalException
public
searchForQAWorkspace(
   String contextobjId,
   String affiliationId,
   State state):List
Sequential
Tags: throws=ParseException,TechnicalException
public
searchPubItemsByAffiliation(
   AffiliationVO affiliation):List
Sequential
Tags: throws=TechnicalException,AffiliationNotFoundException
Notes: escidoc.framework_access.content-model.id.publication {@inheritDoc}
private
searchPubItemsForAffiliationAndChildren(
   AffiliationVO affiliation):List
Sequential
Tags: throws=TechnicalException,AffiliationNotFoundException
 
PubItemSearchingBean Tagged Values
Tag Value Notes
annotations @Remote@RemoteBinding(jndiBinding = PubItemSearching.SERVICE_NAME)@Stateless@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)@Interceptors( { LogStartEndInterceptor.class, LogMethodDurationInterceptor.class })