public interface

MAMAppConfigBase

com.microsoft.intune.mam.policy.appconfig.MAMAppConfigBase
Known Indirect Subclasses

Class Overview

Represents the custom app configuration data configured for a given user with MAM or with Android Enterprise. It allows the caller to query for specific values, or to retrieve the raw config data.

Summary

Public Methods
abstract List<Boolean> getAllBooleansForKey(String key)
Returns a List of Boolean for the given key.
abstract List<Double> getAllDoublesForKey(String key)
Returns a List of Double for the given key.
abstract List<Long> getAllIntegersForKey(String key)
Returns a List of Long for the given key.
abstract List<String> getAllStringsForKey(String key)
Returns a List of String for the given key.
abstract List<Map<String, String>> getFullData()
Retrieve the List of Dictionaries containing all the custom config data sent by the MAM Service.
abstract boolean hasConflict(String key)
returns true if there is more than one targeted custom config setting for the key provided.

Public Methods

public abstract List<Boolean> getAllBooleansForKey (String key)

Returns a List of Boolean for the given key. The List will be empty if there are no values for the key or if none of the values present can be coerced into a Boolean. The value from the default configuration will only be provided if there are no other values for the key.

Parameters
key the dictionary key of the value being queried.
Returns
  • a List of Booleans.

public abstract List<Double> getAllDoublesForKey (String key)

Returns a List of Double for the given key. The List will be empty if there are no values for the key or if none of the values present can be coerced into a Double. The value from the default configuration will only be provided if there are no other values for the key.

Parameters
key the dictionary key of the value being queried.
Returns
  • a List of Double.

public abstract List<Long> getAllIntegersForKey (String key)

Returns a List of Long for the given key. The List will be empty if there are no values for the key or if none of the values present can be coerced into a Long. The value from the default configuration will only be provided if there are no other values for the key.

Parameters
key the dictionary key of the value being queried.
Returns
  • a List of Longs.

public abstract List<String> getAllStringsForKey (String key)

Returns a List of String for the given key. The List will be empty if there are no values for the key. The value from the default configuration will only be provided if there are no other values for the key.

Parameters
key the dictionary key of the value being queried.
Returns
  • a List of String.

public abstract List<Map<String, String>> getFullData ()

Retrieve the List of Dictionaries containing all the custom config data sent by the MAM Service. This will return every Application Configuration setting provided by the service for this user. If a user is in a targeted security group that receives Application Configuration data, that data will be provided. If the user is in multiple targeted security groups that receive Application Configuration data, the data for the configurations for all of the security groups will be provided. If the user is not in a targeted security group that receives Application Configuration data but is on a tenant that has tenant wide Application Configuration settings, that data will be provided. If the user is in one or more of the above categories, a conglomeration of all the data will be provided. If a configuration dictionary was sent as a tenant wide default configuration, the __IsDefault key will be present in that dictionary and the value for that key will be set to true. The __IsDefault key will only be present in the dictionary representing the tenant wide default configuration. All other configuration dictionaries will contain targeted policies.

Returns
  • a list of dictionaries containing the config data as key-value pairs.

public abstract boolean hasConflict (String key)

returns true if there is more than one targeted custom config setting for the key provided. Returns false if there is a default configuration setting for the key as well as a single targeted App Configuration setting, as the targeted setting should take precedence and there is no need for further conflict resolution. This method will return false if there were no App Configuration settings sent from the MAMService for the key requested. This method also considers values that are identical as non-conflicting.

Parameters
key the dictionary key of the value to determine if conflicts exist for.
Returns
  • true if there are conflicting settings, false otherwise.