command

command

new command()

This is the main command for the mvc framework, that which all other commands extend

Methods

(static) command(name, data)

Retrieves a command from the notification object and executes the command passing any data supplied

Parameters:
Name Type Description
name aim.command

The command type to find and return

data Object

The data to pass to the execution method

(static) execute(data)

Execute the command, place holder overiddable method to execute command functionality, there is no common command execution functionality and it is expected to be unique per command.

Parameters:
Name Type Description
data *

Optional data to pass to the command, this could be data of any object type

(static) getArguments()

Get the current context arguments that were passed

(static) map(Obj, evnt, ref)

Map an object to the notification object, this action is only permitted from commands and module objects

Parameters:
Name Type Description
Obj Object

The object to map

evnt String

The event reference

ref String

The reference name/id

(static) model(name)

Retrieves the specified model reference from the notification object

Parameters:
Name Type Description
name Object

The object type to compare against and return

(static) module(name)

Retrieves the specified module reference from the notification object

Parameters:
Name Type Description
name Object

The object type to compare against and return

(static) service(name)

Retrieves the specified service reference from the notification object

Parameters:
Name Type Description
name Object

The object type to compare against and return

(static) unmap(name)

Unmap an element from the context notification object, this action can only be performed from commands and modules

Parameters:
Name Type Description
name String

The name reference to unmap

(static) view(name)

Retrieves the specified view reference from the notification object

Parameters:
Name Type Description
name Object

The object type to compare against and return