public class UserPreferencePermission extends BasicPermission
The permission name can either be "read" or "write". The
"read" permission allows an application to read the user
preferences and settings (using UserPreferenceManager.read) for
which read access is not always granted. Access to
the following settings/preferences is always granted:
"User Language", "Parental Rating", "Default Font Size" and "Country Code"
The "write" permission allows
an application to modify user preferences and settings
(using UserPreferenceManager.write).
| Constructor and Description |
|---|
UserPreferencePermission(String name)
Creates a new UserPreferencePermission with the
specified name.
|
UserPreferencePermission(String name,
String actions)
Creates a new UserPreferencePermission object with the specified
name.
|
equals, getActions, hashCode, implies, newPermissionCollectioncheckGuard, getName, toStringpublic UserPreferencePermission(String name)
name - the name of the UserPreferencePermissionpublic UserPreferencePermission(String name, String actions)
name - the name of the UserPreferencePermissionactions - should be null.Copyright © 2012 code4tv.com. All Rights Reserved.