Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acs.damsel.srvr.search
Class SearchMgr  view SearchMgr download SearchMgr.java

java.lang.Object
  extended byorg.acs.damsel.srvr.search.SearchMgr

public class SearchMgr
extends java.lang.Object

Title: SearchMgr

Description: This class contains methods used to facilitate searching and browsing of assets in the database. It includes methods for simple and advance searches, as well as browsing.

Version:
1.0

Field Summary
private  org.acs.damsel.srvr.db.AssetDB assetdb
           
private  java.lang.String collectionName
           
private static org.apache.log4j.Logger log
           
private  org.acs.damsel.srvr.collection.CollectionView myView
           
 
Constructor Summary
SearchMgr()
          Default no argument constructor.
SearchMgr(org.acs.damsel.srvr.collection.Collection c)
          Constructure that takes the collection to be searched or browsed as a parameter.
 
Method Summary
 org.acs.damsel.srvr.collection.CollectionView advancedSearch(AdvancedSearchParams params)
          Method to perform an advanced search given an AdvancedSearchParams object.
 org.acs.damsel.srvr.collection.CollectionView browseByKeyField(java.lang.String browseChar, java.lang.String tag, java.lang.String collectionSelect)
          This method browses through a collection for entries in the specified field that start with the specified browse character.
private  java.lang.String convert(java.lang.String searchString)
           
 org.acs.damsel.srvr.collection.CollectionView searchByKeyword(java.lang.String searchWord, java.lang.String tag, java.lang.String collectionSelect)
          This method browses through a collection by certain parameters and returns only the collection matching that parameter.
 org.acs.damsel.srvr.collection.CollectionView simpleSearch(java.lang.String searchString, java.lang.String collectionSelect)
          Method to search for multiple keywords across all asset descriptor fields included in the collection schema.
private  org.acs.damsel.srvr.collection.CollectionView simpleSearchHelper(java.lang.String searchWord, java.lang.String collectionSelect)
          Method to search for a specific keyword across all asset descriptor fields included in the collection schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

myView

private org.acs.damsel.srvr.collection.CollectionView myView

collectionName

private java.lang.String collectionName

assetdb

private org.acs.damsel.srvr.db.AssetDB assetdb
Constructor Detail

SearchMgr

public SearchMgr()
Default no argument constructor.


SearchMgr

public SearchMgr(org.acs.damsel.srvr.collection.Collection c)
Constructure that takes the collection to be searched or browsed as a parameter.

Method Detail

simpleSearch

public org.acs.damsel.srvr.collection.CollectionView simpleSearch(java.lang.String searchString,
                                                                  java.lang.String collectionSelect)
                                                           throws java.sql.SQLException
Method to search for multiple keywords across all asset descriptor fields included in the collection schema. Converts the searchWord using the convert method.


simpleSearchHelper

private org.acs.damsel.srvr.collection.CollectionView simpleSearchHelper(java.lang.String searchWord,
                                                                         java.lang.String collectionSelect)
                                                                  throws java.sql.SQLException
Method to search for a specific keyword across all asset descriptor fields included in the collection schema.


searchByKeyword

public org.acs.damsel.srvr.collection.CollectionView searchByKeyword(java.lang.String searchWord,
                                                                     java.lang.String tag,
                                                                     java.lang.String collectionSelect)
This method browses through a collection by certain parameters and returns only the collection matching that parameter. Converts the searchWord using the convert method.


advancedSearch

public org.acs.damsel.srvr.collection.CollectionView advancedSearch(AdvancedSearchParams params)
Method to perform an advanced search given an AdvancedSearchParams object. Note that the collection to be searched is not taken in as a parameter because it is stored in the AdvancedSearchParams object.


browseByKeyField

public org.acs.damsel.srvr.collection.CollectionView browseByKeyField(java.lang.String browseChar,
                                                                      java.lang.String tag,
                                                                      java.lang.String collectionSelect)
This method browses through a collection for entries in the specified field that start with the specified browse character.


convert

private java.lang.String convert(java.lang.String searchString)