Untitled

                Never    
var PartnerPortalRedirectionAjax = Class.create();
PartnerPortalRedirectionAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {
	_log: Object,
	_redirectionLogic: Object,
	_json: Object,

	_initialize: function() {
		this._log = new PartnerPortalLogger();
		this._redirectionLogic = new PartnerPortalRedirection();
		this._json = new JSON();
	},

	/*
	 * Method to act as passthrough between the UI script and Script include for Redirection
	 *
	 * @param {sysparm} path The url the user is trying to access
	 * @return {answer} Encoded Json object with the format { needRedirect : {Boolean}}, redirectTo : {String} }
	 */
	execute: function() {
		this._initialize();
		this._log.redirection('SI', this.type, 'execute begin with', this.getParameter('sysparm_path_value'));

		var result;
		var path = GlideSecurityUtils.escapeScript(this.getParameter('sysparm_path_value'));
		var userId = gs.getUserID();

		if (JSUtil.nil(path)) {
			this._log.warning('SI', this.type, 'execute there is no path supplied!');
		} else {
			this._log.redirection('SI', this.type, 'execute process for path and user', path, userId);
			result = this._json.encode(this._redirectionLogic.execute(path, userId));
		}

		this._log.redirection('SI', this.type, 'execute end with', result);
		return result;
	},

	isPublic: function() {
		return false;
	},

	type: 'PartnerPortalRedirectionAjax'
});

Raw Text