Interface Multiple<T>
- Type Parameters:
T- The type of the sub-configurations.
An object that gives access to multiple sub-configurations from an annotated service.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the instance of sub-configuration provided.defaults()Gets the default attribute values for this configuration.voidDelete the instance of sub-configuration identified by the provided name, if it exists.Get the instance of sub-configuration identified by the provided name.get(QueryFilter<String> queryFilter) Gets all instances of sub-configuration which match the provided query filter.get(QueryFilter<String> queryFilter, boolean allowWildcards) Gets all instances of sub-configuration which match the provided query filter.idSet()Deprecated.nameSet()Get the set of names for instances that currently exist.static <T> Multiple<T>Creates a Multiple which can be used inServiceComponentto build nested default SubConfigs easier.voidUpdate the values for the configuration identified by the provided name.
-
Method Details
-
of
Creates a Multiple which can be used inServiceComponentto build nested default SubConfigs easier. Can only be used for SubConfigs inside of another SubConfig.- Parameters:
config- A map representing the instance values.- Returns:
- The non-persistent instances.
-
get
Get the instance of sub-configuration identified by the provided name.- Parameters:
name- The name of the configuration.- Returns:
- The configuration instance, or null if none exists for the identifier.
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
get
Gets all instances of sub-configuration which match the provided query filter.- Parameters:
queryFilter- The filter to use for matching.- Returns:
- The configuration instances.
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
get
@Supported Set<T> get(QueryFilter<String> queryFilter, boolean allowWildcards) throws SMSException, SSOException Gets all instances of sub-configuration which match the provided query filter.- Parameters:
queryFilter- The filter to use for matching.allowWildcards- Whether to allow wildcard characters in the query filter. If false, wildcard characters will be treated as literal characters.- Returns:
- The configuration instances.
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
delete
Delete the instance of sub-configuration identified by the provided name, if it exists.- Parameters:
name- The name of the configuration.- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
nameSet
Get the set of names for instances that currently exist.- Returns:
- The names
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
idSet
Deprecated.usenameSet()instead.Get the set of IDs for instances that currently exist.- Returns:
- The IDs
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
add
Add the instance of sub-configuration provided.- Parameters:
name- The name of the configuration.config- The configuration values.- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.IllegalArgumentException- If the name is already in use.
-
update
Update the values for the configuration identified by the provided name.- Parameters:
name- The name.config- The instance values.- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.IllegalArgumentException- If the name does not have an existing instance.
-
defaults
Gets the default attribute values for this configuration.- Returns:
- The default attribute values.
- Throws:
SMSException- From the downstream SMS API.SSOException- From the downstream SMS API.
-
nameSet()instead.