com.microstrategy.web.objects.WebProjectInstances |
The WebProjectInstances class represents a set of projects which are contained on an
Intelligence Server. It consists of a collection of WebProjectInstance
objects.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final int[] | STATUS_ACTIVE_EXECIDLE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Enumeration<WebProjectInstance> |
elements()
Returns an Enumeration which can be used to step through the collection of
WebProjectInstance objects. | ||||||||||
abstract WebProjectInstances | find(int[] status) | ||||||||||
abstract WebProjectInstance |
get(int index)
Returns the project with the given index from the collection.
| ||||||||||
abstract boolean |
isEmpty()
Returns true if the collection is empty, false if it contains one or more projects.
| ||||||||||
abstract WebProjectInstance | itemByDSSID(String dssId) | ||||||||||
abstract WebProjectInstance |
itemByID(int projectID)
Returns the
WebProjectInstance object with the given project ID. | ||||||||||
abstract WebProjectInstance |
itemByName(String projectName)
Returns the
WebProjectInstance object with the given name. | ||||||||||
abstract WebProjectInstance |
itemByName(String projectName, boolean ignoreCase)
Returns the
WebProjectInstance object with the given name | ||||||||||
abstract int |
size()
Returns the number of projects within the collection.
|
Returns an Enumeration which can be used to step through the collection of
WebProjectInstance
objects.
status | array of EnumDSSXMLProjectStatus to filter by. |
---|
WebProjectInstances
collection containing only projects with the given status values.Returns the project with the given index from the collection.
WebProjectInstance
object contained at the given index in the collection.IndexOutOfBoundsException | Thrown if the index could not be found in the collection. |
---|
Returns true if the collection is empty, false if it contains one or more projects.
dssId | the DSS ID of the project. |
---|
IllegalArgumentException | thrown if no project could be found by the given DSS ID. |
---|
Returns the WebProjectInstance
object with the given project ID.
projectID | The ID of the project according to the Intelligence Server. |
---|
WebProjectInstance
object corresponding to the given project ID.IllegalArgumentException | Thrown if no project identified by the given ID exists. |
---|
Returns the WebProjectInstance
object with the given name. Project name must match
provided name exactly. Case is not ignored
projectName | The name of the project to be returned. |
---|
WebProjectInstance
object corresponding to the given project name.IllegalArgumentException | Thrown if no project identified by the given name exists. |
---|
Returns the WebProjectInstance
object with the given name
projectName | String containing name of project to be returned |
---|---|
ignoreCase | boolean indicating whether the case should be ignored when matching the name of the project instance |
WebProjectInstance
object representing the project with the name providedIllegalArgumentException | |
IllegalArgumentException |
Returns the number of projects within the collection.