Class MaintainController

java.lang.Object
de.hybris.platform.hac.controller.MaintainController

@Controller @RequestMapping("/maintain/") public class MaintainController extends Object
Controller for maintaining handles like key migration, orphaned types/medias, ....
  • Constructor Details

  • Method Details

    • keys

      @RequestMapping("keys") public String keys(org.springframework.ui.Model model)
      handing key migration page
    • checkEncryptionForCreditCards

      @RequestMapping(value="keys/creditcards/checkencryption", method=GET, headers="Accept=application/json") @ResponseBody public boolean checkEncryptionForCreditCards()
    • loadUnencryptedCreditCards

      @RequestMapping(value="keys/creditcards/unencrypted", method=GET, headers="Accept=application/json") @ResponseBody public Map<String,Object> loadUnencryptedCreditCards(@RequestParam("iDisplayStart") int start, @RequestParam("iDisplayLength") int count, @RequestParam("sEcho") int dataTableDrawCount, @RequestParam("iSortCol_0") int orderByNumCol, @RequestParam("sSortDir_0") CreditCardPaymentInfoDao.SortDirection sortDirection)
      Get unencrypted credit cards data. Input parameters are controls for server side processing way of rendering data table on front end with help of JQuery DataTable JS library (http://datatables.net/usage/server-side)
    • initBinder

      @InitBinder("sSortDir_0") public void initBinder(org.springframework.web.bind.WebDataBinder binder)
    • encryptCardNumbers

      @RequestMapping(value="keys/creditcards/encrypt", method=POST, headers="Accept=application/json") @ResponseBody public Map<String,Object> encryptCardNumbers()
    • keyGeneration

      @RequestMapping(value="keys/generate", method=POST, headers="Accept=application/json") @ResponseBody public Map<String,Object> keyGeneration(@RequestParam String fileName, @RequestParam int keySize) throws GeneralSecurityException
      Throws:
      GeneralSecurityException
    • keyMigrationData

      @RequestMapping(value="keys/migration/data", method=GET, headers="Accept=application/json") @ResponseBody public Map<String,Object> keyMigrationData()
    • keyMigrationMigrate

      @RequestMapping(value="keys/migration/migrate", method=POST, headers="Accept=application/json") @ResponseBody public Map<String,Object> keyMigrationMigrate(@RequestParam("types") String typesString)
    • deployments

      @RequestMapping("deployments") public String deployments(org.springframework.ui.Model model)
      type code info, e.g. used and orphaned deployment tables
    • cleanup

      @RequestMapping("cleanup") public String cleanup(org.springframework.ui.Model model)
    • cleanupData

      @RequestMapping(value="/maintenance/cleanup/types/data", method=GET, headers="Accept=application/json") @ResponseBody public Map<String,Object> cleanupData(org.springframework.ui.Model model)
    • removeTypeSystem

      @RequestMapping(value="cleanup/typesystem/remove", method=POST, headers="Accept=application/json") @ResponseBody public Map<String,Object> removeTypeSystem(@RequestParam String typeSystemName)
    • cleanupData

      @RequestMapping(value="cleanup/types/remove", method=POST, headers="Accept=application/json") @ResponseBody public List<Map> cleanupData(@RequestParam(defaultValue="false") Boolean deleteRelated, @RequestParam(defaultValue="false") Boolean deleteInstances)
    • cleanupMediaData

      @RequestMapping(value="/maintenance/cleanup/media/data", method=GET, headers="Accept=application/json") @ResponseBody public Map<String,Object> cleanupMediaData()
    • creditCards

      @RequestMapping(value="creditcards", method=GET) public String creditCards()
    • cleanupMediaRemove

      @RequestMapping(value="/maintenance/cleanup/media/remove", method=POST, headers="Accept=application/json") @ResponseBody public Map<String,Object> cleanupMediaRemove()
    • populateTypeSystems

      @ModelAttribute("typeSystemsList") public Map<String,String> populateTypeSystems()