Class PerspectiveProject
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.api.PerspectiveProject
-
public class PerspectiveProject extends java.lang.Object
A PerspectiveProject is a simple container of aProjectConfig
, concatenated compiled CSS style resources, and theMap
of all style resource IDs to their compiled CSS in theProject
. The Map of style resources should be considered immutable and could throwRuntimeExceptions
if altered in any way. The combined styles String is automatically generated from the injected compiled resources Map.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
combinedStyles
java.util.Map<ProjectResourceId,java.lang.String>
compiledStyles
boolean
forceIdpAuth
java.lang.String
idp
java.lang.String
name
ProjectConfig
projectConfig
boolean
runnable
RuntimeProject.EffectiveProjectSnapshot
snapshot
SystemEventsConfig
systemEvents
-
Constructor Summary
Constructors Constructor Description PerspectiveProject(ProjectConfig projectConfig, boolean runnable, java.util.Map<ProjectResourceId,java.lang.String> compiledStyles, SystemEventsConfig systemEvents, RuntimeProject.EffectiveProjectSnapshot snapshot, java.lang.String idp, boolean forceIdpAuth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getIdp()
java.lang.String
getStyleHash()
-
-
-
Field Detail
-
name
public final java.lang.String name
-
runnable
public final boolean runnable
-
projectConfig
public final ProjectConfig projectConfig
-
compiledStyles
public final java.util.Map<ProjectResourceId,java.lang.String> compiledStyles
-
combinedStyles
public final java.lang.String combinedStyles
-
systemEvents
public final SystemEventsConfig systemEvents
-
snapshot
public final RuntimeProject.EffectiveProjectSnapshot snapshot
-
idp
public final java.lang.String idp
-
forceIdpAuth
public final boolean forceIdpAuth
-
-
Constructor Detail
-
PerspectiveProject
public PerspectiveProject(@Nonnull ProjectConfig projectConfig, boolean runnable, @Nonnull java.util.Map<ProjectResourceId,java.lang.String> compiledStyles, @Nonnull SystemEventsConfig systemEvents, @Nonnull RuntimeProject.EffectiveProjectSnapshot snapshot, @Nullable java.lang.String idp, boolean forceIdpAuth)
-
-