/**
 * @author Kalapuc Roman (rkalapuc@gmail.com)
 * @copyright Finport Technologies Inc
 * @since 2006
 * @version 1.0
 */

function wlpAction(_url,_params){
	this.url = _url;
	this.params = new wlpPropertyList(_params);
}

wlpAction.prototype.check = function(){
	return true;
}

/**
 * @author Kalapuc Roman (rkalapuc@gmail.com)
 * @copyright Finport Technologies Inc
 * @since 2006
 * @version 1.0
 */

var wlpActionFactory;

if (!wlp_def("wlpActionFactory")){
	wlpActionFactory = {
		getInstance: function(_type,_url,_params){
			switch(_type){
				case wlpConst.WLP_ACTION_SIMPLE:
					return new wlpSimpleAction(_url,_params);
				case wlpConst.WLP_ACTION_CONFIRM:
					return new wlpConfirmAction(_url,_params);		
				case wlpConst.WLP_ACTION_CONDITIONS_CONFIRM:
					return new wlpConditionsAction(_url,_params);
				case wlpConst.WLP_ACTION_SIMPLE_OPEN:
					return new wlpSimpleOpenAction(_url,_params);
				default: 
					return new wlpBaseAction(_url,_params);
			}
		}
	}
}


