|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.mobility.admin.controllers.PublishingController
@Controller @RequestMapping(value="/publishing") public class PublishingController
Controller for performing publishing actions
Constructor Summary | |
---|---|
PublishingController()
|
Method Summary | |
---|---|
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 |
deleteNewsSource(org.springframework.ui.Model uiModel,
long id)
Delete a NewsSource |
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 |
editNewsSource(org.springframework.ui.Model uiModel,
NewsSource source,
org.springframework.validation.BindingResult result)
Save a 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)
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 |
moveDown(org.springframework.ui.Model uiModel,
long id)
Move a news feed down in the display order |
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 |
moveUp(org.springframework.ui.Model uiModel,
long id)
Move a news feed up in the 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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublishingController()
Method Detail |
---|
@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)
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
-
@RequestMapping(value="news/edit/{id}", method=GET) public String editNews(org.springframework.ui.Model uiModel, @PathVariable(value="id") long id)
uiModel
- id
- the id of the NewsSource to edit
@RequestMapping(value="news/delete/{id}", method=GET) public String deleteNewsSource(org.springframework.ui.Model uiModel, @PathVariable(value="id") long id)
uiModel
- id
- the id of the NewsSource to delete
@RequestMapping(value="news/edit", method=POST) public String editNewsSource(org.springframework.ui.Model uiModel, @ModelAttribute(value="source") NewsSource source, org.springframework.validation.BindingResult result)
uiModel
- source
- the NewsSource to saveresult
- the binding validation result
@RequestMapping(value="news/up/{id}", method=GET) public String moveUp(org.springframework.ui.Model uiModel, @PathVariable(value="id") long id)
uiModel
- id
- the id of the NewsSource to move
@RequestMapping(value="news/down/{id}", method=GET) public String moveDown(org.springframework.ui.Model uiModel, @PathVariable(value="id") long id)
uiModel
- id
- the id of the NewsSource to move
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |