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 classDesignerPageModel.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.HandlerscreateHandlers(com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log)DesignerPropertyReferencecreatePropertyReference(java.lang.String referencePath, java.util.function.Consumer<PropertyTreeChangeEvent> subscriber, java.util.Set<Origin> acceptableOrigins)Create aPropertyReferencewith thisPerspectiveElementas the target.protected java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<java.util.Optional<ViewConfig>>>createViewConfigLoader()voidinit(DesignerInitMsg initMsg)protected booleanisViewAuthorized(ViewInstanceId viewInstanceId, ViewConfig viewConfig)protected voidonShutdown()-
Methods inherited from class com.inductiveautomation.perspective.gateway.model.PageModel
briefReport, close, disconnect, getAuditSnapshot, getCreated, getId, getLogger, getMdcParent, getName, getPage, getPageEventBus, getPropertyTreeOf, getSession, getView, getViews, isConnected, mdcSetup, mdcTeardown, notifyConnected, notifyDisconnected, notifyProjectUpdated, onKeepaliveReceived, onSessionPropertyChange, onStartup, receive, report, send, send, sendGatewayLastActiveTime, 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:
onShutdownin classPageModel
-
createHandlers
protected PageModel.Handlers createHandlers(com.inductiveautomation.ignition.common.gson.Gson gson, LoggerEx log)
- Overrides:
createHandlersin classPageModel
-
createViewConfigLoader
protected java.util.function.Function<java.lang.String,java.util.concurrent.CompletableFuture<java.util.Optional<ViewConfig>>> createViewConfigLoader()
- Overrides:
createViewConfigLoaderin classPageModel
-
init
public void init(DesignerInitMsg initMsg)
-
isViewAuthorized
protected boolean isViewAuthorized(@Nonnull ViewInstanceId viewInstanceId, @Nonnull ViewConfig viewConfig)- Overrides:
isViewAuthorizedin 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:PerspectiveElementCreate aPropertyReferencewith thisPerspectiveElementas the target.- Specified by:
createPropertyReferencein interfacePerspectiveElement- Overrides:
createPropertyReferencein classPageModel- Parameters:
referencePath- the path to the propertysubscriber- the subscriber - aConsumerofPropertyTreeChangeEventsacceptableOrigins- theSetofOrigins in which the subscriber is interested- Returns:
- the
PropertyReference
-
-