com.sapportals.wcm.rendering.collection

Class SearchRendererStatus

java.lang.Object
  extended bycom.sapportals.wcm.rendering.collection.AbstractRendererStatus
      extended bycom.sapportals.wcm.rendering.collection.SearchRendererStatus
All Implemented Interfaces:
IConfigurableRendererStatus, IControlStatus, IMassDataControlStatus, IRefreshSurvivor, IRendererStatus, ISearchSessionProvider, IVolatileStatus

public class SearchRendererStatus
extends AbstractRendererStatus
implements ISearchSessionProvider, IRefreshSurvivor

The SearchRendererStatus class renders a search resultinput. A search search query gets passed via CFlSearchEvent to SearchResultControl. Search is done in SearchResultControl via federated search manager of WCM. Copyright (c) SAP Portals Europe GmbH 2001

See Also:
SearchRendererStatus

Nested Class Summary
 
Nested classes inherited from class com.sapportals.wcm.rendering.collection.AbstractRendererStatus
AbstractRendererStatus.CompleteResourceComparator
 
Field Summary
 
Fields inherited from class com.sapportals.wcm.rendering.collection.AbstractRendererStatus
actions, context, list
 
Fields inherited from interface com.sapportals.wcm.rendering.base.IRendererStatus
DESELECT_ALL, ID, NAME, SELECT_ALL
 
Constructor Summary
SearchRendererStatus()
           
 
Method Summary
 void filter()
          filters the current IResourceList attribute of the status using the set IResourceListFilter and the IParameters.
 List getActions()
          returns a list with all IExecutable s defined by the implementing class
 int getEntrySize()
          returns the number of entries that are managed within this status
 int getMaxDocsPerPage()
           
 IConfigurableRendererStatus getNewInstance()
           
 ISearchSession getSearchSession()
          get search session from SearchRendererStatus
 ITypedResourceList getTypedResourceList()
          returns the ITypedResourceList, whose elements are handled within this status.
 boolean hasMore()
          flag telling, if all resources available for the given parent or the given resourcelist are included in the presently returned resourcelist.
 boolean isEnableWebRepAccess()
           
 void refresh()
          central refresh of list to be displayed
 void setCurrentIndex(int index)
          sets the index-attribute of the status to the given value.
 void setEnableWebRepAccess(boolean value)
           
 void setHasMore(boolean flag)
           
 void setMaxDocsPerPage(int maxDocsPerPage)
           
 void setParameters(Hashtable searchParameters)
          set search parameters that are important for rendering info (docs per page, nof cats, search cascade)
 void setSearchSession(ISearchSession searchSession)
           
 void setSession(ISearchSession session)
           
 
Methods inherited from class com.sapportals.wcm.rendering.collection.AbstractRendererStatus
execute, execute, getAction, getComparator, getCurrentIndex, getField, getFields, getFieldSet, getFieldSet, getFilter, getFilterParameters, getID, getMassFields, getParameters, getParent, getPropertyColumns, getResource, getResourceList, getResourceTypeMapping, getSelectedResources, getSortDefintion, getStatusInformation, initializeSelectionList, isVolatile, setComparator, setFilter, setFilterParameters, setID, setParent, setPropertyColumns, setResourceTypeMapping, setSortDefinition, setTypedResourceList, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchRendererStatus

public SearchRendererStatus()
Method Detail

setSession

public void setSession(ISearchSession session)
                throws WcmException
Throws:
WcmException

getSearchSession

public ISearchSession getSearchSession()
Description copied from interface: ISearchSessionProvider
get search session from SearchRendererStatus

Specified by:
getSearchSession in interface ISearchSessionProvider

setSearchSession

public void setSearchSession(ISearchSession searchSession)

getMaxDocsPerPage

public int getMaxDocsPerPage()

setMaxDocsPerPage

public void setMaxDocsPerPage(int maxDocsPerPage)

setEnableWebRepAccess

public void setEnableWebRepAccess(boolean value)

isEnableWebRepAccess

public boolean isEnableWebRepAccess()

filter

public void filter()
Description copied from class: AbstractRendererStatus
filters the current IResourceList attribute of the status using the set IResourceListFilter and the IParameters. If one of these is null, no filtering will be done, but a logging entry is written. Also, if the list has been filtered before and no new information has been provided by either
setting a new IResourceListFilter
setting new IParameters or
calling the AbstractRendererStatus.refresh() method
the method will not call the filter algorithm again due to performance reasons.
Also, this method will set the current index back to 0, because the index as it was might exceed the number of elements left over after the filtering.
The list of selected resources will be reseted as well, so no elements will be selected.

Specified by:
filter in interface IRendererStatus
Overrides:
filter in class AbstractRendererStatus

refresh

public void refresh()
             throws WcmException
central refresh of list to be displayed

Specified by:
refresh in interface IRendererStatus
Overrides:
refresh in class AbstractRendererStatus
Throws:
WcmException

setParameters

public void setParameters(Hashtable searchParameters)
set search parameters that are important for rendering info (docs per page, nof cats, search cascade)

Specified by:
setParameters in interface IConfigurableRendererStatus
Overrides:
setParameters in class AbstractRendererStatus

setHasMore

public void setHasMore(boolean flag)

hasMore

public boolean hasMore()
Description copied from class: AbstractRendererStatus
flag telling, if all resources available for the given parent or the given resourcelist are included in the presently returned resourcelist.

Specified by:
hasMore in interface IRendererStatus
Overrides:
hasMore in class AbstractRendererStatus
Returns:
false, if all resources are included

getEntrySize

public int getEntrySize()
Description copied from interface: IMassDataControlStatus
returns the number of entries that are managed within this status

Specified by:
getEntrySize in interface IMassDataControlStatus
Overrides:
getEntrySize in class AbstractRendererStatus

setCurrentIndex

public void setCurrentIndex(int index)
                     throws WcmException
Description copied from interface: IRendererStatus
sets the index-attribute of the status to the given value. This is needed e.g. to store the part of the resourcelist that is currently displayed within an iView.

Specified by:
setCurrentIndex in interface IRendererStatus
Overrides:
setCurrentIndex in class AbstractRendererStatus
Throws:
WcmException

getTypedResourceList

public ITypedResourceList getTypedResourceList()
Description copied from interface: IRendererStatus
returns the ITypedResourceList, whose elements are handled within this status. Might be null or might be of size 0.

Specified by:
getTypedResourceList in interface IRendererStatus
Overrides:
getTypedResourceList in class AbstractRendererStatus

getActions

public List getActions()
Description copied from interface: IControlStatus
returns a list with all IExecutable s defined by the implementing class

Specified by:
getActions in interface IControlStatus
Returns:
actions

getNewInstance

public IConfigurableRendererStatus getNewInstance()
Specified by:
getNewInstance in interface IConfigurableRendererStatus


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.