The AbstractController will hold the basic information for the controller, this class doesn't have any basic functionality for the requests.


Methods

execute (method, context)

This is an extension on the global execute method. This method will check if the current user is able to do the action, and thus will check the permissions file for the current controller.

Parameters

Name Type Description
method String The method to execute
context CommandContext The context for the method.

Returned Value

Promise: A promise containing result of the method call.


getModel (state)

This method will return the requested model, the retreival of the model respects the fallback system.

Parameters

Name Type Description
state Object The state to set on the model

Returned Value

Promise: A promise containing the model.


getPermissions ()

This method will return the permissions object belonging to the current controller.

Returned Value

Promise: A promise containing the permissions.


getView ()

This method will return the requested view, the retreival of the view respects the fallback system.

Returned Value

Promise: A promise containing the view.