Package com.streambase.liveview.client
Class LiveViewPermission
java.lang.Object
com.streambase.liveview.client.LiveViewPermission
Class that defines LiveView permissions. A permission consists of three colon-delimited subfields: type, action, and instance.
Thus, for example, "table:query:ItemsSales" represents the permission necessary to query the ItemsSales table. Various constructors
are provided for creating permission objects using either the enumerations defined below or strings.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOne-argument constructor that wildcards the action and instance fieldsTwo-argument constructor that wildcards the instance fieldsLiveViewPermission
(LiveViewPermission.Type type, LiveViewPermission.Action action, String instance) Constructor that uses enum argumentsLiveViewPermission
(String type, String action, String instance) Constructor that uses string arguments -
Method Summary
Modifier and TypeMethodDescriptiongetType()
static String
makeShort
(LiveViewPermission.Type type, LiveViewPermission.Action action) toString()
-
Field Details
-
WILDCARD
- See Also:
-
-
Constructor Details
-
LiveViewPermission
One-argument constructor that wildcards the action and instance fields- Parameters:
type
- the permission type
-
LiveViewPermission
Two-argument constructor that wildcards the instance fields- Parameters:
type
- the permission typeaction
- the permission action
-
LiveViewPermission
public LiveViewPermission(LiveViewPermission.Type type, LiveViewPermission.Action action, String instance) Constructor that uses enum arguments- Parameters:
type
- the permission typeaction
- the permission actioninstance
- the permission instance
-
LiveViewPermission
Constructor that uses string arguments- Parameters:
type
- the permission typeaction
- the permission actioninstance
- the permission instance
-
-
Method Details