Mobile API Reference
MicroStrategy 2019
|
#import <MSIObjectInfo.h>
Instance Methods | |
(id) | - initWithType: |
(id) | - initWithType:subType: |
(NSComparisonResult) | - compareElementName: |
(NSComparisonResult) | - compareElementID: |
(void) | - handleXml:attributes:support: |
(id< MSTRHandler >) | - getXmlHandler |
(void) | - handleXmlAttributes:attributes: |
(void) | - loadFromXML:attributes: |
(NSString *) | - getXml |
(void) | - buildXml: |
(void) | - buildXml:tagName: |
(void) | - buildTypeSpecificXml: |
(id) | - initWithContents:anID:aDesc:aType:aSubtype:anAbbrev:isShortcut:iconPath: |
(id) | - initWithContents:namedID:aDesc:aType:aSubtype:anAbbrev:isShortcut:iconPath: |
Class Methods | |
(MSIObjectInfo *) | + newObject: |
(ObjectSubTypes) | + subTypeFromType: |
Properties | |
NSString * | objectID |
NSInteger | namedID |
NSString * | name |
NSString * | displayName |
ObjectTypes | type |
NSString * | sta |
ObjectSubTypes | subType |
NSInteger | accessGranted |
NSInteger | viewMedia |
NSInteger | availableViewMedia |
NSString * | desc |
NSString * | abbreviation |
NSString * | iconPath |
NSString * | owner |
BOOL | isShortcut |
NSString * | externalPath |
NSInteger | externalObjectType |
NSDate * | creationDate |
NSDate * | modificationDate |
int | binaryStatus |
MSIObjectInfo * | parentFolder |
NSString * | containerId |
NSString * | containerType |
ObjectInfo is the base class of MicroStrategy object. It contains the object information, methods to serialize and deserialize these information.
- (void) buildTypeSpecificXml: | (XMLBuilder *) | builder |
Write special info of subclass to xml. Subclass should overwrite this method if it has more information.
builder | xml builder |
- (void) buildXml: | (XMLBuilder *) | builder |
Write the object info to xml format. It will add tag for the object depending on the type.
builder | xml builder |
- (void) buildXml: | (XMLBuilder *) | builder | |
tagName: | (NSString *) | tagName | |
Write the object info to xml format. It will add tag for the object.
builder | xml builder |
tagName | xml tag name for the object |
- (NSComparisonResult) compareElementID: | (MSIObjectInfo *) | object |
Compare the object ID with another object. The ID are compared with numeric order, case insensitive.
object | object to be compared |
- (NSComparisonResult) compareElementName: | (MSIObjectInfo *) | object |
Compare the object name with another object. The names are compared with numeric order, case insensitive.
object | object to be compared |
- (NSString*) getXml |
Get the xml string of this object info
- (id<MSTRHandler>) getXmlHandler |
Get the handler which can parse the ObjectInfo xml. Subclass should implement this method to return the appropriate handler if subclass have more content in xml.
- (void) handleXml: | (NSString *) | elementName | |
attributes: | (NSDictionary *) | attributes | |
support: | (SAXSupport *) | support | |
Read the object info from xml
elementName | xml element name |
attributes | attributes of this element |
support | XML SAX parser |
- (void) handleXmlAttributes: | (NSString *) | elementName | |
attributes: | (NSDictionary *) | attributes | |
Read attributes of this element to object info. If subclass has more attributes, it needs to overwrite this method.
elementName | xml element name |
attributes | attributes of this element |
- (id) initWithContents: | (NSString *) | nm | |
anID: | (NSString *) | did | |
aDesc: | (NSString *) | d | |
aType: | (ObjectTypes) | tp | |
aSubtype: | (ObjectSubTypes) | subtp | |
anAbbrev: | (NSString *) | abbr | |
isShortcut: | (BOOL) | shortcut | |
iconPath: | (NSString *) | _iconPath | |
Initializer with object information
- (id) initWithContents: | (NSString *) | nm | |
namedID: | (NSInteger) | _namedID | |
aDesc: | (NSString *) | d | |
aType: | (ObjectTypes) | tp | |
aSubtype: | (ObjectSubTypes) | subtp | |
anAbbrev: | (NSString *) | abbr | |
isShortcut: | (BOOL) | shortcut | |
iconPath: | (NSString *) | _iconPath | |
Intializer with named object information
- (id) initWithType: | (ObjectTypes) | _type |
Initializer a ObjectInfo with type. Subtype will default to 0. If the type doesn't have different subtypes, the subtype will also be initialized.
_type | one of the ObjectTypes in enums.h |
- (id) initWithType: | (ObjectTypes) | _type | |
subType: | (ObjectSubTypes) | _subType | |
- (void) loadFromXML: | (NSString *) | elementName | |
attributes: | (NSDictionary *) | attributes | |
Load attributs of this element to object info. It has the same functionality as handleXMLAttributes.
elementName | xml element name |
attributes | attributes of this element |
+ (MSIObjectInfo*) newObject: | (ObjectTypes) | type |
Static method to create a ObjectInfo
type | object type |
+ (ObjectSubTypes) subTypeFromType: | (ObjectTypes) | type |
Get subtype from type. It only works if the type doesn't have different subtypes, or it returns 0.
type | object type |
object | subtype |
|
readwritenonatomiccopy |
object abbreviation
|
readwriteatomic |
Access right granted on this object for the login user The value can be the combination of AccessRightFlags.
|
readwriteatomic |
|
readwritenonatomicassign |
Binary status. For webdav folder and webdav file
|
readwritenonatomicstrong |
|
readwritenonatomicstrong |
|
readwritenonatomicstrong |
object creation date
|
readwritenonatomiccopy |
object description
|
readwritenonatomiccopy |
object display name
|
readwritenonatomicassign |
|
readwritenonatomiccopy |
path to the resource of the external object
|
readwritenonatomiccopy |
icon path of this object
|
readwritenonatomicassign |
Whether this object is a shortcut.
|
readwritenonatomicstrong |
last modification date
|
readwritenonatomiccopy |
object name
|
readwritenonatomicassign |
|
readwritenonatomiccopy |
ID of this object. It's unique within a MicroStrategy project.
|
readwritenonatomiccopy |
Owner of this object. It's the user's name who created this object.
|
readwritenonatomicstrong |
|
readwritenonatomiccopy |
|
readwriteatomic |
object subtype
|
readwriteatomic |
object type
|
readwriteatomic |
View mode of this object.