Package com.streambase.liveview.client
Class LiveViewPermission
- java.lang.Object
-
- com.streambase.liveview.client.LiveViewPermission
-
public class LiveViewPermission extends Object
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
Nested Classes Modifier and Type Class Description static class
LiveViewPermission.Action
static class
LiveViewPermission.Type
-
Constructor Summary
Constructors Constructor Description LiveViewPermission(LiveViewPermission.Type type)
One-argument constructor that wildcards the action and instance fieldsLiveViewPermission(LiveViewPermission.Type type, LiveViewPermission.Action action)
Two-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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
String
getInstance()
String
getType()
static String
makeShort(LiveViewPermission.Type type, LiveViewPermission.Action action)
String
toString()
String
toStringShort()
-
-
-
Field Detail
-
WILDCARD
public static final String WILDCARD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LiveViewPermission
public LiveViewPermission(LiveViewPermission.Type type)
One-argument constructor that wildcards the action and instance fields- Parameters:
type
- the permission type
-
LiveViewPermission
public LiveViewPermission(LiveViewPermission.Type type, LiveViewPermission.Action action)
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
-
-
Method Detail
-
getType
public String getType()
-
getAction
public String getAction()
-
getInstance
public String getInstance()
-
makeShort
public static String makeShort(LiveViewPermission.Type type, LiveViewPermission.Action action)
-
toStringShort
public String toStringShort()
-
-