com.sapportals.wcm.service.reporting

Interface IScopeController


public interface IScopeController

Controls user selection of resource identifiers as scope intput to report execution.

Copyright (c) SAP AG 2004


Nested Class Summary
static interface IScopeController.IScopeEntry
          A scope list entry.
 
Field Summary
static int SCOPE_MODE_ANY
           
static int SCOPE_MODE_LIST
           
static int SCOPE_MODE_NONE
           
 
Method Summary
 RID getBrowseLocation()
          In case this controller has scope mode SCOPE_MODE_ANY, returns the best starting location for browsing resources.
 String getScopeLabel()
          Get a label suitable for user interfaces, for the scope list.
 List getScopeList()
          In case this controller has scope mode SCOPE_MODE_LIST, returns the list of available scopes as list of IScopeController.IScopeEntrys.
 int getScopeMode()
          Gives the scope mode of this controller.
 boolean prefersSingleSelection()
          Gives preference whether single or mutiple scopes should be selected as input to a report.
 

Field Detail

SCOPE_MODE_NONE

public static final int SCOPE_MODE_NONE
See Also:
Constant Field Values

SCOPE_MODE_ANY

public static final int SCOPE_MODE_ANY
See Also:
Constant Field Values

SCOPE_MODE_LIST

public static final int SCOPE_MODE_LIST
See Also:
Constant Field Values
Method Detail

getScopeMode

public int getScopeMode()
Gives the scope mode of this controller. The following modes are defined:

Returns:
scope mode of this controller

prefersSingleSelection

public boolean prefersSingleSelection()
Gives preference whether single or mutiple scopes should be selected as input to a report. A report must always be prepared to handle input with more than one RID. For certain reports however, selecting a single resource may be the prefered way of operation.

Returns:
if single scope selections are prefered

getScopeList

public List getScopeList()
                  throws ResourceException
In case this controller has scope mode SCOPE_MODE_LIST, returns the list of available scopes as list of IScopeController.IScopeEntrys. The list may contain each RID only once in a IScopeController.IScopeEntry.

For all other scope modes, the list may be null

Returns:
list of IScopeController.IScopeEntrys
Throws:
ResourceException - on failure to retrieve entry list

getScopeLabel

public String getScopeLabel()
Get a label suitable for user interfaces, for the scope list. If no label is available, null may be returned.

Returns:
label for scope list or null if none available.

getBrowseLocation

public RID getBrowseLocation()
                      throws ResourceException
In case this controller has scope mode SCOPE_MODE_ANY, returns the best starting location for browsing resources. This may be null if the controller does not care where browsing should start.

Returns:
suitable location for browsing scope resources or null
Throws:
ResourceException - on failure to determine location


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.