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
ResourceCollection. 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 classUsed to provide scripting access to some metadata about the project -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal Stringfinal Map<ResourceId,String> final booleanfinal Stringfinal Stringfinal ProjectConfigfinal booleanfinal Stringfinal SystemEventsConfig -
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveProject(ProjectConfig projectConfig, boolean runnable, Map<ResourceId, String> compiledStyles, SystemEventsConfig systemEvents, RuntimeResourceCollection.EffectiveSnapshot 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<ResourceId, String> compiledStyles, @Nonnull SystemEventsConfig systemEvents, @Nonnull RuntimeResourceCollection.EffectiveSnapshot 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
-