bundles/org.eclipse.orion.client.ui/web/orion/sites/siteClient.js
function SiteClient(serviceRegistry, siteService, siteServiceRef) {
		this._serviceRegistry = serviceRegistry;
		this._siteService = siteService;
		this._selfHost = siteServiceRef.getProperty('canSelfHost'); //$NON-NLS-0$
		this._selfHostConfig = siteServiceRef.getProperty('selfHostingConfig'); //$NON-NLS-0$
		this._sitePattern = siteServiceRef.getProperty('sitePattern'); //$NON-NLS-0$
		this._filePattern = siteServiceRef.getProperty('filePattern'); //$NON-NLS-0$
		this._name = siteServiceRef.getProperty('name'); //$NON-NLS-0$
		this._id = siteServiceRef.getProperty('id'); //$NON-NLS-0$

		this._getService = function() {
			return this._siteService;
		};
		this._getFilePattern = function() {
			return this._filePattern;
		};
		this._getFileClient = function() {
			return getFileClient(this._serviceRegistry, this._getFilePattern());
		};
		this._canSelfHost = function() {
			return this._selfHost;
		};
	}
function SiteClient(serviceRegistry, siteService, siteServiceRef) {
		this._serviceRegistry = serviceRegistry;
		this._siteService = siteService;
		this._selfHost = siteServiceRef.getProperty('canSelfHost'); //$NON-NLS-0$
		this._selfHostConfig = siteServiceRef.getProperty('selfHostingConfig'); //$NON-NLS-0$
		this._sitePattern = siteServiceRef.getProperty('sitePattern'); //$NON-NLS-0$
		this._filePattern = siteServiceRef.getProperty('filePattern'); //$NON-NLS-0$
		this._name = siteServiceRef.getProperty('name'); //$NON-NLS-0$
		this._id = siteServiceRef.getProperty('id'); //$NON-NLS-0$

		this._getService = function() {
			return this._siteService;
		};
		this._getFilePattern = function() {
			return this._filePattern;
		};
		this._getFileClient = function() {
			return getFileClient(this._serviceRegistry, this._getFilePattern());
		};
		this._canSelfHost = function() {
			return this._selfHost;
		};
	}
function SiteClient ( serviceRegistry , siteService , siteServiceRef ) { this . _serviceRegistry = serviceRegistry ; this . _siteService = siteService ; this . _selfHost = siteServiceRef . getProperty ( 'canSelfHost' ) ; //$NON-NLS-0$ this . _selfHostConfig = siteServiceRef . getProperty ( 'selfHostingConfig' ) ; //$NON-NLS-0$ this . _sitePattern = siteServiceRef . getProperty ( 'sitePattern' ) ; //$NON-NLS-0$ this . _filePattern = siteServiceRef . getProperty ( 'filePattern' ) ; //$NON-NLS-0$ this . _name = siteServiceRef . getProperty ( 'name' ) ; //$NON-NLS-0$ this . _id = siteServiceRef . getProperty ( 'id' ) ; //$NON-NLS-0$ this . _getService = function ( ) { return this . _siteService ; } ; this . _getFilePattern = function ( ) { return this . _filePattern ; } ; this . _getFileClient = function ( ) { return getFileClient ( this . _serviceRegistry , this . _getFilePattern ( ) ) ; } ; this . _canSelfHost = function ( ) { return this . _selfHost ; } ; }
Constructs a new SiteClient.
@name orion.sites.SiteClient
@extends orion.sites.SiteService
@class Convenience API for interacting with a particular {@link orion.sites.SiteService}.
@param {orion.serviceregistry.ServiceRegistry} serviceRegistry
@param {orion.serviceregistry.Service} siteService
@param {orion.serviceregistry.ServiceReference} siteServiceRef
Constructs a new SiteClient .