Constructor and Description |
---|
ChannelContext.Builder(EnvironmentService env,
EncryptionService enc,
String hostname)
Override using
ssh.hostname (if present) |
ChannelContext.Builder(EnvironmentService env,
String hostname)
Override using
ssh.hostname (if present) |
Modifier and Type | Method and Description |
---|---|
static EncContext.Builder |
EncContext.builder(EnvironmentService env)
Deprecated.
|
Constructor and Description |
---|
EncContext.Builder(EnvironmentService env)
Locate the encryption password in the environment
|
EncContext.Builder(EnvironmentService env,
String password)
Use the password they gave us, unless it is overridden by a password in the environment
|
Modifier and Type | Method and Description |
---|---|
EnvironmentService |
DefaultProjectService.getEnv() |
Constructor and Description |
---|
DefaultProjectService(EnvironmentService env) |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Optional<Boolean> |
SpringUtils.getBoolean(EnvironmentService env,
String key,
com.google.common.base.Optional<Boolean> provided) |
static com.google.common.base.Optional<Integer> |
SpringUtils.getInteger(EnvironmentService env,
String key,
com.google.common.base.Optional<Integer> provided) |
static long |
SpringUtils.getMillis(EnvironmentService env,
String key,
String defaultValue)
Parse milliseconds from a time string that ends with a unit of measure.
|
static int |
SpringUtils.getMillisAsInt(EnvironmentService env,
String key,
int defaultValue)
Parse milliseconds from a time string that ends with a unit of measure.
|
static com.google.common.base.Optional<Integer> |
SpringUtils.getMillisAsInt(EnvironmentService env,
String key,
com.google.common.base.Optional<Integer> provided)
Parse milliseconds from a time string that ends with a unit of measure.
|
static int |
SpringUtils.getMillisAsInt(EnvironmentService env,
String key,
String defaultValue)
Parse milliseconds from a time string that ends with a unit of measure.
|
static List<String> |
SpringUtils.getNoneSensitiveListFromCSV(EnvironmentService env,
String key)
If the CSV value evaluates to
null , "null" , "none" or the empty string, return an empty list. |
static List<String> |
SpringUtils.getNoneSensitiveListFromCSV(EnvironmentService env,
String key,
String defaultValue)
If the CSV value evaluates to
null , "null" , "none" or the empty string, return an empty list. |
static com.google.common.base.Optional<Boolean> |
SpringUtils.getOptionalBoolean(EnvironmentService env,
String key) |
static com.google.common.base.Optional<Integer> |
SpringUtils.getOptionalInteger(EnvironmentService env,
String key) |
static <T> com.google.common.base.Optional<T> |
SpringUtils.getOptionalProperty(EnvironmentService env,
List<String> keys,
Class<T> type)
If there is no value for
key return Optional.absent(), otherwise return Optional.of(value) |
static <T> com.google.common.base.Optional<T> |
SpringUtils.getOptionalProperty(EnvironmentService env,
String key,
Class<T> type)
If there is no value for
key return Optional.absent(), otherwise return Optional.of(value) |
static com.google.common.base.Optional<String> |
SpringUtils.getOptionalString(EnvironmentService env,
String key)
If there is no value for
key or the value is NULL or NONE, return Optional.absent(), otherwise return Optional.of(value) |
static com.google.common.base.Optional<List<String>> |
SpringUtils.getOptionalStrings(EnvironmentService env,
List<String> keys)
If the environment contains a value for any of the elements in
keys (NONE sensitive) use the environment value, otherwise return Optional.absent() |
static String |
SpringUtils.getString(EnvironmentService env,
List<String> keys) |
static com.google.common.base.Optional<String> |
SpringUtils.getString(EnvironmentService env,
List<String> keys,
com.google.common.base.Optional<String> provided) |
static com.google.common.base.Optional<String> |
SpringUtils.getString(EnvironmentService env,
String key,
com.google.common.base.Optional<String> provided) |
static List<String> |
SpringUtils.getStrings(EnvironmentService env,
String key,
List<String> defaults)
If the environment contains a value for
key (NONE sensitive) use the environment value, otherwise use the defaults. |
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.base.Optional<T> |
SpringUtils.getProperty(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
Class<T> type,
com.google.common.base.Optional<T> provided) |
static <T> T |
SpringUtils.getProperty(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
Class<T> type,
T provided) |
static <T> com.google.common.base.Optional<T> |
SpringUtils.getProperty(com.google.common.base.Optional<EnvironmentService> env,
String key,
Class<T> type,
com.google.common.base.Optional<T> provided) |
static com.google.common.base.Optional<String> |
SpringUtils.getString(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
com.google.common.base.Optional<String> provided) |
Modifier and Type | Class and Description |
---|---|
class |
BasicEnvironmentService
By default, an exception is thrown if a value cannot be located (unless a default value has been supplied).
|
class |
DefaultEnvironmentService
Deprecated.
Use BasicEnvironmentService instead
|
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Optional<EnvironmentService> |
EnvUtils.ABSENT |
Modifier and Type | Method and Description |
---|---|
static long |
EnvUtils.getBytes(EnvironmentService env,
String key,
long provided)
If the environment contains a string under this key, convert it into a long signifying bytes
|
Modifier and Type | Method and Description |
---|---|
EnvironmentService |
SpringServiceConfig.environmentService() |
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.