Package com.microstrategy.web.objects
Interface WebLinkItems
- 
- All Superinterfaces:
 EditableObject
public interface WebLinkItems extends EditableObject
Represents a collection of individualWebLinkItemobjects.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebLinkItemadd(WebObjectInfo[] keys)adds a newWebLinkItemobject to this collection.voidclear()Resets the collection to be empty.booleancontainsItem(WebObjectInfo[] keys)java.util.Enumerationelements()WebLinkItemsfilter(java.util.List<WebObjectInfo[]> keysList)Filter the link items with keys list.WebLinkItemget(int index)retrives theWebLinkItemfrom this collection based on the indexWebLinkItemget(WebObjectInfo[] keys)retrieves theWebLinkItembased on the specific key.booleanisEmpty()Indicates whether the collection has anyWebLinkItemobjectsvoidload()loads all theWebLinkItemobjects into this collection If there are items already existing in the collection, then the new items are just added.voidload(WebObjectInfo[] keys)loads all theWebLinkItemobjects into this collection for specific key If there are items already existing in the collection, then the new items are just added.voidremove(int index)remove aWebLinkItemat the specific indexvoidremove(WebObjectInfo[] keys)intsize()Returns the size of the collection- 
Methods inherited from interface com.microstrategy.web.objects.EditableObject
delete, save, save 
 - 
 
 - 
 
- 
- 
Method Detail
- 
add
WebLinkItem add(WebObjectInfo[] keys)
adds a newWebLinkItemobject to this collection. If the keys specified in created this item match with an existing item, then only the properties that are explicitly written to will be saved, the others will still use default values- Parameters:
 keys- array withWebObjectInfoobjects corresponding to the types that go into forming that link that this object is a part of- Returns:
 - the newly added 
WebLinkItem 
 
- 
get
WebLinkItem get(int index) throws java.lang.IndexOutOfBoundsException
retrives theWebLinkItemfrom this collection based on the index- Parameters:
 index- valid values are from 0 to size()-1- Returns:
 - the 
WebLinkItemfrom this collection based on the index - Throws:
 java.lang.IndexOutOfBoundsException- if the specified index is out of bounds
 
- 
containsItem
boolean containsItem(WebObjectInfo[] keys)
- Parameters:
 keys- array withWebObjectInfoobjects corresponding to the types that go into forming that link that this object is a part of.- Returns:
 - boolean indicating whether the item identified by the keys exists in the collection
 
 
- 
get
WebLinkItem get(WebObjectInfo[] keys) throws WebObjectsException
retrieves theWebLinkItembased on the specific key. Returns null if this item does not exist in the collection.- Parameters:
 keys- array withWebObjectInfoobjects corresponding to the types that go into forming that link that this object is a part of.- Returns:
 - the 
WebLinkItembased on the specific key - Throws:
 WebObjectsException
 
- 
remove
void remove(int index) throws java.lang.IndexOutOfBoundsExceptionremove aWebLinkItemat the specific index- Parameters:
 index- valid values are from 0 to size()-1- Throws:
 java.lang.IndexOutOfBoundsException
 
- 
clear
void clear()
Resets the collection to be empty. 
- 
isEmpty
boolean isEmpty()
Indicates whether the collection has anyWebLinkItemobjects- Returns:
 - boolean indicating whether the collection has any 
WebLinkItemobjects 
 
- 
size
int size()
Returns the size of the collection- Returns:
 - the size of the collection
 
 
- 
elements
java.util.Enumeration elements()
- Returns:
 - and Enumeration of the 
WebLinkItemobjects 
 
- 
load
void load() throws WebObjectsException
loads all theWebLinkItemobjects into this collection If there are items already existing in the collection, then the new items are just added. The existing items are not overwritten- Throws:
 WebObjectsException- if there an error reading the items from the metadata
 
- 
load
void load(WebObjectInfo[] keys) throws WebObjectsException
loads all theWebLinkItemobjects into this collection for specific key If there are items already existing in the collection, then the new items are just added. The existing items are not overwritten- Parameters:
 keys- array withWebObjectInfoobjects corresponding to the types that go into forming that link that this object is a part of- Throws:
 WebObjectsException
 
- 
remove
void remove(WebObjectInfo[] keys) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
filter
WebLinkItems filter(java.util.List<WebObjectInfo[]> keysList)
Filter the link items with keys list. It will filter the link items in memory without save to metadata. If keys are full formatted, it will filter items with every key provided. If duplicated keys are provided, only one link item will be filtered.- Parameters:
 keysList- You can choose to provide the full format of keys or partial of keys.- Returns:
 
 
 - 
 
 -