com.microstrategy.web.objects.WebProjectReferences |
The WebProjectReferences interface represents the collection of project references
registered with a server definition(WebServerDef
) object. This interface can
be used to add, remove, view, and modify the collection of project references.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebProjectReference |
add(WebProjectInstance projectInst)
Adds the given project instance to the list of projects registered to the
server definition.
| ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration object containing the items in the collection.
| ||||||||||
abstract WebProjectReference |
get(int i)
Returns the item in the collection with the given index.
| ||||||||||
abstract boolean |
isEmpty()
Returns whether the collection is empty.
| ||||||||||
abstract WebProjectReference |
itemByID(String id)
Returns the
WebProjectReference object in the collection with the given project ID. | ||||||||||
abstract WebProjectReference |
itemByName(String name)
Returns the item in the collection with the given name, if one exists.
| ||||||||||
abstract void |
remove(WebProjectReference projectRef)
Removes the given
WebProjectReference object from the collection. | ||||||||||
abstract int |
size()
Returns the number of items in the collection.
|
Adds the given project instance to the list of projects registered to the server definition.
projectInst | The WebProjectInstance object to add to the collection.
This object should come from one of the methods on the WebProjectSource interface. |
---|
WebProjectReference
object.
Returns a java.util.Enumeration object containing the items in the collection.
Returns the item in the collection with the given index.
i | The 0-based index of the item in the collection to return. |
---|
WebProjectReference
object at the given index.IndexOutOfBoundsException | Thrown if the index does not exist in the collection. |
---|
Returns whether the collection is empty.
Returns the WebProjectReference
object in the collection with the given project ID.
id | The ID of the project to search for in the collection. |
---|
WebProjectReference
object with the given ID.IllegalArgumentException | Thrown if no object exists in the collection with the given ID. |
---|
Returns the item in the collection with the given name, if one exists.
name | The name of the project reference to return. |
---|
WebProjectReference
object with the given name.IllegalArgumentException | Thrown if the given name does not exist in the collection. |
---|
Removes the given WebProjectReference
object from the collection. When
saving the object, this will cause the given project to no longer be registered
with the server definition object.
projectRef | The WebProjectReference object to remove from the
collection.
|
---|
Returns the number of items in the collection.