An Instance of this class resource represents a group within the Portal or Organization. The owner is automatically an administrator and is returned in the list of admins. Adminstrators can invite, add to or remove members from a group as well as update or delete the group. The administrator for an organization may also reassign the group to another member of the organization. Group members may leave the group. Authenticated users may apply to join a group.
Public Member Functions | |
(void) | - decodeWithJSON: |
(NSDictionary *) | - encodeToJSON |
(NSOperation *) | - fetchThumbnail |
(NSOperation *) | - fetchUsers |
(id) | - initWithJSON: |
Properties | |
AGSPortalAccess | access |
NSArray * | admins |
NSDate * | created |
id< AGSPortalGroupDelegate > | delegate |
NSString * | groupDescription |
NSString * | groupId |
BOOL | isInvitationOnly |
NSDate * | modified |
NSString * | owner |
AGSPortal * | portal |
NSString * | snippet |
NSArray * | tags |
UIImage * | thumbnail |
NSString * | thumbnailFileName |
NSString * | title |
NSArray * | users |
- (void) decodeWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Decode object from JSON representation.
json | The JSON representation of the object to be decoded. |
- (NSDictionary *) encodeToJSON | [optional, inherited] |
Encode and return JSON representation for object.
- (NSOperation*) fetchThumbnail |
Kicks off an operation to fetch a thumbnail image for the group. The corresponding methods on AGSPortalGroupDelegate
are invoked when the operation completes successfully or encounters an error.
- (NSOperation*) fetchUsers |
Fetches the users and admins of the group. When completed, the admins and users properties will have requested information. The corresponding methods on AGSPortalGroupDelegate
are invoked when the operation completes successfully or encounters an error.
- (id) initWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Initialize and return object from JSON representation.
json | The JSON representation of the object to be created. |
Reimplemented in AGSWebMapFeatureCollection.
- (AGSPortalAccess) access [read, assign] |
Determines who can access the group's conent. Can be either AGSPortalAccessPrivate
, AGSPortalAccessOrganization
, or AGSPortalAccessPublic
.
AGSPortalAccessPrivate
implies only members of the group have access. AGSPortalAccessOrganization
implies all members of the organization have access regardless of whether they are members of the group. AGSPortalAccessPublic
implies everyone has access.
- (NSArray*) admins [read, retain] |
Array of strings representing admin users of the group. These need to be fetched explicitly using fetchUsers
- (NSDate*) created [read, retain] |
The date on which the group was created.
- (id<AGSPortalGroupDelegate>) delegate [read, write, assign] |
The delegate for the portal group operations.
- (NSString*) groupDescription [read, retain] |
The description of the group, if exists.
- (NSString*) groupId [read, retain] |
Id of the group.
- (BOOL) isInvitationOnly [read, assign] |
If YES, this group will not accept join requests. Else, this group does not require an invitation to join. Only group owners and admins can invite users to the group.
- (NSDate*) modified [read, retain] |
The date on which the group was modified.
- (NSString*) owner [read, retain] |
The user who created the group.
- (AGSPortal*) portal [read, retain] |
The portal that the group belongs to.
- (NSString*) snippet [read, retain] |
Snippet or summary of the group with a character limit of 250 characters.
- (NSArray*) tags [read, retain] |
Words or short phrases that describe the group.
- (UIImage*) thumbnail [read, retain] |
The thumbnail image file. This needs to be fetched explicitly using fetchThumbnail
- (NSString*) thumbnailFileName [read, retain] |
The name of the thumbnail image of the group.
- (NSString*) title [read, retain] |
The group title.
- (NSArray*) users [read, retain] |
Array of strings representing users of the group. These need to be fetched explicitly using fetchUsers