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.

ParameterDescription
portableIdportable id of the config item being added
typeconfig item type the item is grouped under
propsthe 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.

ParameterDescription
namedthe object to derive the portable id and type name from
propsthe 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.

ParameterDescription
portableIdportable id of the config item being added
typeconfig 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.

ParameterDescription
namedthe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.