Type.registerNamespace('PebbleLearning.Pebblepad');
PebbleLearning.Pebblepad.AjaxService=function() {
PebbleLearning.Pebblepad.AjaxService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PebbleLearning.Pebblepad.AjaxService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_path();},
getInfo:function(gatewayoid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getInfo',false,{gatewayoid:gatewayoid},succeededCallback,failedCallback,userContext); },
getTree:function(oid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getTree',false,{oid:oid},succeededCallback,failedCallback,userContext); },
clearNotifications:function(oid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'clearNotifications',false,{oid:oid},succeededCallback,failedCallback,userContext); },
setAssetMarked:function(oid,marked,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setAssetMarked',false,{oid:oid,marked:marked},succeededCallback,failedCallback,userContext); },
setGrade:function(portaloid,assetoid,grade,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setGrade',false,{portaloid:portaloid,assetoid:assetoid,grade:grade},succeededCallback,failedCallback,userContext); },
setGatewayGroupPermissions:function(portaloid,groupoid,perms,selected,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setGatewayGroupPermissions',false,{portaloid:portaloid,groupoid:groupoid,perms:perms,selected:selected},succeededCallback,failedCallback,userContext); },
setGatewayType:function(type,groupoid,portaloid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setGatewayType',false,{type:type,groupoid:groupoid,portaloid:portaloid},succeededCallback,failedCallback,userContext); },
doUserSearch:function(username,forename,surname,email,groupname,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'doUserSearch',false,{username:username,forename:forename,surname:surname,email:email,groupname:groupname},succeededCallback,failedCallback,userContext); },
getGatewayAssetCount:function(gatewayoid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getGatewayAssetCount',false,{gatewayoid:gatewayoid},succeededCallback,failedCallback,userContext); },
archiveGateway:function(gatewayoid,archivename,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'archiveGateway',false,{gatewayoid:gatewayoid,archivename:archivename},succeededCallback,failedCallback,userContext); },
SingleTurnItInSubmit:function(assetoid,parentoid,isGateway,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SingleTurnItInSubmit',false,{assetoid:assetoid,parentoid:parentoid,isGateway:isGateway},succeededCallback,failedCallback,userContext); },
TurnItInCleanUp:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TurnItInCleanUp',false,{},succeededCallback,failedCallback,userContext); },
submitToTurnItIn:function(gatewayoid,position,isGateway,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'submitToTurnItIn',false,{gatewayoid:gatewayoid,position:position,isGateway:isGateway},succeededCallback,failedCallback,userContext); },
startExport:function(gatewayoid,archivename,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'startExport',false,{gatewayoid:gatewayoid,archivename:archivename},succeededCallback,failedCallback,userContext); },
getExportFailureDetails:function(gatewayoid,archivename,position,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getExportFailureDetails',false,{gatewayoid:gatewayoid,archivename:archivename,position:position},succeededCallback,failedCallback,userContext); },
exportGateway:function(gatewayoid,archivename,position,htmlOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'exportGateway',false,{gatewayoid:gatewayoid,archivename:archivename,position:position,htmlOnly:htmlOnly},succeededCallback,failedCallback,userContext); },
htmlExport:function(assetoid,htmlOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'htmlExport',false,{assetoid:assetoid,htmlOnly:htmlOnly},succeededCallback,failedCallback,userContext); },
TurnItInHTMLExport:function(assetoid,htmlOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TurnItInHTMLExport',false,{assetoid:assetoid,htmlOnly:htmlOnly},succeededCallback,failedCallback,userContext); },
finishExport:function(gatewayoid,archivename,assets,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'finishExport',false,{gatewayoid:gatewayoid,archivename:archivename,assets:assets},succeededCallback,failedCallback,userContext); },
getTreeCount:function(oid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getTreeCount',false,{oid:oid},succeededCallback,failedCallback,userContext); },
copyObject:function(oid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'copyObject',false,{oid:oid},succeededCallback,failedCallback,userContext); },
endSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'endSession',false,{},succeededCallback,failedCallback,userContext); },
logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'logout',false,{},succeededCallback,failedCallback,userContext); },
setPreference:function(prefName,prefValue,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setPreference',false,{prefName:prefName,prefValue:prefValue},succeededCallback,failedCallback,userContext); },
checkSpelling:function(text,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'checkSpelling',false,{text:text},succeededCallback,failedCallback,userContext); },
getAssetInfo:function(assetoid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getAssetInfo',false,{assetoid:assetoid},succeededCallback,failedCallback,userContext); }}
PebbleLearning.Pebblepad.AjaxService.registerClass('PebbleLearning.Pebblepad.AjaxService',Sys.Net.WebServiceProxy);
PebbleLearning.Pebblepad.AjaxService._staticInstance = new PebbleLearning.Pebblepad.AjaxService();
PebbleLearning.Pebblepad.AjaxService.set_path = function(value) { PebbleLearning.Pebblepad.AjaxService._staticInstance.set_path(value); }
PebbleLearning.Pebblepad.AjaxService.get_path = function() { return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_path(); }
PebbleLearning.Pebblepad.AjaxService.set_timeout = function(value) { PebbleLearning.Pebblepad.AjaxService._staticInstance.set_timeout(value); }
PebbleLearning.Pebblepad.AjaxService.get_timeout = function() { return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_timeout(); }
PebbleLearning.Pebblepad.AjaxService.set_defaultUserContext = function(value) { PebbleLearning.Pebblepad.AjaxService._staticInstance.set_defaultUserContext(value); }
PebbleLearning.Pebblepad.AjaxService.get_defaultUserContext = function() { return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_defaultUserContext(); }
PebbleLearning.Pebblepad.AjaxService.set_defaultSucceededCallback = function(value) { PebbleLearning.Pebblepad.AjaxService._staticInstance.set_defaultSucceededCallback(value); }
PebbleLearning.Pebblepad.AjaxService.get_defaultSucceededCallback = function() { return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_defaultSucceededCallback(); }
PebbleLearning.Pebblepad.AjaxService.set_defaultFailedCallback = function(value) { PebbleLearning.Pebblepad.AjaxService._staticInstance.set_defaultFailedCallback(value); }
PebbleLearning.Pebblepad.AjaxService.get_defaultFailedCallback = function() { return PebbleLearning.Pebblepad.AjaxService._staticInstance.get_defaultFailedCallback(); }
PebbleLearning.Pebblepad.AjaxService.set_path("/kent/ajaxservice.asmx");
PebbleLearning.Pebblepad.AjaxService.getInfo= function(gatewayoid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getInfo(gatewayoid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.getTree= function(oid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getTree(oid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.clearNotifications= function(oid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.clearNotifications(oid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.setAssetMarked= function(oid,marked,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.setAssetMarked(oid,marked,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.setGrade= function(portaloid,assetoid,grade,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.setGrade(portaloid,assetoid,grade,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.setGatewayGroupPermissions= function(portaloid,groupoid,perms,selected,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.setGatewayGroupPermissions(portaloid,groupoid,perms,selected,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.setGatewayType= function(type,groupoid,portaloid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.setGatewayType(type,groupoid,portaloid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.doUserSearch= function(username,forename,surname,email,groupname,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.doUserSearch(username,forename,surname,email,groupname,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.getGatewayAssetCount= function(gatewayoid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getGatewayAssetCount(gatewayoid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.archiveGateway= function(gatewayoid,archivename,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.archiveGateway(gatewayoid,archivename,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.SingleTurnItInSubmit= function(assetoid,parentoid,isGateway,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.SingleTurnItInSubmit(assetoid,parentoid,isGateway,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.TurnItInCleanUp= function(onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.TurnItInCleanUp(onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.submitToTurnItIn= function(gatewayoid,position,isGateway,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.submitToTurnItIn(gatewayoid,position,isGateway,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.startExport= function(gatewayoid,archivename,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.startExport(gatewayoid,archivename,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.getExportFailureDetails= function(gatewayoid,archivename,position,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getExportFailureDetails(gatewayoid,archivename,position,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.exportGateway= function(gatewayoid,archivename,position,htmlOnly,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.exportGateway(gatewayoid,archivename,position,htmlOnly,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.htmlExport= function(assetoid,htmlOnly,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.htmlExport(assetoid,htmlOnly,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.TurnItInHTMLExport= function(assetoid,htmlOnly,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.TurnItInHTMLExport(assetoid,htmlOnly,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.finishExport= function(gatewayoid,archivename,assets,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.finishExport(gatewayoid,archivename,assets,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.getTreeCount= function(oid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getTreeCount(oid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.copyObject= function(oid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.copyObject(oid,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.endSession= function(onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.endSession(onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.logout= function(onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.logout(onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.setPreference= function(prefName,prefValue,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.setPreference(prefName,prefValue,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.checkSpelling= function(text,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.checkSpelling(text,onSuccess,onFailed,userContext); }
PebbleLearning.Pebblepad.AjaxService.getAssetInfo= function(assetoid,onSuccess,onFailed,userContext) {PebbleLearning.Pebblepad.AjaxService._staticInstance.getAssetInfo(assetoid,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('PebbleLearning.Pebblepad.Types');
if (typeof(PebbleLearning.Pebblepad.Types.Asset) === 'undefined') {
PebbleLearning.Pebblepad.Types.Asset=gtc("PebbleLearning.Pebblepad.Types.Asset");
PebbleLearning.Pebblepad.Types.Asset.registerClass('PebbleLearning.Pebblepad.Types.Asset');
}
if (typeof(PebbleLearning.Pebblepad.MisspelledWord) === 'undefined') {
PebbleLearning.Pebblepad.MisspelledWord=gtc("PebbleLearning.Pebblepad.MisspelledWord");
PebbleLearning.Pebblepad.MisspelledWord.registerClass('PebbleLearning.Pebblepad.MisspelledWord');
}
if (typeof(PebbleLearning.Pebblepad.Types.PortalPerms) === 'undefined') {
PebbleLearning.Pebblepad.Types.PortalPerms = function() { throw Error.invalidOperation(); }
PebbleLearning.Pebblepad.Types.PortalPerms.prototype = {none: 0,adminpermissions: 1,manageassets: 2,managegateway: 3,tutorpermissions: 4,addusers: 5,manageresources: 6,publish: 7,view: 8,comment: 9,peerreview: 10,grade: 11,viewarchives: 12,alltutorperms: 13,allownerperms: 14,viewturnitin: 15,gatewayblog: 16,verification: 17,anonymousfeedback: 18,anonymouscontent: 19,viewlockedgrades: 20,anonymouspeerreview: 21,useturnitin: 25,submitownturnitin: 26,AllGatewaySpecificPermissions: 100,viewpeerreview: 101}
PebbleLearning.Pebblepad.Types.PortalPerms.registerEnum('PebbleLearning.Pebblepad.Types.PortalPerms', true);
}

