@Controller @RequestMapping(value="/publishing") public class PublishingController extends Object
Constructor and Description |
---|
PublishingController() |
Modifier and Type | Method and Description |
---|---|
String |
addTool(org.springframework.ui.Model uiModel,
HomeScreen homeScreen,
org.springframework.validation.BindingResult result,
Long toolId)
Associate a Tool with a HomeScreen if it isn't already associated
|
String |
deleteLayout(org.springframework.ui.Model uiModel,
long layoutId)
Delete a HomeScreen
|
String |
deleteNotification(Long id,
org.springframework.ui.Model uiModel)
Delete a notification
|
String |
deleteTool(org.springframework.ui.Model uiModel,
long toolId)
Delete a Tool
|
String |
editLayout(org.springframework.ui.Model uiModel,
HomeScreen homeScreen,
org.springframework.validation.BindingResult result)
Save a HomeScreen
|
String |
editLayout(org.springframework.ui.Model uiModel,
long layoutId)
Edit an existing HomeScreen
|
String |
editNews(org.springframework.ui.Model uiModel)
Create a new NewsSource
|
String |
editNews(org.springframework.ui.Model uiModel,
long id)
Edit an existing NewsSource
|
String |
editNotification(Long id,
org.springframework.ui.Model uiModel)
Edit a notification
|
String |
editTool(org.springframework.ui.Model uiModel,
long toolId)
Edit an existing Tool
|
String |
editTool(org.springframework.ui.Model uiModel,
Tool tool,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request)
Save a Tool
|
String |
index(org.springframework.ui.Model uiModel)
The main entry point for publishing.
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
String |
layout(org.springframework.ui.Model uiModel)
The entry point for publishing HomeScreen layouts
|
String |
moveToolDown(org.springframework.ui.Model uiModel,
HomeScreen homeScreen,
org.springframework.validation.BindingResult result,
Long toolId)
Move a tool down in the Tool list display order
|
String |
moveToolUp(org.springframework.ui.Model uiModel,
HomeScreen homeScreen,
org.springframework.validation.BindingResult result,
Long toolId)
Move a tool up in the Tool list display order
|
String |
newLayout(org.springframework.ui.Model uiModel)
Create a new HomeScreen
|
String |
news(org.springframework.ui.Model uiModel)
The main entry point for News publishing
|
String |
newTool(org.springframework.ui.Model uiModel)
Create a new Tool
|
String |
notificationForm(Long id,
org.springframework.ui.Model uiModel)
Create or edit a notification
|
String |
notifications(org.springframework.ui.Model uiModel)
the main entry point for notifications
|
String |
publishingHome(org.springframework.ui.Model uiModel)
The main entry point for publishing.
|
String |
removeTool(org.springframework.ui.Model uiModel,
HomeScreen homeScreen,
org.springframework.validation.BindingResult result,
Long toolId)
Remove a Tool's association with a HomeScreen
|
String |
submit(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
Notification notification,
org.springframework.validation.BindingResult result)
Save a notification
|
String |
tool(org.springframework.ui.Model uiModel)
Entry point for publishing Tools.
|
public PublishingController()
@RequestMapping(method=GET) public String publishingHome(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="index", method=GET) public String index(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="tool", method=GET) public String tool(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="tool/new", method=GET) public String newTool(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="tool/edit/{toolId}", method=GET) public String editTool(org.springframework.ui.Model uiModel, @PathVariable(value="toolId") long toolId)
uiModel
- toolId
- id of the Tool to edit@RequestMapping(value="tool/delete/{toolId}", method=GET) public String deleteTool(org.springframework.ui.Model uiModel, @PathVariable(value="toolId") long toolId)
uiModel
- toolId
- id of the Tool to delete@RequestMapping(value="tool/edit", method=POST) public String editTool(org.springframework.ui.Model uiModel, @ModelAttribute(value="tool") Tool tool, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request)
uiModel
- tool
- the Tool object to saveresult
- binding validation result@RequestMapping(value="layout", method=GET) public String layout(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="layout/new", method=GET) public String newLayout(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="layout/edit/{layoutId}", method=GET) public String editLayout(org.springframework.ui.Model uiModel, @PathVariable(value="layoutId") long layoutId)
uiModel
- layoutId
- the id of the HomeScreen to edit@RequestMapping(value="layout/edit", method=POST) public String editLayout(org.springframework.ui.Model uiModel, @ModelAttribute(value="layout") HomeScreen homeScreen, org.springframework.validation.BindingResult result)
uiModel
- homeScreen
- the HomeScreen to saveresult
- binding validation result@RequestMapping(value="layout/delete/{layoutId}", method=GET) public String deleteLayout(org.springframework.ui.Model uiModel, @PathVariable(value="layoutId") long layoutId)
uiModel
- layoutId
- the id of the HomeScren to delete@RequestMapping(value="layout/edit", method=POST, params="add") public String addTool(org.springframework.ui.Model uiModel, @ModelAttribute(value="layout") HomeScreen homeScreen, org.springframework.validation.BindingResult result, @RequestParam(value="toolToAdd") Long toolId)
uiModel
- homeScreen
- the HomeScreen to which to add the Toolresult
- binding validation result for the HomeScreentoolId
- the id of the Tool to associate with the HomeSreen@RequestMapping(value="layout/edit", method=POST, params="remove") public String removeTool(org.springframework.ui.Model uiModel, @ModelAttribute(value="layout") HomeScreen homeScreen, org.springframework.validation.BindingResult result, @RequestParam(value="removeId") Long toolId)
uiModel
- homeScreen
- the HomeScreen from which to remove the Tool associationresult
- the binding validation result for the HomeScreentoolId
- the id of the Tool to remove@RequestMapping(value="layout/edit", method=POST, params="up") public String moveToolUp(org.springframework.ui.Model uiModel, @ModelAttribute(value="layout") HomeScreen homeScreen, org.springframework.validation.BindingResult result, @RequestParam(value="removeId") Long toolId)
uiModel
- homeScreen
- the HomeScreen to editresult
- binding validation result for the HomeScreentoolId
- the id of the Tool to move@RequestMapping(value="layout/edit", method=POST, params="down") public String moveToolDown(org.springframework.ui.Model uiModel, @ModelAttribute(value="layout") HomeScreen homeScreen, org.springframework.validation.BindingResult result, @RequestParam(value="removeId") Long toolId)
uiModel
- homeScreen
- the HomeScreen to editresult
- binding validation result for the HomeScreentoolId
- the id of the Tool to move@RequestMapping(value="notifications", method=GET) public String notifications(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="notificationForm", method=GET) public String notificationForm(@RequestParam(value="id",required=false) Long id, org.springframework.ui.Model uiModel)
id
- (optional) the id of the notification to edituiModel
- @RequestMapping(value="editNotification", method=GET) public String editNotification(@RequestParam(value="id",required=true) Long id, org.springframework.ui.Model uiModel)
id
- the id of the notification to edituiModel
- @RequestMapping(value="deleteNotification", method=GET) public String deleteNotification(@RequestParam(value="id",required=true) Long id, org.springframework.ui.Model uiModel)
id
- the id of the notification to deleteuiModel
- @RequestMapping(value="notificationSubmit", method=POST) public String submit(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @ModelAttribute(value="notification") Notification notification, org.springframework.validation.BindingResult result)
request
- uiModel
- notification
- the Notification to saveresult
- binding validation result@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
@RequestMapping(value="news", method=GET) public String news(org.springframework.ui.Model uiModel)
uiModel
- @RequestMapping(value="news/add", method=GET) public String editNews(org.springframework.ui.Model uiModel)
uiModel
- Copyright © 2011–2014 The Kuali Foundation. All rights reserved.