Interface PerspectiveElement
- All Superinterfaces:
- AuditingContext,- LoggingContext,- PropertyTreeOwner
- All Known Subinterfaces:
- Component,- InternalSession,- Page,- Session,- View
- All Known Implementing Classes:
- AbstractSession,- ComponentModel,- DesignerComponentModel,- DesignerPageModel,- DesignerViewModel,- PageModel,- PerspectiveDesignSession,- PerspectiveProjectSession,- SecuredPerspectiveProjectSession,- SessionKernelWrapper,- ViewModel
- 
Method SummaryModifier and TypeMethodDescriptioncreatePropertyReference(String referencePath, Consumer<PropertyTreeChangeEvent> subscriber, Set<Origin> acceptableOrigins) Create aPropertyReferencewith thisPerspectiveElementas the target.default Optional<AuditProfile>getName()getPage()default StringgetView()booleanMethods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextaudit, getAuditSnapshotMethods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextgetLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrapMethods inherited from interface com.inductiveautomation.perspective.gateway.api.PropertyTreeOwnergetPropertyTreeOf
- 
Method Details- 
getNameString getName()- Returns:
- The name of the element. If this is a component, it will be the name of the component. If this is a View, the name will be "view". If this is a Page, the name will be "page". If this is the session, the name will be "session".
 
- 
getQualifiedPath- Returns:
- The qualified name of the element. If session or page, this is just the name. If a view or component, is the logical path starting at the view id.
 
- 
getView- Returns:
- The view within which this element exists, or null if this is a Page or Session
 
- 
getPage- Returns:
- The Page that this element is part of. Will return null if this is the Session
 
- 
getSession- Returns:
- The session that this element is a part of.
 
- 
createPropertyReference@Nonnull PropertyReference createPropertyReference(String referencePath, Consumer<PropertyTreeChangeEvent> subscriber, Set<Origin> acceptableOrigins) Create aPropertyReferencewith thisPerspectiveElementas the target.- Parameters:
- referencePath- the path to the property
- subscriber- the subscriber - a- Consumerof- PropertyTreeChangeEvents
- acceptableOrigins- the- Setof- Origins in which the subscriber is interested
- Returns:
- the PropertyReference
 
- 
getAuditProfile- Specified by:
- getAuditProfilein interface- AuditingContext
- Returns:
- an Optionalcontaining theAuditProfilefor this context or an emptyOptionalif no audit profile is set
 
- 
isRunningboolean isRunning()- See Also:
 
 
-