se.kmr.scam.server.impl
Class SearchBean

java.lang.Object
  extended byse.kmr.scam.server.impl.BeanCommon
      extended byse.kmr.scam.server.impl.SearchBean
All Implemented Interfaces:
EnterpriseBean, SearchI, Serializable, SessionBean

public class SearchBean
extends BeanCommon
implements SearchI, SessionBean

EJB-implementation of SearchI

Author:
Stefan, jand
See Also:
Serialized Form
Created:
den 6 augusti 2002

Field Summary
 
Fields inherited from class se.kmr.scam.server.impl.BeanCommon
ADMIN_ROLE, GUEST_ROLE
 
Constructor Summary
SearchBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 Model getPath(String identity, String uri)
          Retrieving IMSCP-path (Folders) for a given Item.
protected  SessionContext getSessionContext()
          This is set if worker encountered an exception
 Model searchFree(String identity, String predicate, String pattern)
          Deprecated.  
 Model searchRDQL(String identity, String rdql)
          Search Manifest according to RDQL.
 void setSessionContext(SessionContext sessionContext)
           
 
Methods inherited from class se.kmr.scam.server.impl.BeanCommon
abort, assertPermission, assertPermission, begin, close, commit, contains, create, filter, filter, getCaller, hasPermission, hasPermission, isCaller, isCallerInRole, list, lookup, open, open, remove, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBean

public SearchBean()
Method Detail

getSessionContext

protected SessionContext getSessionContext()
This is set if worker encountered an exception

Specified by:
getSessionContext in class BeanCommon
Returns:
the context

ejbCreate

public void ejbCreate()
               throws CreateException
Throws:
CreateException

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface SessionBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface SessionBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface SessionBean

setSessionContext

public void setSessionContext(SessionContext sessionContext)
Specified by:
setSessionContext in interface SessionBean

searchFree

public Model searchFree(String identity,
                        String predicate,
                        String pattern)
                 throws ArchiveException
Deprecated.  

Freetext search a Manifest. Will return those Components (URIs) having any property containing the given string.
Pattern syntax: ["%"]<string>["%"]

Specified by:
searchFree in interface SearchI
Parameters:
identity - Manifest to search (null means ALL-manifest)
predicate - "closest" predicate to pattern
pattern - String or sub-string (Wildcards available by '%')
Returns:
Model
Throws:
ArchiveException

searchRDQL

public Model searchRDQL(String identity,
                        String rdql)
                 throws ArchiveException
Search Manifest according to RDQL.

Specified by:
searchRDQL in interface SearchI
Parameters:
identity - Manifest to search (null means ALL-manifest)
rdql - RDQL expression
Returns:
Resulting model
Throws:
ArchiveException

getPath

public Model getPath(String identity,
                     String uri)
              throws ArchiveException
Retrieving IMSCP-path (Folders) for a given Item. Note: the DC.title for 'uri' itself is not included. Multi-language DC.title is OK.

Specified by:
getPath in interface SearchI
Parameters:
identity - Manifest
uri - URI of Item
Returns:
Model containing the limited info (org and DC.title)
Throws:
ArchiveException


Copyright © 2003 SCAM. All Rights Reserved.