Class PerspectiveGatewayRpc
java.lang.Object
com.inductiveautomation.perspective.gateway.rpc.PerspectiveGatewayRpc
- All Implemented Interfaces:
PerspectiveModuleRpc
-
Field Summary
Fields inherited from interface com.inductiveautomation.perspective.common.rpc.PerspectiveModuleRpc
SERIALIZER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
designerNamedQueriesModified
(Map<String, NamedQuery> namedQueryMap) Updates the PerspectiveDesignSession on the Gateway with the named query changes local to this Designer instance so that executions of named queries on the Gateway reflect the latest changes in this Designer instance.void
Called to notify that the designer has saved successfully.void
designerScriptsModified
(List<Resource> moduleLibraryScripts, @Nullable Resource legacyAppScripts) Updates the necessary Script Managers on the Gateway when the Designer scripts change so that the designer session's models running on the gateway act against the latest unsaved Designer changes.void
designerSessionPropsChanged
(Resource resource) Called to notify that the designer has applied a new session props resource.void
Called to notify that the designer has closed.void
Called to notify that a designer has started.void
designerTabClosed
(String viewPath) Called to notify the gateway that a page was closed, an the corresponding Page should be shut down.Get all of the available fonts from the Gateway's Font Manager.Fetch a map of all icon library names and their respective icon namesGet all of the available locales from the GatewayGet all of the available themes from the Gateway's Theme Manager.Get all available translations from the GatewayGet Identity Provider by ID.
-
Constructor Details
-
PerspectiveGatewayRpc
public PerspectiveGatewayRpc()
-
-
Method Details
-
designerStartup
public void designerStartup()Description copied from interface:PerspectiveModuleRpc
Called to notify that a designer has started. Even though no views are running, the session props will start.- Specified by:
designerStartup
in interfacePerspectiveModuleRpc
-
designerShutdown
public void designerShutdown()Description copied from interface:PerspectiveModuleRpc
Called to notify that the designer has closed. Used for more timely shutdown of the session-side models, in cases where the designer closes cleanly.- Specified by:
designerShutdown
in interfacePerspectiveModuleRpc
-
designerSaved
public void designerSaved()Description copied from interface:PerspectiveModuleRpc
Called to notify that the designer has saved successfully.- Specified by:
designerSaved
in interfacePerspectiveModuleRpc
-
designerTabClosed
Description copied from interface:PerspectiveModuleRpc
Called to notify the gateway that a page was closed, an the corresponding Page should be shut down.- Specified by:
designerTabClosed
in interfacePerspectiveModuleRpc
-
designerSessionPropsChanged
Description copied from interface:PerspectiveModuleRpc
Called to notify that the designer has applied a new session props resource.- Specified by:
designerSessionPropsChanged
in interfacePerspectiveModuleRpc
-
designerScriptsModified
public void designerScriptsModified(List<Resource> moduleLibraryScripts, @Nullable @Nullable Resource legacyAppScripts) Description copied from interface:PerspectiveModuleRpc
Updates the necessary Script Managers on the Gateway when the Designer scripts change so that the designer session's models running on the gateway act against the latest unsaved Designer changes.- Specified by:
designerScriptsModified
in interfacePerspectiveModuleRpc
- Parameters:
moduleLibraryScripts
- List of all module library scripts in the projectlegacyAppScripts
- The resource that holds the legacy app.* scripts, if any, or else null.
-
designerNamedQueriesModified
Description copied from interface:PerspectiveModuleRpc
Updates the PerspectiveDesignSession on the Gateway with the named query changes local to this Designer instance so that executions of named queries on the Gateway reflect the latest changes in this Designer instance.- Specified by:
designerNamedQueriesModified
in interfacePerspectiveModuleRpc
- Parameters:
namedQueryMap
- AMap
of named query paths to the serialized bytes ofNamedQuery
instances for those named queries which have changed in this Designer instance. Null NamedQuery values mean that the NamedQuery with the given path has been deleted locally.
-
getAllAvailableLocales
Description copied from interface:PerspectiveModuleRpc
Get all of the available locales from the Gateway- Specified by:
getAllAvailableLocales
in interfacePerspectiveModuleRpc
- Returns:
- A
List
of all the available locales
-
getAllAvailableTranslations
Description copied from interface:PerspectiveModuleRpc
Get all available translations from the Gateway- Specified by:
getAllAvailableTranslations
in interfacePerspectiveModuleRpc
- Returns:
- A
List
of all the available translations
-
getAllAvailableThemes
Description copied from interface:PerspectiveModuleRpc
Get all of the available themes from the Gateway's Theme Manager.- Specified by:
getAllAvailableThemes
in interfacePerspectiveModuleRpc
- Returns:
- A
List
of all the available themes
-
getAllAvailableIcons
Description copied from interface:PerspectiveModuleRpc
Fetch a map of all icon library names and their respective icon names- Specified by:
getAllAvailableIcons
in interfacePerspectiveModuleRpc
- Returns:
- A map of all icon library names and their respective
lists
of icon names
-
getAllAvailableFonts
Description copied from interface:PerspectiveModuleRpc
Get all of the available fonts from the Gateway's Font Manager.- Specified by:
getAllAvailableFonts
in interfacePerspectiveModuleRpc
- Returns:
- A
List
of all the availablefonts
-
getAllAvailableSecurityLevels
- Specified by:
getAllAvailableSecurityLevels
in interfacePerspectiveModuleRpc
- Returns:
- a
List
of all the available gson-serialized security level configs
-
getIdentityProvider
Description copied from interface:PerspectiveModuleRpc
Get Identity Provider by ID.- Specified by:
getIdentityProvider
in interfacePerspectiveModuleRpc
- Returns:
- an
Optional
containing theIdentityProviderMeta
for the Identity Provider with the given ID, or empty if no Identity Provider exists with the given ID.
-