com.sapportals.wcm.service.indexmanagement

Class IndexFolderList

java.lang.Object
  extended bycom.sapportals.wcm.service.indexmanagement.IndexFolderList
All Implemented Interfaces:
IIndexFolderList

public class IndexFolderList
extends Object
implements IIndexFolderList

List of index folders


Constructor Summary
IndexFolderList(IndexFolderList list, String indexId)
          Construct object of class IndexFolderList.
IndexFolderList(String indexId)
          Construct object of class IndexFolderList.
 
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)
          Add All to the IIndexFolderList object.
 void addFirst(IIndexFolder indexFolder)
          Add First to the IIndexFolderList object.
 void addLast(IIndexFolder indexFolder)
          Add Last to the IIndexFolderList object.
 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 IndexFolderList object.
 boolean isEmpty()
          Get the Empty attribute of the IIndexFolderList object.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexFolderList

public IndexFolderList(String indexId)
                throws WcmException
Construct object of class IndexFolderList.

Parameters:
indexId - index where index folder list is in

IndexFolderList

public IndexFolderList(IndexFolderList list,
                       String indexId)
                throws WcmException
Construct object of class IndexFolderList.

Parameters:
list - other index folder list to copy into this list
indexId - index where index folder list is in
Method Detail

isEmpty

public boolean isEmpty()
Get the Empty attribute of the IIndexFolderList object.

Specified by:
isEmpty in interface IIndexFolderList
Returns:
The Empty value

get

public IIndexFolder get(int index)
Description copied from interface: IIndexFolderList
Returns index folder at the requested position.

Specified by:
get in interface IIndexFolderList
Parameters:
index - position in list to get index folder from
Returns:
index folder at the requested position

getRidList

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

Specified by:
getRidList in interface IIndexFolderList
Returns:
The RidList value

size

public int size()
Description copied from interface: IIndexFolderList
Returns the size of the list.

Specified by:
size in interface IIndexFolderList
Returns:
size of the index folder list

getIndexId

public String getIndexId()
Description copied from interface: IIndexFolderList
Returns the index id of the list.

Specified by:
getIndexId in interface IIndexFolderList
Returns:
index id of the index the list is in

add

public boolean add(IIndexFolder indexFolder)
            throws WcmException
Description copied from interface: IIndexFolderList
Adds indexFolder to the list.

Specified by:
add in interface IIndexFolderList
Parameters:
indexFolder - index folder to add to list
Returns:
true if folder has been added successfully
Throws:
WcmException

addAll

public boolean addAll(IIndexFolderList indexFolderList)
               throws WcmException
Add All to the IIndexFolderList object.

Specified by:
addAll in interface IIndexFolderList
Parameters:
indexFolderList - All to be added
Returns:
true if list could be added successfully
Throws:
WcmException

add

public void add(int index,
                IIndexFolder indexFolder)
         throws WcmException
Description copied from interface: IIndexFolderList
Adds the index folder at the specified position.

Specified by:
add in interface IIndexFolderList
Parameters:
index - position where to add the index folder
indexFolder - index folder to add at the position
Throws:
WcmException

addLast

public void addLast(IIndexFolder indexFolder)
             throws WcmException
Add Last to the IIndexFolderList object.

Specified by:
addLast in interface IIndexFolderList
Parameters:
indexFolder - Last to be added
Throws:
WcmException

addFirst

public void addFirst(IIndexFolder indexFolder)
              throws WcmException
Add First to the IIndexFolderList object.

Specified by:
addFirst in interface IIndexFolderList
Parameters:
indexFolder - First to be added
Throws:
WcmException

remove

public IIndexFolder remove(int index)
Description copied from interface: IIndexFolderList
Removes the index folder at position index and returns it.

Specified by:
remove in interface IIndexFolderList
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
Specified by:
remove in interface IIndexFolderList
Throws:
WcmException

listIterator

public IIndexFolderIterator listIterator()
Description copied from interface: IIndexFolderList
Returns an iterator for the list.

Specified by:
listIterator in interface IIndexFolderList
Returns:
index folder iterator

listIterator

public IIndexFolderIterator listIterator(int index)
Description copied from interface: IIndexFolderList
Returns an iterator for the list starting at position index.

Specified by:
listIterator in interface IIndexFolderList
Parameters:
index - position to start for iterator
Returns:
index folder iterator

contains

public boolean contains(IIndexFolder indexFolder)
Description copied from interface: IIndexFolderList
Checks if an equal index folder is in the list.

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

get

public IIndexFolder get(RID indexFolderRid)
Description copied from interface: IIndexFolderList
Returns the index folder with the specified RID.

Specified by:
get in interface IIndexFolderList
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

Specified by:
clear in interface IIndexFolderList

sort

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

Specified by:
sort in interface IIndexFolderList
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.