@Controller @RequestMapping(value="/device") public class DeviceController extends Object
Constructor and Description |
---|
DeviceController() |
Modifier and Type | Method and Description |
---|---|
String |
devices(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model uiModel,
String key)
A controller method for accessing all devices registered with push notifications.
|
String |
devicesByKeyword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model uiModel,
String keyword)
Deprecated.
|
DeviceService |
getDeviceService()
A reference to the
DeviceService . |
String |
getDevicesFromUsername(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String username)
Deprecated.
|
UserDao |
getUserDao()
Get the controllers
UserDao object. |
String |
getUserDetails(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String deviceHash)
A Controller method for accessing the details of a given device and displaying it in the association jsp file.
|
String |
getUsernameFromDeviceID(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String deviceId)
Deprecated.
|
String |
index(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request)
A controller method for loading the main index.jsp for the Device tool.
|
org.springframework.http.ResponseEntity<String> |
ping()
Simple controller which responds with 200.
|
org.springframework.http.ResponseEntity<String> |
register(javax.servlet.http.HttpServletRequest request,
String data)
A controller method for registering a device for push notifications as defined by a JSON formatted string.
|
String |
removeDevice(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request,
String deviceHash)
A controller method for accessing a deleting a specified device.
|
String |
search(org.springframework.ui.Model uiModel,
javax.servlet.http.HttpServletRequest request)
A controller method for loading the keyword device search page.
|
void |
setDeviceService(DeviceService deviceService)
Sets the reference to the
DeviceService |
void |
setUserDao(UserDao userDao)
A method for setting the
UserDao of the controller. |
org.springframework.http.ResponseEntity<String> |
update(javax.servlet.http.HttpServletRequest request,
String data)
A controller method for updating a pre-existing registered device.
|
public DeviceController()
@RequestMapping(method=GET) public String index(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request)
uiModel
- @RequestMapping(value="search", method=GET) public String search(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request)
uiModel
- request
- @RequestMapping(value="/detail/{deviceHash}", method=GET) public String getUserDetails(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @PathVariable(value="deviceHash") String deviceHash)
uiModel
- request
- deviceHash
- Id of the device to show.@RequestMapping(value="/remove/{deviceHash}", method=GET) public String removeDevice(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @PathVariable(value="deviceHash") String deviceHash)
uiModel
- request
- deviceHash
- Id of the device to delete.@RequestMapping(value="/list", method=GET) public String devices(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model uiModel, @RequestParam(value="key",required=false) String key)
request
- uiModel
- key
- @RequestMapping(value="/register", method=GET) public org.springframework.http.ResponseEntity<String> register(javax.servlet.http.HttpServletRequest request, @RequestParam(value="data",required=true) String data)
request
- data
- JSON formatted string describing a device to be register for push notifications.@RequestMapping(value="/update", method=GET) public org.springframework.http.ResponseEntity<String> update(javax.servlet.http.HttpServletRequest request, @RequestParam(value="data",required=true) String data)
request
- data
- A JSON formatted string describing details of a device to update.@Deprecated @RequestMapping(value="/deviceid", method=POST) @ResponseBody public String getUsernameFromDeviceID(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @RequestParam(value="deviceid",required=false) String deviceId)
uiModel
- request
- deviceId
- Id of device to check.@Deprecated @RequestMapping(value="/username", method=POST) @ResponseBody public String getDevicesFromUsername(org.springframework.ui.Model uiModel, javax.servlet.http.HttpServletRequest request, @RequestParam(value="username",required=false) String username)
uiModel
- request
- username
- Username associated with devices to access.@Deprecated @RequestMapping(value="keyword/{keyword}", method=GET, headers="Accept=application/json") @ResponseBody public String devicesByKeyword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model uiModel, @PathVariable(value="keyword") String keyword)
request
- response
- uiModel
- keyword
- @RequestMapping(value="/ping", method=GET) public org.springframework.http.ResponseEntity<String> ping()
public void setDeviceService(DeviceService deviceService)
DeviceService
deviceService
- public DeviceService getDeviceService()
DeviceService
.public UserDao getUserDao()
UserDao
object.public void setUserDao(UserDao userDao)
UserDao
of the controller.userDao
- Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.