Class Index | File Index

Classes


Class eclipse.sites.SiteService

Defines and implements a service that provides access to the server API for managing site configurations.
Defined in: </shared/eclipse/e4/orion/I201105191253/plugins/org.eclipse.orion.client.core/static/js/sites/siteService.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
eclipse.sites.SiteService(serviceRegistry)
Constructs a new SiteService.
Method Summary
Method Attributes Method Name and Description
 
createSiteConfiguration(name, workspace, mappings, hostHint)
Creates a site configuration.
 
Deletes a site configuration.
 
Retrieves all site configurations defined by the logged-in user.
 
Loads an individual site configuration from the given location.
<inner>  
SiteService(serviceRegistry)
 
updateSiteConfiguration(locationUrl, updatedSiteConfig)
Edits an existing site configuration.
Class Detail
eclipse.sites.SiteService(serviceRegistry)
Constructs a new SiteService.
Parameters:
{eclipse.ServiceRegistry} serviceRegistry
The service registry to register ourself with.
Requires:
auth.js
Method Detail
{dojo.Deferred} createSiteConfiguration(name, workspace, mappings, hostHint)
Creates a site configuration.
Parameters:
{String} name
{String} workspace
{Array} mappings Optional
{String} hostHint Optional
Returns:
{dojo.Deferred} A deferred for the result. Will be resolved with the created eclipse.sites.SiteConfiguration on success.

{dojo.Deferred} deleteSiteConfiguration(locationUrl)
Deletes a site configuration.
Parameters:
{String} locationUrl
Location of the site configuration resource to be deleted.
Returns:
{dojo.Deferred} A deferred for the result. Will be resolved with no argument on success.

{dojo.Deferred} getSiteConfigurations()
Retrieves all site configurations defined by the logged-in user.
Returns:
{dojo.Deferred} A deferred for the result. Will be resolved with the argument Array on success, where each element of the array is a eclipse.sites.SiteConfiguration.

{dojo.Deferred} loadSiteConfiguration(Location)
Loads an individual site configuration from the given location.
Parameters:
{String} Location
URL of a site configuration resource.
Returns:
{dojo.Deferred} A deferred for the result. Will be resolved with the loaded eclipse.sites.SiteConfiguration on success.

<inner> SiteService(serviceRegistry)
Parameters:
serviceRegistry

{dojo.Deferred} updateSiteConfiguration(locationUrl, updatedSiteConfig)
Edits an existing site configuration.
Parameters:
{String} locationUrl
Location of the site configuration resource to be updated.
{eclipse.sites.SiteConfiguration} updatedSiteConfig
A representation of the updated site. Properties that are not changing may be omitted.
Returns:
{dojo.Deferred} A deferred for the result. Will be resolved with the updated eclipse.sites.SiteConfiguration on success.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 12:56:14 GMT-0400 (EDT)