Type.registerNamespace('CMA.Web');
CMA.Web.CollectionService=function() {
CMA.Web.CollectionService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CMA.Web.CollectionService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CMA.Web.CollectionService._staticInstance.get_path();},
CollectionSearchInfo:function(searchstr,sortorder,sliderindex,pagenumber,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CollectionSearchInfo',false,{searchstr:searchstr,sortorder:sortorder,sliderindex:sliderindex,pagenumber:pagenumber},succeededCallback,failedCallback,userContext); },
PostComment:function(commenttext,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostComment',false,{commenttext:commenttext},succeededCallback,failedCallback,userContext); },
RenderCommentList:function(page,pagesize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RenderCommentList',false,{page:page,pagesize:pagesize},succeededCallback,failedCallback,userContext); },
PostTags:function(tagstext,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostTags',false,{tagstext:tagstext},succeededCallback,failedCallback,userContext); },
GetCollectionSearchInfo:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCollectionSearchInfo',false,{},succeededCallback,failedCallback,userContext); },
ClearCollectionSearchFilters:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearCollectionSearchFilters',false,{},succeededCallback,failedCallback,userContext); }}
CMA.Web.CollectionService.registerClass('CMA.Web.CollectionService',Sys.Net.WebServiceProxy);
CMA.Web.CollectionService._staticInstance = new CMA.Web.CollectionService();
CMA.Web.CollectionService.set_path = function(value) { CMA.Web.CollectionService._staticInstance.set_path(value); }
CMA.Web.CollectionService.get_path = function() { return CMA.Web.CollectionService._staticInstance.get_path(); }
CMA.Web.CollectionService.set_timeout = function(value) { CMA.Web.CollectionService._staticInstance.set_timeout(value); }
CMA.Web.CollectionService.get_timeout = function() { return CMA.Web.CollectionService._staticInstance.get_timeout(); }
CMA.Web.CollectionService.set_defaultUserContext = function(value) { CMA.Web.CollectionService._staticInstance.set_defaultUserContext(value); }
CMA.Web.CollectionService.get_defaultUserContext = function() { return CMA.Web.CollectionService._staticInstance.get_defaultUserContext(); }
CMA.Web.CollectionService.set_defaultSucceededCallback = function(value) { CMA.Web.CollectionService._staticInstance.set_defaultSucceededCallback(value); }
CMA.Web.CollectionService.get_defaultSucceededCallback = function() { return CMA.Web.CollectionService._staticInstance.get_defaultSucceededCallback(); }
CMA.Web.CollectionService.set_defaultFailedCallback = function(value) { CMA.Web.CollectionService._staticInstance.set_defaultFailedCallback(value); }
CMA.Web.CollectionService.get_defaultFailedCallback = function() { return CMA.Web.CollectionService._staticInstance.get_defaultFailedCallback(); }
CMA.Web.CollectionService.set_path("/_webservice/collectionservice.asmx");
CMA.Web.CollectionService.CollectionSearchInfo= function(searchstr,sortorder,sliderindex,pagenumber,onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.CollectionSearchInfo(searchstr,sortorder,sliderindex,pagenumber,onSuccess,onFailed,userContext); }
CMA.Web.CollectionService.PostComment= function(commenttext,onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.PostComment(commenttext,onSuccess,onFailed,userContext); }
CMA.Web.CollectionService.RenderCommentList= function(page,pagesize,onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.RenderCommentList(page,pagesize,onSuccess,onFailed,userContext); }
CMA.Web.CollectionService.PostTags= function(tagstext,onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.PostTags(tagstext,onSuccess,onFailed,userContext); }
CMA.Web.CollectionService.GetCollectionSearchInfo= function(onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.GetCollectionSearchInfo(onSuccess,onFailed,userContext); }
CMA.Web.CollectionService.ClearCollectionSearchFilters= function(onSuccess,onFailed,userContext) {CMA.Web.CollectionService._staticInstance.ClearCollectionSearchFilters(onSuccess,onFailed,userContext); }

