|
Mobile API Reference
MicroStrategy 2019
|
#import <WebServerList.h>
Instance Methods | |
| (void) | - add: |
| (WebServerConfiguration *) | - getWebServer: |
| (void) | - remove: |
| (NSUInteger) | - size |
| (NSInteger) | - indexOfWebServer: |
| (MSIProjectConfiguration *) | - getProjectConfiguration: |
| (MSIProjectConfiguration *) | - getProjectConfigurationByProjectID: |
| (MSIProjectConfiguration *) | - getProjectConfigurationByProjectName: |
| (WebServerConfiguration *) | - getWebServerConfiguration: |
| (void) | - clear |
| (BOOL) | - hasProjects |
Class Methods | |
| (WebServerConfiguration *) | + newWebServerConfiguration |
A WebServerList holds all of the connection info for the web servers and their projects. This info is often set from a ConnectionInfo.plist file. It can be set programmatically as well.
| - (void) add: | (WebServerConfiguration *) | webserver |
Use this method to add new webserver to the configuration.
| webServer | new webServer |
| NSInvalidArgumentException | if the webserver is nil |
| - (void) clear |
Use this method to remove all the webservers
| - (MSIProjectConfiguration*) getProjectConfiguration: | (MSIProjectInfo *) | project |
Use this method to get the ProjectConfiguration from the ProjectInfo object. If it is not found, returns nil.
| - (MSIProjectConfiguration*) getProjectConfigurationByProjectID: | (NSString *) | projectID |
Use this method to get the ProjectConfiguration from the ProjectID. If it is not found, returns nil.
| - (MSIProjectConfiguration*) getProjectConfigurationByProjectName: | (NSString *) | projectName |
Use this method to get the ProjectConfiguration from the ProjectName. If it is not found, returns nil.
| - (WebServerConfiguration*) getWebServer: | (NSInteger) | index |
Use this method to get the webServer at index. If the index is < 0 or beyond the last webserver, an exception is thrown.
| index | index of the webserver needed |
| NSRangeException | if the index is out of range |
| - (WebServerConfiguration*) getWebServerConfiguration: | (WebServerInfo *) | server |
Use this method to get the WebServerConfiguration from the WebServerInfo object. If it is not found, returns nil.
| - (BOOL) hasProjects |
Use this method to check whether any projects are available
| - (NSInteger) indexOfWebServer: | (WebServerConfiguration *) | webserver |
Use this method to get the index of particular webServer. If it is not found, returns NSNotFound.
| webserver | webServer |
| + (WebServerConfiguration *) newWebServerConfiguration |
Use this method to get new web server configuration
| - (void) remove: | (NSInteger) | index |
Use this method to remove webserver
| index | index of the webserver to be removed. If the index is < 0 or beyond the last webserver, an exception is thrown. |
| NSRangeException | if index is out of range |
| - (NSUInteger) size |
Use this method to get the count of the webservers