No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Network Class
Namespace
Network Methods
The following are methods for Network. All methods are static.
communitiesLanding()
Signature
public static String communitiesLanding()
Return Value
Type: PageReference
Usage
If Communities isn’t enabled for the user’s organization or the user is currently in the internal organization, returns null.
forwardToAuthPage(String StartURL)
Signature
public static PageReference forwardToAuthPage(String startURL)
Parameters
- startURL
- Type: String
Return Value
Type: PageReference
Usage
If Communities isn’t enabled for the user’s organization or the user is currently in the internal organization, returns null.
getLoginUrl(String)
getLogoutUrl(String)
Signature
public static String getLogoutUrl(String networkId)
Parameters
- networkId
- Type: String
- The ID of the community you’re retrieving this information for.
Return Value
Type: String
Usage
Returns the full URL for the Force.com page, Community Designer page, or Web page used as the logout page in the community.
getNetworkId()
Signature
public static String getNetworkId()
Return Value
Type: String
Usage
If Communities isn’t enabled for the user’s organization or the user is currently in the internal organization, returns null.
getSelfRegUrl(String)
Signature
public static String getSelfRegUrl(String networkId)
Parameters
- networkId
- Type: String
- The ID of the community you’re retrieving this information for.
Return Value
Type: String
Usage
Returns the full URL for the Force.com or Community Designer page used as the self-registration page in the community.
loadAllPackageDefaultNetworkDashboardSettings()
Signature
public static Integer loadAllPackageDefaultNetworkDashboardSettings()
Return Value
Type: Integer
Usage
If Communities is enabled, and the Communities Analytics package is installed, maps the dashboards provided in the Communities Analytics package onto each community’s unconfigured dashboard settings. Returns the number of settings it configures. This method is invoked automatically during network creation and package installation. Typically, this method doesn’t need to be invoked manually.
If Communities isn’t enabled for the user’s organization or the user is currently in the internal organization, returns 0.