@Controller @RequestMapping(value="/pushsenders") public class SenderController extends Object
Constructor and Description |
---|
SenderController() |
Modifier and Type | Method and Description |
---|---|
String |
createKey(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request)
Returns a key to the requesting page, in this case used for creating a key for a new Sender or renewing/refreshing a key to an existing Sender.
|
Properties |
getKmeProperties() |
String |
makeKey(int length)
Creates and returns an alphanumeric key of length specified.
|
org.springframework.http.ResponseEntity<String> |
ping()
Simple controller which responds with 200.
|
String |
removeSender(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String senderId)
Controller method for removing a given sender from the system.
|
String |
saveSender(org.springframework.ui.Model uiModel,
Sender sender,
org.springframework.validation.BindingResult result,
Long id)
Save a
Sender after it has been created or edited. |
String |
senderEdit(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String senderId)
Display the Edit page for a Sender as specified by SenderId
|
String |
senderNew(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request)
Load page for creating a new
Sender , with a new SenderKey prepopulated. |
String |
senders(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String key)
Retrieves all of the
Sender objects in the system and displays them in the main sender admin jsp. |
void |
setKmeProperties(Properties kmeProperties) |
void |
setSenderService(SenderService senderService)
A method to set the SenderService for the
SenderController object. |
public SenderController()
public void setSenderService(SenderService senderService)
SenderController
object.senderService
- @RequestMapping(value="/pushsenders", method=GET) public String senders(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(value="key",required=false) String key)
Sender
objects in the system and displays them in the main sender admin jsp.request
- uiModel
- key
- @RequestMapping(value="/createkey", method=GET) @ResponseBody public String createKey(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request)
uiModel
- request
- public String makeKey(int length)
length
- Length of the key to generate.@RequestMapping(value="/remove/{senderId}", method=GET) public String removeSender(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @PathVariable(value="senderId") String senderId)
uiModel
- request
- senderId
- Id of the sender to be removed.@RequestMapping(value="/new", method=GET) public String senderNew(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request)
Sender
, with a new SenderKey prepopulated.uiModel
- request
- @RequestMapping(value="/edit/{senderId}", method=GET) public String senderEdit(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @PathVariable(value="senderId") String senderId)
uiModel
- request
- senderId
- Id of the sender to be edited.@RequestMapping(method=POST) public String saveSender(org.springframework.ui.Model uiModel, @ModelAttribute(value="Sender") Sender sender, org.springframework.validation.BindingResult result, @RequestParam(value="id",required=false) Long id)
Sender
after it has been created or edited.uiModel
- sender
- result
- id
- Id of Sender to be saved.@RequestMapping(value="/ping", method=GET) public org.springframework.http.ResponseEntity<String> ping()
public Properties getKmeProperties()
public void setKmeProperties(Properties kmeProperties)
kmeProperties
- the kmeProperties to setCopyright © 2011-2013 The Kuali Foundation. All Rights Reserved.