public final class ApplicationPolicy
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Android Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
ApplicationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationPolicy |
clone() |
java.util.List<java.lang.String> |
getAccessibleTrackIds()
List of the app’s track IDs that a device belonging to the enterprise can access.
|
java.lang.String |
getDefaultPermissionPolicy()
The default policy for all permissions requested by the app.
|
java.util.List<java.lang.String> |
getDelegatedScopes()
The scopes delegated to the app from Android Device Policy.
|
java.lang.Boolean |
getDisabled()
Whether the app is disabled.
|
java.lang.String |
getInstallType()
The type of installation to perform.
|
java.lang.Boolean |
getLockTaskAllowed()
Whether the app is allowed to lock itself in full-screen mode.
|
java.util.Map<java.lang.String,java.lang.Object> |
getManagedConfiguration()
Managed configuration applied to the app.
|
ManagedConfigurationTemplate |
getManagedConfigurationTemplate()
The managed configurations template for the app, saved from the managed configurations iframe.
|
java.lang.Integer |
getMinimumVersionCode()
The minimum version of the app that runs on the device.
|
java.lang.String |
getPackageName()
The package name of the app.
|
java.util.List<PermissionGrant> |
getPermissionGrants()
Explicit permission grants or denials for the app.
|
ApplicationPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
ApplicationPolicy |
setAccessibleTrackIds(java.util.List<java.lang.String> accessibleTrackIds)
List of the app’s track IDs that a device belonging to the enterprise can access.
|
ApplicationPolicy |
setDefaultPermissionPolicy(java.lang.String defaultPermissionPolicy)
The default policy for all permissions requested by the app.
|
ApplicationPolicy |
setDelegatedScopes(java.util.List<java.lang.String> delegatedScopes)
The scopes delegated to the app from Android Device Policy.
|
ApplicationPolicy |
setDisabled(java.lang.Boolean disabled)
Whether the app is disabled.
|
ApplicationPolicy |
setInstallType(java.lang.String installType)
The type of installation to perform.
|
ApplicationPolicy |
setLockTaskAllowed(java.lang.Boolean lockTaskAllowed)
Whether the app is allowed to lock itself in full-screen mode.
|
ApplicationPolicy |
setManagedConfiguration(java.util.Map<java.lang.String,java.lang.Object> managedConfiguration)
Managed configuration applied to the app.
|
ApplicationPolicy |
setManagedConfigurationTemplate(ManagedConfigurationTemplate managedConfigurationTemplate)
The managed configurations template for the app, saved from the managed configurations iframe.
|
ApplicationPolicy |
setMinimumVersionCode(java.lang.Integer minimumVersionCode)
The minimum version of the app that runs on the device.
|
ApplicationPolicy |
setPackageName(java.lang.String packageName)
The package name of the app.
|
ApplicationPolicy |
setPermissionGrants(java.util.List<PermissionGrant> permissionGrants)
Explicit permission grants or denials for the app.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<java.lang.String> getAccessibleTrackIds()
null for nonepublic ApplicationPolicy setAccessibleTrackIds(java.util.List<java.lang.String> accessibleTrackIds)
accessibleTrackIds - accessibleTrackIds or null for nonepublic java.lang.String getDefaultPermissionPolicy()
null for nonepublic ApplicationPolicy setDefaultPermissionPolicy(java.lang.String defaultPermissionPolicy)
defaultPermissionPolicy - defaultPermissionPolicy or null for nonepublic java.util.List<java.lang.String> getDelegatedScopes()
null for nonepublic ApplicationPolicy setDelegatedScopes(java.util.List<java.lang.String> delegatedScopes)
delegatedScopes - delegatedScopes or null for nonepublic java.lang.Boolean getDisabled()
null for nonepublic ApplicationPolicy setDisabled(java.lang.Boolean disabled)
disabled - disabled or null for nonepublic java.lang.String getInstallType()
null for nonepublic ApplicationPolicy setInstallType(java.lang.String installType)
installType - installType or null for nonepublic java.lang.Boolean getLockTaskAllowed()
null for nonepublic ApplicationPolicy setLockTaskAllowed(java.lang.Boolean lockTaskAllowed)
lockTaskAllowed - lockTaskAllowed or null for nonepublic java.util.Map<java.lang.String,java.lang.Object> getManagedConfiguration()
null for nonepublic ApplicationPolicy setManagedConfiguration(java.util.Map<java.lang.String,java.lang.Object> managedConfiguration)
managedConfiguration - managedConfiguration or null for nonepublic ManagedConfigurationTemplate getManagedConfigurationTemplate()
null for nonepublic ApplicationPolicy setManagedConfigurationTemplate(ManagedConfigurationTemplate managedConfigurationTemplate)
managedConfigurationTemplate - managedConfigurationTemplate or null for nonepublic java.lang.Integer getMinimumVersionCode()
null for nonepublic ApplicationPolicy setMinimumVersionCode(java.lang.Integer minimumVersionCode)
minimumVersionCode - minimumVersionCode or null for nonepublic java.lang.String getPackageName()
null for nonepublic ApplicationPolicy setPackageName(java.lang.String packageName)
packageName - packageName or null for nonepublic java.util.List<PermissionGrant> getPermissionGrants()
null for nonepublic ApplicationPolicy setPermissionGrants(java.util.List<PermissionGrant> permissionGrants)
permissionGrants - permissionGrants or null for nonepublic ApplicationPolicy set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ApplicationPolicy clone()
clone in class com.google.api.client.json.GenericJson