Builder used by an app's appendConfig implementation to add the app's config items, such as settings or app-specific entities, into an AccountConfigSnapshot being assembled. An instance is handed to appendConfig by the account manager, which obtains it from AccountConfigSnapshot.newConfigItemBuilder using the app's instance id. Items are grouped by config item type as they are added, and the resulting groups are written into the owning snapshot when build is called.
Group: Builders
Methods
add(String portableId, String type, Map<String,? extends Serializable> props)
Returns: void
Adds a config item with the given portable id, type and properties to this builder.
| Parameter | Description |
|---|---|
portableId | portable id of the config item being added |
type | config item type the item is grouped under |
props | the item's property values |
add(PortableId named, Map<String,? extends Serializable> props)
Returns: void
Adds a config item to this builder using the portable id and type name derived from a Named database object.
| Parameter | Description |
|---|---|
named | the object to derive the portable id and type name from |
props | the item's property values |
add(String portableId, String type)
Returns: ConfigPropertiesMap
Adds a config item with the given portable id and type to this builder, and returns a ConfigPropertiesMap the caller can populate with the item's properties.
| Parameter | Description |
|---|---|
portableId | portable id of the config item being added |
type | config item type the item is grouped under |
add(PortableId named)
Returns: ConfigPropertiesMap
Adds a config item to this builder using the portable id and type name derived from a Named database object, and returns a ConfigPropertiesMap the caller can populate with the item's properties.
| Parameter | Description |
|---|---|
named | the object to derive the portable id and type name from |
build()
Returns: void
Writes the config item groups accumulated by this builder into the owning AccountConfigSnapshot under this builder's id.