Class ApplicationScope
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.model.ApplicationScope
 
- 
 public final class ApplicationScope extends java.lang.ObjectVarious parts of the system allow operations to be filtered based on "scope". This class defines various values and masks that can be used as those parameters.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetGlobalScope()Returns the scope of this jvm, wherever it may be.static java.lang.StringgetScopePrefix()Returns the current jvm's scope prefix, for use in thread names.static voidinit(int globalScope)static booleanisClient(int scope)static booleanisDesigner(int scope)static booleanisGateway(int scope)static intparseScope(java.lang.String s)Returns a bitmask representing application scope for strings like:static java.lang.StringtoCode(int scope)Turns a scope int into the various scope codes: "C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all.static java.lang.StringtoString(int scope)static java.lang.StringtoString(java.lang.Integer scope, java.util.Locale locale)
 
- 
- 
- 
Field Detail- 
NONEpublic static final int NONE - See Also:
- Constant Field Values
 
 - 
GATEWAYpublic static final int GATEWAY - See Also:
- Constant Field Values
 
 - 
DESIGNERpublic static final int DESIGNER - See Also:
- Constant Field Values
 
 - 
CLIENTpublic static final int CLIENT - See Also:
- Constant Field Values
 
 - 
ALLpublic static final int ALL - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
parseScopepublic static int parseScope(java.lang.String s) Returns a bitmask representing application scope for strings like:"C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all 
 - 
initpublic static void init(int globalScope) 
 - 
getGlobalScopepublic static int getGlobalScope() Returns the scope of this jvm, wherever it may be. Some code (such as code in common) doesn't know where it will end up running, and this is one way to tell where you are.
 - 
getScopePrefixpublic static java.lang.String getScopePrefix() Returns the current jvm's scope prefix, for use in thread names. "gateway", "designer" or "client"
 - 
isGatewaypublic static boolean isGateway(int scope) 
 - 
isClientpublic static boolean isClient(int scope) 
 - 
isDesignerpublic static boolean isDesigner(int scope) 
 - 
toStringpublic static java.lang.String toString(int scope) 
 - 
toStringpublic static java.lang.String toString(java.lang.Integer scope, java.util.Locale locale)
 - 
toCodepublic static java.lang.String toCode(int scope) Turns a scope int into the various scope codes: "C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all. Scope codes can be combined (such as "CD"), but "A" is always returned instead of "CDG"
 
- 
 
-