Class DesignerPageModel
- java.lang.Object
-
- com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
-
- com.inductiveautomation.perspective.gateway.model.PageModel
-
- com.inductiveautomation.perspective.gateway.model.DesignerPageModel
-
- All Implemented Interfaces:
AuditingContext
,LoggingContext
,Page
,PerspectiveElement
,PropertyTreeOwner
public class DesignerPageModel extends PageModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
DesignerPageModel.DesignerHandlers
-
Nested classes/interfaces inherited from class com.inductiveautomation.perspective.gateway.model.PageModel
PageModel.Handlers
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.perspective.gateway.model.PageModel
channel, created, gson, handlers, id, lastKeepalive, log, PAGE, props, roundtrip, session, syncManager, viewConfigLoader, views
-
-
Constructor Summary
Constructors Constructor Description DesignerPageModel(PerspectiveDesignSession parentContext, com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log, java.lang.String tabId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PageModel.Handlers
createHandlers(com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log)
DesignerPropertyReference
createPropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)
Create aPropertyReference
with thisPerspectiveElement
as the target.protected java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<java.util.Optional<ViewConfig>>>
createViewConfigLoader()
void
init(DesignerInitMsg initMsg)
protected boolean
isViewAuthorized(ViewInstanceId viewInstanceId, ViewConfig viewConfig)
protected void
onShutdown()
-
Methods inherited from class com.inductiveautomation.perspective.gateway.model.PageModel
briefReport, close, disconnect, getAuditSnapshot, getCreated, getId, getLogger, getMdcParent, getName, getPage, getPageEventBus, getPropertyTreeOf, getSession, getView, isConnected, mdcSetup, mdcTeardown, notifyConnected, notifyDisconnected, notifyProjectUpdated, onKeepaliveReceived, onSessionPropertyChange, onStartup, receive, report, send, send, sendKeepalive, setPageTimeout, updateModulesInfo
-
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContext
audit
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContext
mdc, mdcSetupTree, mdcTeardownTree, mdcWrap
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElement
getAuditProfile, getQualifiedPath
-
-
-
-
Constructor Detail
-
DesignerPageModel
public DesignerPageModel(PerspectiveDesignSession parentContext, com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log, java.lang.String tabId)
-
-
Method Detail
-
onShutdown
protected void onShutdown()
- Overrides:
onShutdown
in classPageModel
-
createHandlers
protected PageModel.Handlers createHandlers(com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log)
- Overrides:
createHandlers
in classPageModel
-
createViewConfigLoader
protected java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<java.util.Optional<ViewConfig>>> createViewConfigLoader()
- Overrides:
createViewConfigLoader
in classPageModel
-
init
public void init(DesignerInitMsg initMsg)
-
isViewAuthorized
protected boolean isViewAuthorized(@Nonnull ViewInstanceId viewInstanceId, @Nonnull ViewConfig viewConfig)
- Overrides:
isViewAuthorized
in classPageModel
-
createPropertyReference
@Nonnull public DesignerPropertyReference createPropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)
Description copied from interface:PerspectiveElement
Create aPropertyReference
with thisPerspectiveElement
as the target.- Specified by:
createPropertyReference
in interfacePerspectiveElement
- Overrides:
createPropertyReference
in classPageModel
- Parameters:
referencePath
- the path to the propertysubscriber
- the subscriber - aConsumer
ofPropertyTreeChangeEvent
sacceptableOrigins
- theSet
ofOrigin
s in which the subscriber is interested- Returns:
- the
PropertyReference
-
-