Package com.microstrategy.web.objects
Interface WebProjectInstances
- 
public interface WebProjectInstancesThe WebProjectInstances class represents a set of projects which are contained on an Intelligence Server. It consists of a collection ofWebProjectInstanceobjects.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static int[]STATUS_ACTIVE_EXECIDLE 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Enumeration<WebProjectInstance>elements()Returns an Enumeration which can be used to step through the collection ofWebProjectInstanceobjects.WebProjectInstancesfind(int[] status)WebProjectInstanceget(int index)Returns the project with the given index from the collection.booleanisEmpty()Returns true if the collection is empty, false if it contains one or more projects.WebProjectInstanceitemByDSSID(java.lang.String dssId)WebProjectInstanceitemByID(int projectID)Returns theWebProjectInstanceobject with the given project ID.WebProjectInstanceitemByName(java.lang.String projectName)Returns theWebProjectInstanceobject with the given name.WebProjectInstanceitemByName(java.lang.String projectName, boolean ignoreCase)Returns theWebProjectInstanceobject with the given nameintsize()Returns the number of projects within the collection. 
 - 
 
- 
- 
Method Detail
- 
size
int size()
Returns the number of projects within the collection.- Returns:
 - The size of the project collection.
 
 
- 
isEmpty
boolean isEmpty()
Returns true if the collection is empty, false if it contains one or more projects.- Returns:
 - A boolean value indicating whether the collection is empty.
 
 
- 
get
WebProjectInstance get(int index) throws java.lang.IndexOutOfBoundsException
Returns the project with the given index from the collection.- Returns:
 - A 
WebProjectInstanceobject contained at the given index in the collection. - Throws:
 java.lang.IndexOutOfBoundsException- Thrown if the index could not be found in the collection.
 
- 
elements
java.util.Enumeration<WebProjectInstance> elements()
Returns an Enumeration which can be used to step through the collection ofWebProjectInstanceobjects.- Returns:
 - A java.util.Enumeration which can be used to iterate through the collection.
 
 
- 
itemByID
WebProjectInstance itemByID(int projectID) throws java.lang.IllegalArgumentException
Returns theWebProjectInstanceobject with the given project ID.- Parameters:
 projectID- The ID of the project according to the Intelligence Server.- Returns:
 - A 
WebProjectInstanceobject corresponding to the given project ID. - Throws:
 java.lang.IllegalArgumentException- Thrown if no project identified by the given ID exists.
 
- 
itemByName
WebProjectInstance itemByName(java.lang.String projectName) throws java.lang.IllegalArgumentException
Returns theWebProjectInstanceobject with the given name. Project name must match provided name exactly. Case is not ignored- Parameters:
 projectName- The name of the project to be returned.- Returns:
 - A 
WebProjectInstanceobject corresponding to the given project name. - Throws:
 java.lang.IllegalArgumentException- Thrown if no project identified by the given name exists.
 
- 
itemByDSSID
WebProjectInstance itemByDSSID(java.lang.String dssId) throws java.lang.IllegalArgumentException
- Parameters:
 dssId- the DSS ID of the project.- Returns:
 - the project with the given DSS ID.
 - Throws:
 java.lang.IllegalArgumentException- thrown if no project could be found by the given DSS ID.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
find
WebProjectInstances find(int[] status)
- Parameters:
 status- array ofEnumDSSXMLProjectStatusto filter by.- Returns:
 - a new 
WebProjectInstancescollection containing only projects with the given status values. - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
itemByName
WebProjectInstance itemByName(java.lang.String projectName, boolean ignoreCase) throws java.lang.IllegalArgumentException
Returns theWebProjectInstanceobject with the given name- Parameters:
 projectName-Stringcontaining name of project to be returnedignoreCase- boolean indicating whether the case should be ignored when matching the name of the project instance- Returns:
 WebProjectInstanceobject representing the project with the name provided- Throws:
 java.lang.IllegalArgumentException- Since:
 - MicroStrategy Web 9.0.0
 
 
 - 
 
 -