Class PerspectiveProject
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.api.PerspectiveProject
-
public class PerspectiveProject extends java.lang.ObjectA PerspectiveProject is a simple container of aProjectConfig, concatenated compiled CSS style resources, and theMapof all style resource IDs to their compiled CSS in theProject. The Map of style resources should be considered immutable and could throwRuntimeExceptionsif altered in any way. The combined styles String is automatically generated from the injected compiled resources Map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerspectiveProject.SimplifiedGsonEncoderUsed to provide scripting access to some metadata about the project
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcombinedStylesjava.util.Map<ProjectResourceId,java.lang.String>compiledStylesbooleanforceIdpAuthjava.lang.Stringidpjava.lang.StringnameProjectConfigprojectConfigbooleanrunnableRuntimeProject.EffectiveProjectSnapshotsnapshotSystemEventsConfigsystemEvents
-
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.StringgetStyleHash()
-
-
-
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)
-
-