AGSPortal Class Reference


Description

AGSPortal is an object that represents a view for a user (anonymous or not) into an organization or portal. www.ArcGIS.com is an example of a portal. A portal may contain sandboxed areas that are accessible only to an organization that owns them.

AGSPortal is the main class and the entry point into the API to work with portals and organizations. It implements all the operations to interface with the backend REST API. It has a delegate AGSPortalDelegate that is informed when each operation completes successfully or encounters an error.

Concepts:

See also:
AGSPortalDelegate
Conceptual Doc: Working With Portals
Sample: Portal Sample
Since:
2.2
Inheritance diagram for AGSPortal:
<AGSSecuredResource>

List of all members.

Public Member Functions

(NSOperation *) - findGroupsWithQueryParams:
(NSOperation *) - findItemsWithQueryParams:
(id) - initWithURL:credential:
(void) - resubmitWithURL:credential:

Properties

AGSCredentialcredential
id< AGSPortalDelegatedelegate
AGSPortalInfoportalInfo
NSURL * URL
AGSPortalUseruser

Member Function Documentation

- (NSOperation*) findGroupsWithQueryParams: (AGSPortalQueryParams *)  queryParams  

Kicks off an operation that finds groups with query. Corresponding methods on the AGSPortalDelegate are invoked when the operation completes successfully or if an error is encountered.

Parameters:
queryParams The query parameters to find groups.
Since:
2.2
- (NSOperation*) findItemsWithQueryParams: (AGSPortalQueryParams *)  queryParams  

Kicks off an operation that finds items with query. Corresponding methods on the AGSPortalDelegate are invoked when the operation completes successfully or if an error is encountered.

Parameters:
queryParams The query parameters to find items.
Since:
2.2
- (id) initWithURL: (NSURL *)  url
credential: (AGSCredential *)  cred 

Instantiates the AGSPortal and initiates a connection to the portal. It will fetch the portal properties and user properties asynchronously and invoke the loaded/failed methods on AGSPortalDelegate. It is recommended you assign a delegate to ensure that the portal loaded properly.

Parameters:
url The url for the portal. Eg, www.arcgis.com
cred The credential of the user. Can be Nil if anonymous access is desired.
Since:
2.2
- (void) resubmitWithURL: (NSURL *)  url
credential: (AGSCredential *)  cred 

If the portal fails to load, you can resubmit it with a different URL and/or credential. This method will do nothing if the portal is already loaded.

Parameters:
url The url for the portal.
cred The credential of the user. Can be Nil if anonymous access is desired.
Since:
2.2

Property Documentation

- (AGSCredential*) credential [read, copy]

The credential of the user for authenticated access. Can be nil, in which case it requests for anonymous access to the portal.

Since:
2.2

Reimplemented from <AGSSecuredResource>.

- (id<AGSPortalDelegate>) delegate [read, write, assign]

The delegate for the portal operations.

Since:
2.2
- (AGSPortalInfo*) portalInfo [read, retain]

Returned upon successful initialization of the portal. Contains details of the portal/organization as seen by the current user, anonymous or logged in.

Since:
2.2
- (NSURL*) URL [read, retain]

The URL of the portal.

Since:
2.2
- (AGSPortalUser*) user [read, retain]

Represents the registered user of the portal/organization and is returned upon successful initialization of the portal with a credential.

Since:
2.2