Interface RealmResource


  • public interface RealmResource
    Author:
    rodrigo.sasaki@icarros.com.br
    • Method Detail

      • update

        @PUT
        @Consumes("application/json")
        void update​(RealmRepresentation realmRepresentation)
      • getDefaultDefaultClientScopes

        @GET
        @Produces("application/json")
        @Path("default-default-client-scopes")
        List<ClientScopeRepresentation> getDefaultDefaultClientScopes()
      • addDefaultDefaultClientScope

        @PUT
        @Path("default-default-client-scopes/{clientScopeId}")
        void addDefaultDefaultClientScope​(@PathParam("clientScopeId")
                                          String clientScopeId)
      • removeDefaultDefaultClientScope

        @DELETE
        @Path("default-default-client-scopes/{clientScopeId}")
        void removeDefaultDefaultClientScope​(@PathParam("clientScopeId")
                                             String clientScopeId)
      • getDefaultOptionalClientScopes

        @GET
        @Produces("application/json")
        @Path("default-optional-client-scopes")
        List<ClientScopeRepresentation> getDefaultOptionalClientScopes()
      • addDefaultOptionalClientScope

        @PUT
        @Path("default-optional-client-scopes/{clientScopeId}")
        void addDefaultOptionalClientScope​(@PathParam("clientScopeId")
                                           String clientScopeId)
      • removeDefaultOptionalClientScope

        @DELETE
        @Path("default-optional-client-scopes/{clientScopeId}")
        void removeDefaultOptionalClientScope​(@PathParam("clientScopeId")
                                              String clientScopeId)
      • convertClientDescription

        @Path("client-description-converter")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        ClientRepresentation convertClientDescription​(String description)
      • clearEvents

        @DELETE
        @Path("events")
        void clearEvents()
      • getEvents

        @Path("events")
        @GET
        @Produces("application/json")
        List<EventRepresentation> getEvents​(@QueryParam("type")
                                            List<String> types,
                                            @QueryParam("client")
                                            String client,
                                            @QueryParam("user")
                                            String user,
                                            @QueryParam("dateFrom")
                                            String dateFrom,
                                            @QueryParam("dateTo")
                                            String dateTo,
                                            @QueryParam("ipAddress")
                                            String ipAddress,
                                            @QueryParam("first")
                                            Integer firstResult,
                                            @QueryParam("max")
                                            Integer maxResults)
      • clearAdminEvents

        @DELETE
        @Path("admin-events")
        void clearAdminEvents()
      • getAdminEvents

        @GET
        @Path("admin-events")
        @Produces("application/json")
        List<AdminEventRepresentation> getAdminEvents​(@QueryParam("operationTypes")
                                                      List<String> operationTypes,
                                                      @QueryParam("authRealm")
                                                      String authRealm,
                                                      @QueryParam("authClient")
                                                      String authClient,
                                                      @QueryParam("authUser")
                                                      String authUser,
                                                      @QueryParam("authIpAddress")
                                                      String authIpAddress,
                                                      @QueryParam("resourcePath")
                                                      String resourcePath,
                                                      @QueryParam("dateFrom")
                                                      String dateFrom,
                                                      @QueryParam("dateTo")
                                                      String dateTo,
                                                      @QueryParam("first")
                                                      Integer firstResult,
                                                      @QueryParam("max")
                                                      Integer maxResults)
      • getAdminEvents

        @GET
        @Path("admin-events")
        @Produces("application/json")
        List<AdminEventRepresentation> getAdminEvents​(@QueryParam("operationTypes")
                                                      List<String> operationTypes,
                                                      @QueryParam("authRealm")
                                                      String authRealm,
                                                      @QueryParam("authClient")
                                                      String authClient,
                                                      @QueryParam("authUser")
                                                      String authUser,
                                                      @QueryParam("authIpAddress")
                                                      String authIpAddress,
                                                      @QueryParam("resourcePath")
                                                      String resourcePath,
                                                      @QueryParam("resourceTypes")
                                                      List<String> resourceTypes,
                                                      @QueryParam("dateFrom")
                                                      String dateFrom,
                                                      @QueryParam("dateTo")
                                                      String dateTo,
                                                      @QueryParam("first")
                                                      Integer firstResult,
                                                      @QueryParam("max")
                                                      Integer maxResults)
      • getGroupByPath

        @GET
        @Path("group-by-path/{path: .*}")
        @Produces("application/json")
        GroupRepresentation getGroupByPath​(@PathParam("path")
                                           String path)
      • getDefaultGroups

        @GET
        @Produces("application/json")
        @Path("default-groups")
        List<GroupRepresentation> getDefaultGroups()
      • addDefaultGroup

        @PUT
        @Path("default-groups/{groupId}")
        void addDefaultGroup​(@PathParam("groupId")
                             String groupId)
      • removeDefaultGroup

        @DELETE
        @Path("default-groups/{groupId}")
        void removeDefaultGroup​(@PathParam("groupId")
                                String groupId)
      • remove

        @DELETE
        void remove()
      • getClientSessionStats

        @Path("client-session-stats")
        @GET
        List<Map<String,​String>> getClientSessionStats()
      • partialImport

        @Path("partialImport")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        javax.ws.rs.core.Response partialImport​(PartialImportRepresentation rep)
      • partialExport

        @Path("partial-export")
        @POST
        @Produces("application/json")
        RealmRepresentation partialExport​(@QueryParam("exportGroupsAndRoles")
                                          Boolean exportGroupsAndRoles,
                                          @QueryParam("exportClients")
                                          Boolean exportClients)
      • testLDAPConnection

        @Path("testLDAPConnection")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Deprecated
        javax.ws.rs.core.Response testLDAPConnection​(@FormParam("action")
                                                     String action,
                                                     @FormParam("connectionUrl")
                                                     String connectionUrl,
                                                     @FormParam("bindDn")
                                                     String bindDn,
                                                     @FormParam("bindCredential")
                                                     String bindCredential,
                                                     @FormParam("useTruststoreSpi")
                                                     String useTruststoreSpi,
                                                     @FormParam("connectionTimeout")
                                                     String connectionTimeout)
        Deprecated.
      • testLDAPConnection

        @Path("testLDAPConnection")
        @POST
        @Consumes("application/json")
        javax.ws.rs.core.Response testLDAPConnection​(TestLdapConnectionRepresentation config)
      • testSMTPConnection

        @Path("testSMTPConnection")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Deprecated
        javax.ws.rs.core.Response testSMTPConnection​(@FormParam("config")
                                                     String config)
        Deprecated.
      • testSMTPConnection

        @Path("testSMTPConnection")
        @POST
        @Consumes("application/json")
        javax.ws.rs.core.Response testSMTPConnection​(Map<String,​String> config)
      • clearRealmCache

        @Path("clear-realm-cache")
        @POST
        void clearRealmCache()
      • clearUserCache

        @Path("clear-user-cache")
        @POST
        void clearUserCache()
      • clearKeysCache

        @Path("clear-keys-cache")
        @POST
        void clearKeysCache()
      • pushRevocation

        @Path("push-revocation")
        @POST
        @Produces("application/json")
        GlobalRequestResult pushRevocation()
      • logoutAll

        @Path("logout-all")
        @POST
        @Produces("application/json")
        GlobalRequestResult logoutAll()
      • deleteSession

        @Path("sessions/{session}")
        @DELETE
        void deleteSession​(@PathParam("session")
                           String sessionId)