Class AdminServiceController


  • @Controller
    @RequestMapping("/admin")
    public class AdminServiceController
    extends AbstractController
    • Constructor Detail

      • AdminServiceController

        public AdminServiceController()
    • Method Detail

      • getPeerList

        @RequestMapping(value="/paginatedPeers",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.transport.RestPageResponse<org.acumos.cds.domain.MLPPeer>> getPeerList​(@RequestBody
                                                                                                                  org.acumos.cds.transport.RestPageRequest restPageReq)
      • getPeerDetails

        @RequestMapping(value="/peers/{peerId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPPeer> getPeerDetails​(@PathVariable("peerId")
                                                                          String peerId)
      • createPeer

        @RequestMapping(value="/peers",
                        method=POST,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> createPeer​(@RequestBody
                                               JsonRequest<org.acumos.cds.domain.MLPPeer> peer)
      • updatePeer

        @RequestMapping(value="/peers/{peerId}",
                        method=PUT,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> updatePeer​(@PathVariable("peerId")
                                               String peerId,
                                               @RequestBody
                                               JsonRequest<org.acumos.cds.domain.MLPPeer> peer)
      • removePeer

        @RequestMapping(value="/peers/{peerId}",
                        method=DELETE,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> removePeer​(@PathVariable("peerId")
                                               String peerId)
      • getPeerSubscriptions

        @RequestMapping(value="/peer/subcriptions/{peerId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<MLPeerSubscription>> getPeerSubscriptions​(@PathVariable("peerId")
                                                                           String peerId)
      • getPeerSubscriptionCounts

        @RequestMapping(value="/peer/subcriptions/counts",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Map<String,​Integer>> getPeerSubscriptionCounts​(@RequestBody
                                                                                 JsonRequest<List<String>> jsonPeerIds)
      • getPeerSubscriptionDetails

        @RequestMapping(value="/peer/subcription/{subId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<MLPeerSubscription> getPeerSubscriptionDetails​(@PathVariable("subId")
                                                                           Long subId)
      • createPeerSubscription

        @RequestMapping(value="/peer/subcription/create",
                        method=POST,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPPeerSubscription> createPeerSubscription​(@RequestBody
                                                                                              JsonRequest<org.acumos.cds.domain.MLPPeerSubscription> peerSub)
      • updatePeerSubscription

        @RequestMapping(value="/peer/subcription/update",
                        method=PUT,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> updatePeerSubscription​(@RequestBody
                                                           JsonRequest<org.acumos.cds.domain.MLPPeerSubscription> peerSub)
      • deletePeerSubscription

        @RequestMapping(value="/peer/subcription/delete/{subId}",
                        method=DELETE,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> deletePeerSubscription​(@PathVariable("subId")
                                                           Long subId)
      • getSiteConfiguration

        @RequestMapping(value="/config/{configKey}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPSiteConfig> getSiteConfiguration​(@PathVariable("configKey")
                                                                                      String configKey,
                                                                                      javax.servlet.http.HttpServletResponse response)
      • getUserCarousalConfiguration

        @RequestMapping(value="/user/carouseConfig",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<Map>> getUserCarousalConfiguration​(@RequestParam(value="userId",required=false)
                                                                    String userId,
                                                                    javax.servlet.http.HttpServletResponse response)
      • createSiteConfig

        @RequestMapping(value="/config",
                        method=POST,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPSiteConfig> createSiteConfig​(@RequestBody
                                                                                  JsonRequest<org.acumos.cds.domain.MLPSiteConfig> mlpSiteConfig,
                                                                                  javax.servlet.http.HttpServletResponse response)
      • updateSiteConfig

        @RequestMapping(value="/config/{configKey}",
                        method=PUT,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPSiteConfig> updateSiteConfig​(@PathVariable("configKey")
                                                                                  String configKey,
                                                                                  @RequestBody
                                                                                  JsonRequest<org.acumos.cds.domain.MLPSiteConfig> mlpSiteConfig,
                                                                                  javax.servlet.http.HttpServletResponse response)
      • deleteSiteConfig

        @RequestMapping(value="/config/{configKey}",
                        method=DELETE,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> deleteSiteConfig​(@PathVariable("configKey")
                                                     String configKey,
                                                     javax.servlet.http.HttpServletResponse response)
      • getVersion

        @RequestMapping(value="/version",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public TransportData getVersion()
      • getDocurl

        @RequestMapping(value="/dashboard",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<String> getDocurl​(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)
      • getAllRequests

        @RequestMapping(value="/requests",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE> getAllRequests​(@RequestBody
                                                               org.acumos.cds.transport.RestPageRequest restPageReq)
      • updateRequest

        @RequestMapping(value="/request/update",
                        method=PUT,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<Object> updateRequest​(@RequestBody
                                                  JsonRequest<MLRequest> mlrequest)
      • createSubscription

        @RequestMapping(value="/peer/sub/create/{peerId}",
                        method=POST,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPPeerSubscription> createSubscription​(@RequestBody
                                                                                          JsonRequest<MLPeerSubscription> newSubJson,
                                                                                          @PathVariable("peerId")
                                                                                          String peerId)
      • isSignUpEnabled

        @RequestMapping(value="/signup/enabled",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<String> isSignUpEnabled​(javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
      • addUser

        @RequestMapping(value="/addUser",
                        method=POST,
                        produces="application/json")
        @PreAuthorize("hasAuthority(T(org.acumos.portal.be.security.RoleAuthorityConstants).ADMIN)")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPRole> addUser​(javax.servlet.http.HttpServletRequest request,
                                                                   @RequestBody
                                                                   JsonRequest<User> user,
                                                                   javax.servlet.http.HttpServletResponse response)
      • getDynamicMenu

        @RequestMapping(value="/getMenu",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<PortalMenu>> getDynamicMenu​(javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
      • getDesignStudioMenu

        @RequestMapping(value="/getDSMenu",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<DesignStudioMenu> getDesignStudioMenu​(javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)