Package org.openremote.manager.security
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
FieldsFields inherited from class org.openremote.manager.web.ManagerWebResource
identityService, timerServiceFields inherited from class org.openremote.container.web.WebResource
application, httpHeaders, request, response, securityContext, uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionRealmResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, org.openremote.model.Container container) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(org.openremote.model.http.RequestParams requestParams, org.openremote.model.security.Realm realm) voidorg.openremote.model.security.Realmorg.openremote.model.security.Realm[]getAccessible(org.openremote.model.http.RequestParams requestParams) org.openremote.model.security.Realm[]getAll(org.openremote.model.http.RequestParams requestParams) protected voidprotected voidthrowIfIllegalMasterRealmMutation(String realmName, org.openremote.model.security.Realm realm) voidupdate(org.openremote.model.http.RequestParams requestParams, String realmName, org.openremote.model.security.Realm realm) Methods inherited from class org.openremote.manager.web.ManagerWebResource
getAuthenticatedRealm, getRequestRealm, isRealmActiveAndAccessible, isRealmActiveAndAccessible, isRestrictedUserMethods inherited from class org.openremote.container.web.WebResource
getApplication, getAuthContext, getAuthenticatedRealmName, getClientId, getClientRemoteAddress, getContainer, getRequestRealmName, getUserId, getUsername, hasRealmRole, hasResourceRole, isAuthenticatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getAllin interfaceorg.openremote.model.security.RealmResource
-
getAccessible
public org.openremote.model.security.Realm[] getAccessible(org.openremote.model.http.RequestParams requestParams) - Specified by:
getAccessiblein interfaceorg.openremote.model.security.RealmResource
-
get
public org.openremote.model.security.Realm get(org.openremote.model.http.RequestParams requestParams, String realmName) - Specified by:
getin interfaceorg.openremote.model.security.RealmResource
-
update
public void update(org.openremote.model.http.RequestParams requestParams, String realmName, org.openremote.model.security.Realm realm) - Specified by:
updatein interfaceorg.openremote.model.security.RealmResource
-
create
public void create(org.openremote.model.http.RequestParams requestParams, org.openremote.model.security.Realm realm) - Specified by:
createin interfaceorg.openremote.model.security.RealmResource
-
delete
- Specified by:
deletein interfaceorg.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
-