Sha256: 2da38f7688d28328dbbcb52c66a441e349ec4c5c73b9bc9c8e5c4e1745660c58

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

package org.rsos.openbill.command
{
	/* add to controller
	addCommand( LogoutEvent.EVENT_LOGOUT, LogoutCommand );
	*/
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.controls.Alert;
	import mx.rpc.IResponder;
	import mx.rpc.events.FaultEvent;
	
	import org.rsos.openbill.business.RailsDelegate;
	import org.rsos.openbill.model.OpenbillModelLocator;
	import org.rsos.openbill.vo.UserVO;
	
	import mx.core.Application;

	public class LogoutCommand implements ICommand, IResponder
	{
		public function execute(event:CairngormEvent):void
		{
		    var delegate : RailsDelegate = new RailsDelegate( this )
		 
		    delegate.logout()

		}
		
		public function result(data:Object):void
		{
			var model : OpenbillModelLocator = OpenbillModelLocator.getInstance();
			model.userVO = new UserVO();
			model.askforlogin(Application.application);
		}
		
		public function fault(info:Object):void
		{
			var faultEvent :FaultEvent = FaultEvent( info );
			Alert.show( "fault at logout" );
		}
		
	}
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 src/org/rsos/openbill/command/LogoutCommand.as
smukherjee-openbill-0.1.6 src/org/rsos/openbill/command/LogoutCommand.as
smukherjee-openbill-0.1.7 src/org/rsos/openbill/command/LogoutCommand.as
openbill-0.1.5 src/org/rsos/openbill/command/LogoutCommand.as
openbill-0.1.6 src/org/rsos/openbill/command/LogoutCommand.as