27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSItem.h>
29 #import <ArcGIS/AGSLoadable.h>
30 #import <ArcGIS/AGSJSONSerializable.h>
31 #import <ArcGIS/AGSPortalTypes.h>
32 #import <ArcGIS/AGSCancelable.h>
96 #pragma mark initializers
113 -(instancetype)initWithPortal:(
AGSPortal*)portal itemID:(NSString*)itemID;
128 +(instancetype)portalItemWithPortal:(
AGSPortal*)portal itemID:(NSString*)itemID;
173 -(nullable instancetype)initWithURL:(NSURL*)URL;
193 +(nullable instancetype)portalItemWithURL:(NSURL*)URL;
196 #pragma mark properties
206 @property (nullable, nonatomic, strong, readonly) NSURL *
serviceURL;
211 @property (nonatomic, copy, readonly) NSString *
folderID;
216 @property (nonatomic, copy, readwrite) NSString *
owner;
226 @property (nonatomic, copy, readonly) NSString *
typeName;
231 @property (nullable, nonatomic, strong, readonly) NSLocale *
locale;
236 @property (nonatomic, assign, readonly)
long long size;
257 @property (nonatomic, assign, readonly) NSInteger
viewCount;
271 @property (nullable, nonatomic, copy, readonly) NSArray<AGSPortalItemComment*> *
comments;
290 @property (nullable, nonatomic, copy, readonly) NSArray<AGSPortalGroup*> *
adminGroups;
296 @property (nullable, nonatomic, copy, readonly) NSArray<AGSPortalGroup*> *
memberGroups;
303 @property (nullable, nonatomic, copy, readonly) NSArray<AGSPortalGroup*> *
otherGroups;
336 completion:(
void(^)(NSArray<
AGSPortalItem *> * __nullable result, NSError * __nullable error))completion;
347 - (id<
AGSCancelable>)fetchRelatedItemsWithRelationships:(NSArray<NSValue *> *)relationships
349 completion:(
void(^)(NSArray<
AGSPortalItem *> * __nullable result, NSError * __nullable error))completion;
363 -(id<
AGSCancelable>)addRating:(CGFloat)rating completion:(nullable
void(^)(NSError * __nullable error))completion;
372 -(id<
AGSCancelable>)addComment:(NSString*)comment completion:(nullable
void(^)(
AGSPortalItemComment * __nullable resultComment, NSError * __nullable error))completion;
384 -(id<
AGSCancelable>)updateDataWithJSON:(
id)json completion:(nullable
void(^)(NSError * __nullable error))completion;
396 -(id<
AGSCancelable>)updateData:(NSData*)data completion:(nullable
void(^)(NSError * __nullable error))completion;
412 -(id<
AGSCancelable>)shareWithEveryone:(BOOL)everyone org:(BOOL)org completion:(nullable
void(^)(NSError * __nullable error))completion;
435 -(id<
AGSCancelable>)unshareWithCompletion:(nullable
void(^)(NSError * __nullable error))completion;
454 -(__nullable id)toJSON:(NSError**)error;
467 -(instancetype)initWithPortal:(
AGSPortal *)portal ;
476 +(instancetype)portalItemWithPortal:(
AGSPortal *)portal ;
482 @property (nonatomic, copy, readwrite) NSString *accessAndUseConstraintsHtml ;
488 @property (nonatomic, copy, readonly) NSString *GUID __deprecated;
AGSPortalItemRelationshipDirection
Definition: AGSPortalItem.h:72
@ AGSPortalItemRelationshipDirectionReverse
Definition: AGSPortalItem.h:74
@ AGSPortalItemRelationshipDirectionForward
Definition: AGSPortalItem.h:73
AGSPortalItemRelationship
Definition: AGSPortalItem.h:40
@ AGSPortalItemRelationshipWMAToCode
Definition: AGSPortalItem.h:42
@ AGSPortalItemRelationshipStyleToStyle
Definition: AGSPortalItem.h:51
@ AGSPortalItemRelationshipServiceToData
Definition: AGSPortalItem.h:45
@ AGSPortalItemRelationshipWorkforceMapToFeatureService
Definition: AGSPortalItem.h:62
@ AGSPortalItemRelationshipTrackViewToMap
Definition: AGSPortalItem.h:60
@ AGSPortalItemRelationshipAreaToPackage
Definition: AGSPortalItem.h:56
@ AGSPortalItemRelationshipWebStyleToDesktopStyle
Definition: AGSPortalItem.h:64
@ AGSPortalItemRelationshipSurveyToData
Definition: AGSPortalItem.h:54
@ AGSPortalItemRelationshipAreaToCustomPackage
Definition: AGSPortalItem.h:59
@ AGSPortalItemRelationshipMapToFeatureCollection
Definition: AGSPortalItem.h:43
@ AGSPortalItemRelationshipServiceToLayer
Definition: AGSPortalItem.h:58
@ AGSPortalItemRelationshipItemToReport
Definition: AGSPortalItem.h:49
@ AGSPortalItemRelationshipThemeToStory
Definition: AGSPortalItem.h:63
@ AGSPortalItemRelationshipListedToProvisioned
Definition: AGSPortalItem.h:50
@ AGSPortalItemRelationshipSolutionToItem
Definition: AGSPortalItem.h:65
@ AGSPortalItemRelationshipServiceToService
Definition: AGSPortalItem.h:46
@ AGSPortalItemRelationshipSurveyToService
Definition: AGSPortalItem.h:53
@ AGSPortalItemRelationshipMapToArea
Definition: AGSPortalItem.h:57
@ AGSPortalItemRelationshipMobileAppToCode
Definition: AGSPortalItem.h:44
@ AGSPortalItemRelationshipMapToAppConfig
Definition: AGSPortalItem.h:47
@ AGSPortalItemRelationshipSurveyAddInToData
Definition: AGSPortalItem.h:61
@ AGSPortalItemRelationshipServiceToRoute
Definition: AGSPortalItem.h:55
@ AGSPortalItemRelationshipMapToService
Definition: AGSPortalItem.h:41
@ AGSPortalItemRelationshipItemToAttachment
Definition: AGSPortalItem.h:48
@ AGSPortalItemRelationshipAPIKeyToItem
Definition: AGSPortalItem.h:66
@ AGSPortalItemRelationshipServiceToStyle
Definition: AGSPortalItem.h:52
AGSPortalAccess
Definition: AGSPortalTypes.h:269
AGSPortalItemType
Definition: AGSPortalTypes.h:33
Definition: AGSPortalItem.h:458
Definition: AGSPortalItem.h:492
AGSPortalItemRelationship ags_portalItemRelationshipValue()
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
Object representing a unit of content.
Definition: AGSItem.h:43
A value that is loaded asynchronously.
Definition: AGSLoadableValue.h:35
Represents a group within the Portal or Organization.
Definition: AGSPortalGroup.h:64
An object representing a portal for ArcGIS.
Definition: AGSPortal.h:98
Object representing a unit of content in an ArcGIS portal.
Definition: AGSPortalItem.h:93
NSString * typeName
Definition: AGSPortalItem.h:226
AGSPortalItemType type
Definition: AGSPortalItem.h:221
NSArray< AGSPortalGroup * > * otherGroups
Definition: AGSPortalItem.h:303
NSArray< AGSPortalGroup * > * memberGroups
Definition: AGSPortalItem.h:296
NSInteger commentCount
Definition: AGSPortalItem.h:241
NSInteger ratingCount
Definition: AGSPortalItem.h:246
long long size
Definition: AGSPortalItem.h:236
AGSLoadableValue * userRating
Definition: AGSPortalItem.h:284
NSArray< AGSPortalItemComment * > * comments
Definition: AGSPortalItem.h:271
AGSPortal * portal
Definition: AGSPortalItem.h:201
AGSPortalAccess access
Definition: AGSPortalItem.h:266
NSLocale * locale
Definition: AGSPortalItem.h:231
NSString * owner
Definition: AGSPortalItem.h:216
NSURL * serviceURL
Definition: AGSPortalItem.h:206
CGFloat averageRating
Definition: AGSPortalItem.h:251
NSArray< AGSPortalGroup * > * adminGroups
Definition: AGSPortalItem.h:290
NSInteger viewCount
Definition: AGSPortalItem.h:257
BOOL commentsEnabled
Definition: AGSPortalItem.h:276
NSString * folderID
Definition: AGSPortalItem.h:211
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38
A protocol adopted by classes that can load data asynchronously.
Definition: AGSLoadable.h:72