/** * Artist */ component{ // OPTIONAL HANDLER PROPERTIES this.prehandler_only = ""; this.prehandler_except = ""; this.posthandler_only = ""; this.posthandler_except = ""; this.aroundHandler_only = ""; this.aroundHandler_except = ""; // REST Allowed HTTP Methods Ex: this.allowedMethods = {delete='POST,DELETE',index='GET'} this.allowedMethods = {}; function preHandler(event,action,eventArguments){ } function postHandler(event,action,eventArguments){ } /* function aroundHandler(event,targetAction,eventArguments){ // executed targeted action arguments.targetAction(event); } */ function onMissingAction(event,missingAction,eventArguments){ } function onError(event,faultAction,exception,eventArguments){ } function index(event){ // Get the list of artist. rc.artistList = getModel("artist.artistService").getAllArtists(); event.setView("artist/index"); } }