Class RealmResourceImpl

java.lang.Object
org.openremote.container.web.WebResource
org.openremote.manager.web.ManagerWebResource
org.openremote.manager.security.RealmResourceImpl
All Implemented Interfaces:
org.openremote.container.security.AuthContext, org.openremote.model.security.RealmResource

public class RealmResourceImpl extends ManagerWebResource implements org.openremote.model.security.RealmResource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.openremote.model.Container
     

    Fields inherited from class org.openremote.manager.web.ManagerWebResource

    identityService, timerService

    Fields inherited from class org.openremote.container.web.WebResource

    application, httpHeaders, request, response, securityContext, uriInfo
  • Constructor Summary

    Constructors
    Constructor
    Description
    RealmResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, org.openremote.model.Container container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(org.openremote.model.http.RequestParams requestParams, org.openremote.model.security.Realm realm)
     
    void
    delete(org.openremote.model.http.RequestParams requestParams, String realm)
     
    org.openremote.model.security.Realm
    get(org.openremote.model.http.RequestParams requestParams, String realmName)
     
    org.openremote.model.security.Realm[]
    getAccessible(org.openremote.model.http.RequestParams requestParams)
     
    org.openremote.model.security.Realm[]
    getAll(org.openremote.model.http.RequestParams requestParams)
     
    protected void
     
    protected void
    throwIfIllegalMasterRealmMutation(String realmName, org.openremote.model.security.Realm realm)
     
    void
    update(org.openremote.model.http.RequestParams requestParams, String realmName, org.openremote.model.security.Realm realm)
     

    Methods inherited from class org.openremote.container.web.WebResource

    getApplication, getAuthContext, getAuthenticatedRealmName, getClientId, getClientRemoteAddress, getContainer, getRequestRealmName, getUserId, getUsername, hasRealmRole, hasResourceRole, isAuthenticated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openremote.container.security.AuthContext

    hasResourceRoleOrIsSuperUser, isRealmAccessibleByUser, isSuperUser
  • Field Details

    • container

      protected org.openremote.model.Container container
  • Constructor Details

    • RealmResourceImpl

      public RealmResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, org.openremote.model.Container container)
  • Method Details

    • getAll

      public org.openremote.model.security.Realm[] getAll(org.openremote.model.http.RequestParams requestParams)
      Specified by:
      getAll in interface org.openremote.model.security.RealmResource
    • getAccessible

      public org.openremote.model.security.Realm[] getAccessible(org.openremote.model.http.RequestParams requestParams)
      Specified by:
      getAccessible in interface org.openremote.model.security.RealmResource
    • get

      public org.openremote.model.security.Realm get(org.openremote.model.http.RequestParams requestParams, String realmName)
      Specified by:
      get in interface org.openremote.model.security.RealmResource
    • update

      public void update(org.openremote.model.http.RequestParams requestParams, String realmName, org.openremote.model.security.Realm realm)
      Specified by:
      update in interface org.openremote.model.security.RealmResource
    • create

      public void create(org.openremote.model.http.RequestParams requestParams, org.openremote.model.security.Realm realm)
      Specified by:
      create in interface org.openremote.model.security.RealmResource
    • delete

      public void delete(org.openremote.model.http.RequestParams requestParams, String realm)
      Specified by:
      delete in interface org.openremote.model.security.RealmResource
    • throwIfIllegalMasterRealmDeletion

      protected void throwIfIllegalMasterRealmDeletion(String realm) throws jakarta.ws.rs.WebApplicationException
      Throws:
      jakarta.ws.rs.WebApplicationException
    • throwIfIllegalMasterRealmMutation

      protected void throwIfIllegalMasterRealmMutation(String realmName, org.openremote.model.security.Realm realm) throws jakarta.ws.rs.WebApplicationException
      Throws:
      jakarta.ws.rs.WebApplicationException