AlfrescoFavoritesCache Class Reference
Inherits from | NSObject |
Declared in | AlfrescoFavoritesCache.h |
Tasks
-
– buildCacheWithDelegate:completionBlock:
Build the cache.
-
– cacheNode:favorite:
Caches the given node with given flag. If the node already exists in the cache it’s favortie state will be updated otherwise the node is added to the cache with the given state.
-
– isNodeFavorited:
Determines whether the given node has been favorited. If the node is in the cache an NSNumber object is returned representing the state, if nil is returned the node is not known to the cache.
-
– clear
clears all entries in the cache.
Instance Methods
buildCacheWithDelegate:completionBlock:
Build the cache.
- (AlfrescoRequest *)buildCacheWithDelegate:(id<AlfrescoFavoritesCacheDataDelegate>)delegate completionBlock:(AlfrescoBOOLCompletionBlock)completionBlock
Discussion
Build the cache.
Declared In
AlfrescoFavoritesCache.h
cacheNode:favorite:
Caches the given node with given flag. If the node already exists in the cache it’s favortie state will be updated otherwise the node is added to the cache with the given state.
- (void)cacheNode:(AlfrescoNode *)node favorite:(BOOL)favorite
Discussion
Caches the given node with given flag. If the node already exists in the cache it’s favortie state will be updated otherwise the node is added to the cache with the given state.
Declared In
AlfrescoFavoritesCache.h
clear
clears all entries in the cache.
- (void)clear
Discussion
clears all entries in the cache.
Declared In
AlfrescoFavoritesCache.h
isNodeFavorited:
Determines whether the given node has been favorited. If the node is in the cache an NSNumber object is returned representing the state, if nil is returned the node is not known to the cache.
- (NSNumber *)isNodeFavorited:(AlfrescoNode *)node
Discussion
Determines whether the given node has been favorited. If the node is in the cache an NSNumber object is returned representing the state, if nil is returned the node is not known to the cache.
Declared In
AlfrescoFavoritesCache.h