Class ConsoleResourceImpl
java.lang.Object
org.openremote.container.web.WebResource
org.openremote.manager.web.ManagerWebResource
org.openremote.manager.asset.console.ConsoleResourceImpl
- All Implemented Interfaces:
org.openremote.container.security.AuthContext,org.openremote.model.console.ConsoleResource
public class ConsoleResourceImpl
extends ManagerWebResource
implements org.openremote.model.console.ConsoleResource
-
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
ConstructorsConstructorDescriptionConsoleResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, AssetStorageService assetStorageService, ClientEventService clientEventService) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openremote.model.asset.Asset<?> getConsoleParentAsset(AssetStorageService assetStorageService, org.openremote.model.security.Realm realm) getConsoleParentAssetId(String realm) This is synchronised to ensure only a single parent is created.static org.openremote.model.asset.impl.ConsoleAssetinitConsoleAsset(org.openremote.model.console.ConsoleRegistration consoleRegistration) protected voidonAssetChange(org.openremote.model.asset.AssetEvent event) org.openremote.model.console.ConsoleRegistrationregister(org.openremote.model.http.RequestParams requestParams, org.openremote.model.console.ConsoleRegistration consoleRegistration) 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
-
CONSOLE_PARENT_ASSET_NAME
- See Also:
-
realmConsoleParentMap
-
assetStorageService
-
-
Constructor Details
-
ConsoleResourceImpl
public ConsoleResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, AssetStorageService assetStorageService, ClientEventService clientEventService)
-
-
Method Details
-
onAssetChange
protected void onAssetChange(org.openremote.model.asset.AssetEvent event) -
register
public org.openremote.model.console.ConsoleRegistration register(org.openremote.model.http.RequestParams requestParams, org.openremote.model.console.ConsoleRegistration consoleRegistration) - Specified by:
registerin interfaceorg.openremote.model.console.ConsoleResource
-
initConsoleAsset
public static org.openremote.model.asset.impl.ConsoleAsset initConsoleAsset(org.openremote.model.console.ConsoleRegistration consoleRegistration) -
getConsoleParentAssetId
This is synchronised to ensure only a single parent is created. -
getConsoleParentAsset
public static org.openremote.model.asset.Asset<?> getConsoleParentAsset(AssetStorageService assetStorageService, org.openremote.model.security.Realm realm)
-