var UserSessionService=function() {
UserSessionService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
UserSessionService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return UserSessionService._staticInstance.get_path();},
LogOutUser:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'LogOutUser',false,{},succeededCallback,failedCallback,userContext); },
ValidateLogin:function(token,login_name,password,succeededCallback, failedCallback, userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="login_name" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ValidateLogin',false,{token:token,login_name:login_name,password:password},succeededCallback,failedCallback,userContext); },
RetrieveAccessRights:function(token,succeededCallback, failedCallback, userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RetrieveAccessRights',false,{token:token},succeededCallback,failedCallback,userContext); },
IsAccessAllowedFromIP:function(token,application,succeededCallback, failedCallback, userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="application" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'IsAccessAllowedFromIP',false,{token:token,application:application},succeededCallback,failedCallback,userContext); }}
UserSessionService.registerClass('UserSessionService',Sys.Net.WebServiceProxy);
UserSessionService._staticInstance = new UserSessionService();
UserSessionService.set_path = function(value) {
UserSessionService._staticInstance.set_path(value); }
UserSessionService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return UserSessionService._staticInstance.get_path();}
UserSessionService.set_timeout = function(value) {
UserSessionService._staticInstance.set_timeout(value); }
UserSessionService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return UserSessionService._staticInstance.get_timeout(); }
UserSessionService.set_defaultUserContext = function(value) { 
UserSessionService._staticInstance.set_defaultUserContext(value); }
UserSessionService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return UserSessionService._staticInstance.get_defaultUserContext(); }
UserSessionService.set_defaultSucceededCallback = function(value) { 
 UserSessionService._staticInstance.set_defaultSucceededCallback(value); }
UserSessionService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return UserSessionService._staticInstance.get_defaultSucceededCallback(); }
UserSessionService.set_defaultFailedCallback = function(value) { 
UserSessionService._staticInstance.set_defaultFailedCallback(value); }
UserSessionService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return UserSessionService._staticInstance.get_defaultFailedCallback(); }
UserSessionService.set_path("/Services/UserSessionService.asmx");
UserSessionService.LogOutUser= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
UserSessionService._staticInstance.LogOutUser(onSuccess,onFailed,userContext); }
UserSessionService.ValidateLogin= function(token,login_name,password,onSuccess,onFailed,userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="login_name" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
UserSessionService._staticInstance.ValidateLogin(token,login_name,password,onSuccess,onFailed,userContext); }
UserSessionService.RetrieveAccessRights= function(token,onSuccess,onFailed,userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
UserSessionService._staticInstance.RetrieveAccessRights(token,onSuccess,onFailed,userContext); }
UserSessionService.IsAccessAllowedFromIP= function(token,application,onSuccess,onFailed,userContext) {
/// <param name="token" type="String">System.String</param>
/// <param name="application" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
UserSessionService._staticInstance.IsAccessAllowedFromIP(token,application,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(UserClientSession) === 'undefined') {
var UserClientSession=gtc("UserClientSession");
UserClientSession.registerClass('UserClientSession');
}

