public interface ViewContext
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_ATTRIBUTE
Key for mapping a view context as a property.
|
Modifier and Type | Method and Description |
---|---|
String |
getAmbariProperty(String key)
Get a property for the given key from the ambari configuration.
|
Map<String,String> |
getInstanceData()
Get the instance data values.
|
String |
getInstanceData(String key)
Get the instance data value for the given key.
|
String |
getInstanceName()
Get the view instance name.
|
Map<String,String> |
getProperties()
Get the property values specified to create the view instance.
|
ResourceProvider<?> |
getResourceProvider(String type)
Get the view resource provider for the given resource type.
|
URLStreamProvider |
getURLStreamProvider()
Get a URL stream provider.
|
String |
getUsername()
Get the current user name.
|
String |
getViewName()
Get the view name.
|
void |
putInstanceData(String key,
String value)
Save an instance data value for the given key.
|
void |
removeInstanceData(String key)
Remove the instance data value for the given key.
|
static final String CONTEXT_ATTRIBUTE
String getUsername()
String getViewName()
String getInstanceName()
Map<String,String> getProperties()
void putInstanceData(String key, String value)
key
- the keyvalue
- the valueString getInstanceData(String key)
key
- the keyMap<String,String> getInstanceData()
void removeInstanceData(String key)
key
- the keyString getAmbariProperty(String key)
key
- the property keyResourceProvider<?> getResourceProvider(String type)
type
- the resource typeURLStreamProvider getURLStreamProvider()
Copyright © 2014. All rights reserved.