Library Mobile API Reference for iPad  MicroStrategy 2019
CacheInfo Class Reference

#import <CacheInfo.h>

Inheritance diagram for CacheInfo:
<MSISerializable> <MSTRHandler>

Instance Methods

(NSString *) - cacheSetPath
 
(NSString *) - cachePath:
 
(NSString *) - cachePath:createDirectory:
 
(NSString *) - cachePath:createDirectory:locked:
 
(NSString *) - cachePath:inDirectory:createDirectory:
 
(NSString *) - cachePath:inDirectory:createDirectory:locked:
 
(BOOL) - cacheExistsOnDisk:
 
(BOOL) - isSpecial
 
(NSDate *) - lastTimeRead:
 
(void) - updateLastTimeRead:
 
(void) - populate:
 
(NSString *) - getXML
 
(void) - initializeCreationTime:
 
(void) - mergeDataFromUpdatedFolder
 
(BOOL) - isCacheInvalid
 
(BOOL) - isCacheManipulated
 
(void) - markCacheInvalid
 
(void) - markCacheManipulated
 
(BOOL) - isCacheInfoPointToSameFileAs:
 
- Instance Methods inherited from <MSISerializable>
(void) - loadFromXML:elementName:attributes:support:context:
 
(void) - buildXML:
 
- Instance Methods inherited from <MSTRHandler>
(void) - doStartElement:namespaceURI:attributes:level:support:
 
(void) - doEndElement:namespaceURI:level:support:
 

Class Methods

(BOOL) + isCacheInvalid:
 
(BOOL) + isCacheManipulated:
 
(NSInteger) + invalidStatusForDeletion
 

Properties

NSString * serverID
 
NSString * serverCacheID
 

Method Documentation

◆ cacheExistsOnDisk:()

- (BOOL) cacheExistsOnDisk: (CacheIDMap *)  cacheIDMap

◆ cachePath:()

- (NSString*) cachePath: (CacheIDMap *)  cacheIDMap

◆ cachePath:createDirectory:()

- (NSString*) cachePath: (CacheIDMap *)  cacheIDMap
createDirectory: (BOOL)  create 

◆ cachePath:createDirectory:locked:()

- (NSString*) cachePath: (CacheIDMap *)  cacheIDMap
createDirectory: (BOOL)  create
locked: (BOOL)  locked 

◆ cachePath:inDirectory:createDirectory:()

- (NSString*) cachePath: (CacheIDMap *)  cacheIDMap
inDirectory: (NSString *)  cacheDir
createDirectory: (BOOL)  create 

◆ cachePath:inDirectory:createDirectory:locked:()

- (NSString*) cachePath: (CacheIDMap *)  cacheIDMap
inDirectory: (NSString *)  cacheDir
createDirectory: (BOOL)  create
locked: (BOOL)  locked 

◆ cacheSetPath()

- (NSString*) cacheSetPath

◆ getXML()

- (NSString*) getXML

◆ initializeCreationTime:()

- (void) initializeCreationTime: (CacheIDMap *)  ownerMap

◆ invalidStatusForDeletion()

+ (NSInteger) invalidStatusForDeletion

Get invalid status integer for delete report store

Returns
The status in integer number

◆ isCacheInfoPointToSameFileAs:()

- (BOOL) isCacheInfoPointToSameFileAs: (CacheInfo *)  cacheInfo

Check if the instance points to the same cache file as input cacheInfo

Parameters
cacheInfoto be compared
Returns
If the instance points to the same cache file

◆ isCacheInvalid()

- (BOOL) isCacheInvalid

Check if current instance is invalid status

Returns
Bool indicate if cache status is invalid or manipulated

◆ isCacheInvalid:()

+ (BOOL) isCacheInvalid: (NSInteger)  status

Check if a integer status is invalid

Parameters
statusstatus Input status
Returns
Bool to tell whether cache is invalid or manipulated

◆ isCacheManipulated()

- (BOOL) isCacheManipulated

Check if current instance is manipulated status

Returns
Bool indicate if cache status is manipulated

◆ isCacheManipulated:()

+ (BOOL) isCacheManipulated: (NSInteger)  status

Check if a integer status is manipulated (not reusable)

Parameters
statusstatus Input status
Returns
Bool to tell whether cache is manipulated

◆ isSpecial()

- (BOOL) isSpecial

◆ lastTimeRead:()

- (NSDate*) lastTimeRead: (CacheIDMap *)  ownerMap

◆ markCacheInvalid()

- (void) markCacheInvalid

Mark cache invalid

◆ markCacheManipulated()

- (void) markCacheManipulated

Mark cache after manipulation or reset to indicate it is not reusable

◆ mergeDataFromUpdatedFolder()

- (void) mergeDataFromUpdatedFolder

◆ populate:()

- (void) populate: (NSData *)  data

◆ updateLastTimeRead:()

- (void) updateLastTimeRead: (CacheIDMap *)  ownerMap

Property Documentation

◆ serverCacheID

- (NSString*) serverCacheID
readwritenonatomiccopy

◆ serverID

- (NSString*) serverID
readwritenonatomiccopy