Class PerspectiveProject
java.lang.Object
com.inductiveautomation.perspective.gateway.api.PerspectiveProject
A PerspectiveProject is a simple container of a
ProjectConfig
, concatenated compiled CSS style resources,
and the Map
of all style resource IDs to their compiled CSS in the Project
. The Map of style
resources should be considered immutable and could throw RuntimeExceptions
if altered in
any way. The combined styles String is automatically generated from the injected compiled resources Map.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Used to provide scripting access to some metadata about the project -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
final String
final Map<ProjectResourceId,
String> final boolean
final String
final String
final ProjectConfig
final boolean
final String
final SystemEventsConfig
-
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveProject
(ProjectConfig projectConfig, boolean runnable, Map<ProjectResourceId, String> compiledStyles, SystemEventsConfig systemEvents, RuntimeProject.EffectiveProjectSnapshot snapshot, String idp, boolean forceIdpAuth, boolean autoIdpAuth, String stylesheet) -
Method Summary
-
Field Details
-
name
-
runnable
public final boolean runnable -
projectConfig
-
compiledStyles
-
combinedStyles
-
systemEvents
-
snapshot
-
idp
-
forceIdpAuth
public final boolean forceIdpAuth -
autoIdpAuth
public final boolean autoIdpAuth -
stylesheet
-
-
Constructor Details
-
PerspectiveProject
public PerspectiveProject(@Nonnull ProjectConfig projectConfig, boolean runnable, @Nonnull Map<ProjectResourceId, String> compiledStyles, @Nonnull SystemEventsConfig systemEvents, @Nonnull RuntimeProject.EffectiveProjectSnapshot snapshot, @Nullable String idp, boolean forceIdpAuth, boolean autoIdpAuth, @Nullable String stylesheet)
-
-
Method Details
-
getStyleHash
- Returns:
- a string that represents the uniqueness of the styles of this project.
-
getSymbolStylesHash
-
getIdp
- Returns:
- the name of the default Identity Provider for this project
-