Class RealmsAdminResource


  • public class RealmsAdminResource
    extends Object
    Top level resource for Admin REST API
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Field Detail

      • logger

        protected static final org.jboss.logging.Logger logger
      • noCache

        public static final javax.ws.rs.core.CacheControl noCache
    • Constructor Detail

    • Method Detail

      • getRealms

        @GET
        @Produces("application/json")
        public Stream<RealmRepresentation> getRealms​(@DefaultValue("false") @QueryParam("briefRepresentation")
                                                     boolean briefRepresentation)
        Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.
        Returns:
      • importRealm

        @POST
        @Consumes("application/json")
        public javax.ws.rs.core.Response importRealm​(RealmRepresentation rep)
        Import a realm Imports a realm from a full representation of that realm. Realm name must be unique.
        Parameters:
        rep - JSON representation of the realm
        Returns:
      • getRealmAdmin

        @Path("{realm}")
        public RealmAdminResource getRealmAdmin​(@Context
                                                javax.ws.rs.core.HttpHeaders headers,
                                                @PathParam("realm")
                                                String name)
        Base path for the admin REST API for one particular realm.
        Parameters:
        headers -
        name - realm name (not id!)
        Returns: