Use this to create a URL to controller mapping for a custom app or for a
website controller.
Use either the admin or website controller root objects depending on whether
you want to create a controller for websites or for the administration system
<ul>
<li>controllerMappings.adminController() - For admin screens</li>
<li>controllerMappings.websiteController() - For website controllers</li>
</ul>
For example:
<pre>
controllerMappings.adminController().path("/bluefin").enabled(true).defaultView(views.templateView("bluefin/manageProjects"))
.addMethod("POST", "addProject", "newProjectName")
.addMethod("POST", "setupDatabase", "setupDatabase") // temporary only, needs to be part of initialisation
.addMethod("POST", "newCandidate", "newCandidateId")
.addMethod("POST", "publish", "publish")
.addMethod("POST", "startSync", "sync") // start a sync operation, will redirect if need oauth login
.addMethod("POST", "updateFields", "updateFields") // update project fields
.build();
</pre>
Properties
| Name | Returns | Notes |
| rolePrivs | Map<String,List<AccessControlledResource.Priviledge>> | |
Methods
| Signature | Returns | Notes |
path(String s) | ControllerMappingBuilder | |
uniqueId(Object uniqueId) | ControllerMappingBuilder | |
modifiedDate(Object modifiedDate) | ControllerMappingBuilder | |
contentLength(Object contentLength) | ControllerMappingBuilder | |
addPathResolver(String groupName, Object resolver) | ControllerMappingBuilder | |
enabled(boolean b) | ControllerMappingBuilder | |
defaultView(View view) | ControllerMappingBuilder | |
addMethod(String method, String function) | ControllerMappingBuilder | |
addFunction(String method, VarArgFunction function) | ControllerMappingBuilder | |
addMethod(String method, String functionName, String requiredParam) | ControllerMappingBuilder | |
addFunction(String method, VarArgFunction function, String requiredParam) | ControllerMappingBuilder | |
addMethod(String method, String functionName, String requiredParam, View view) | ControllerMappingBuilder | |
addFunction(String method, VarArgFunction function, String requiredParam, View view) | ControllerMappingBuilder | |
isPublic(Boolean isPub) | ControllerMappingBuilder | |
postPriviledge(String s) | ControllerMappingBuilder | |
types(String[] types) | ControllerMappingBuilder | |
addType(String type) | ControllerMappingBuilder | |