com.sapportals.wcm.service.indexmanagement

Interface IIndexFolderList

All Known Implementing Classes:
IndexFolderList

public interface IIndexFolderList

List of IIndexFolders.

See Also:
IIndexFolder, IIndexFolderIterator

Method Summary
 boolean add(IIndexFolder indexFolder)
          Adds indexFolder to the list.
 void add(int index, IIndexFolder indexFolder)
          Adds the index folder at the specified position.
 boolean addAll(IIndexFolderList indexFolderList)
          Adds all elements of indexFolderList to the IIndexFolderList object.
 void addFirst(IIndexFolder indexFolder)
          Adds indexFolder at the beginning of the index folder list.
 void addLast(IIndexFolder indexFolder)
          Adds indexFolder at the end of the index folder list.
 void clear()
          Clears/initializes the list.
 boolean contains(IIndexFolder indexFolder)
          Checks if an equal index folder is in the list.
 IIndexFolder get(int index)
          Returns index folder at the requested position.
 IIndexFolder get(RID indexFolderRid)
          Returns the index folder with the specified RID.
 String getIndexId()
          Returns the index id of the list.
 IRidList getRidList()
          Get the RidList attribute of the IIndexFolderList object.
 boolean isEmpty()
          Indicates if the list is empty.
 IIndexFolderIterator listIterator()
          Returns an iterator for the list.
 IIndexFolderIterator listIterator(int index)
          Returns an iterator for the list starting at position index.
 void remove(IIndexFolder indexFolder)
           
 IIndexFolder remove(int index)
          Removes the index folder at position index and returns it.
 int size()
          Returns the size of the list.
 void sort(Comparator comp)
          Sorts the index folder list using the given comparator.
 

Method Detail

size

public int size()
Returns the size of the list.

Returns:
size of the index folder list

getIndexId

public String getIndexId()
Returns the index id of the list.

Returns:
index id of the index the list is in

isEmpty

public boolean isEmpty()
Indicates if the list is empty.

Returns:
true if list is empty, otherwise false

add

public boolean add(IIndexFolder indexFolder)
            throws WcmException
Adds indexFolder to the list.

Parameters:
indexFolder - index folder to add to list
Returns:
true if folder has been added successfully
Throws:
WcmException - if the operation fails
WcmException

get

public IIndexFolder get(int index)
Returns index folder at the requested position.

Parameters:
index - position in list to get index folder from
Returns:
index folder at the requested position

add

public void add(int index,
                IIndexFolder indexFolder)
         throws WcmException
Adds the index folder at the specified position.

Parameters:
index - position where to add the index folder
indexFolder - index folder to add at the position
Throws:
WcmException - if the operation fails
WcmException

addAll

public boolean addAll(IIndexFolderList indexFolderList)
               throws WcmException
Adds all elements of indexFolderList to the IIndexFolderList object.

Parameters:
indexFolderList - list of index folder to be added
Returns:
true if list could be added successfully
Throws:
WcmException - if the operation fails
WcmException

addLast

public void addLast(IIndexFolder indexFolder)
             throws WcmException
Adds indexFolder at the end of the index folder list.

Parameters:
indexFolder - index folder to be added
Throws:
WcmException - if the operation fails
WcmException

addFirst

public void addFirst(IIndexFolder indexFolder)
              throws WcmException
Adds indexFolder at the beginning of the index folder list.

Parameters:
indexFolder - index folder to be added
Throws:
WcmException - if the operation fails
WcmException

remove

public IIndexFolder remove(int index)
Removes the index folder at position index and returns it.

Parameters:
index - position where the element has to be removed
Returns:
index folder that has been removed

remove

public void remove(IIndexFolder indexFolder)
            throws WcmException
Throws:
WcmException

listIterator

public IIndexFolderIterator listIterator()
Returns an iterator for the list.

Returns:
index folder iterator

listIterator

public IIndexFolderIterator listIterator(int index)
Returns an iterator for the list starting at position index.

Parameters:
index - position to start for iterator
Returns:
index folder iterator

contains

public boolean contains(IIndexFolder indexFolder)
Checks if an equal index folder is in the list.

Parameters:
indexFolder - index folder for that the existence has to be tested in the list
Returns:
true if index folder is in the list

getRidList

public IRidList getRidList()
Get the RidList attribute of the IIndexFolderList object.

Returns:
The RidList value

get

public IIndexFolder get(RID indexFolderRid)
Returns the index folder with the specified RID.

Parameters:
indexFolderRid - rid for index folder to get
Returns:
requested index folder, if folder isnt attached to the index null is returned

clear

public void clear()
Clears/initializes the list.


sort

public void sort(Comparator comp)
Sorts the index folder list using the given comparator.

Parameters:
comp -


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.