Class PermissionGroup
- java.lang.Object
-
- com.ensoftcorp.open.android.essentials.permissions.PermissionGroup
-
public class PermissionGroup extends java.lang.Object
An convenience object that encodes Android Permission Group property values- Author:
- Ben Holland, Vani Bojja
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addedInAPILevel()
Returns the API version the permission group was added instatic java.util.Collection<PermissionGroup>
getAllPermissionGroups()
Returns a collection of all known permission groupsjava.lang.String
getDescription()
Returns a description of the permission groupstatic PermissionGroup
getPermissionGroupByQualifiedName(java.lang.String qualifiedName)
Returns the permission group object matching the qualified permission name or null if the permission group is not found in the known permissions liststatic PermissionGroup
getPermissionGroupBySimpleName(java.lang.String simpleName)
Returns the permission group object matching the simple permission name or null if the permission group is not found in the known permissions listjava.util.HashSet<Permission>
getPermissions()
Returns a list of permissions associated with the permission groupjava.lang.String
getQualifiedName()
Returns the qualified permission group namejava.lang.String
getReference()
Returns the reference information for the source of this permission group or an empty string if there is no available referencejava.lang.String
getSimpleName()
Returns an unqualified permission group name
-
-
-
Field Detail
-
REFERENCE_SOURCES
public static java.lang.String[] REFERENCE_SOURCES
-
REFERENCE_DATE
public static java.util.Date REFERENCE_DATE
-
ACCESSIBILITY_FEATURES
public static final PermissionGroup ACCESSIBILITY_FEATURES
-
ACCOUNTS
public static final PermissionGroup ACCOUNTS
-
AFFECTS_BATTERY
public static final PermissionGroup AFFECTS_BATTERY
-
APP_INFO
public static final PermissionGroup APP_INFO
-
AUDIO_SETTINGS
public static final PermissionGroup AUDIO_SETTINGS
-
BLUETOOTH_NETWORK
public static final PermissionGroup BLUETOOTH_NETWORK
-
BOOKMARKS
public static final PermissionGroup BOOKMARKS
-
CALENDAR
public static final PermissionGroup CALENDAR
-
CAMERA
public static final PermissionGroup CAMERA
-
COST_MONEY
public static final PermissionGroup COST_MONEY
-
DEVELOPMENT_TOOLS
public static final PermissionGroup DEVELOPMENT_TOOLS
-
DEVICE_ALARMS
public static final PermissionGroup DEVICE_ALARMS
-
DISPLAY
public static final PermissionGroup DISPLAY
-
HARDWARE_CONTROLS
public static final PermissionGroup HARDWARE_CONTROLS
-
LOCATION
public static final PermissionGroup LOCATION
-
MESSAGES
public static final PermissionGroup MESSAGES
-
MICROPHONE
public static final PermissionGroup MICROPHONE
-
NETWORK
public static final PermissionGroup NETWORK
-
PERSONAL_INFO
public static final PermissionGroup PERSONAL_INFO
-
PHONE_CALLS
public static final PermissionGroup PHONE_CALLS
-
SCREENLOCK
public static final PermissionGroup SCREENLOCK
-
SOCIAL_INFO
public static final PermissionGroup SOCIAL_INFO
-
STATUS_BAR
public static final PermissionGroup STATUS_BAR
-
STORAGE
public static final PermissionGroup STORAGE
-
SYNC_SETTINGS
public static final PermissionGroup SYNC_SETTINGS
-
SYSTEM_CLOCK
public static final PermissionGroup SYSTEM_CLOCK
-
SYSTEM_TOOLS
public static final PermissionGroup SYSTEM_TOOLS
-
USER_DICTIONARY
public static final PermissionGroup USER_DICTIONARY
-
VOICEMAIL
public static final PermissionGroup VOICEMAIL
-
WALLPAPER
public static final PermissionGroup WALLPAPER
-
WRITE_USER_DICTIONARY
public static final PermissionGroup WRITE_USER_DICTIONARY
-
UNASSIGNED
public static final PermissionGroup UNASSIGNED
-
-
Method Detail
-
addedInAPILevel
public int addedInAPILevel()
Returns the API version the permission group was added in- Returns:
-
getQualifiedName
public java.lang.String getQualifiedName()
Returns the qualified permission group name- Returns:
-
getSimpleName
public java.lang.String getSimpleName()
Returns an unqualified permission group name- Returns:
-
getReference
public java.lang.String getReference()
Returns the reference information for the source of this permission group or an empty string if there is no available reference- Returns:
-
getPermissions
public java.util.HashSet<Permission> getPermissions()
Returns a list of permissions associated with the permission group- Returns:
-
getDescription
public java.lang.String getDescription()
Returns a description of the permission group- Returns:
-
getPermissionGroupByQualifiedName
public static PermissionGroup getPermissionGroupByQualifiedName(java.lang.String qualifiedName)
Returns the permission group object matching the qualified permission name or null if the permission group is not found in the known permissions list- Parameters:
qualifiedName
-- Returns:
-
getPermissionGroupBySimpleName
public static PermissionGroup getPermissionGroupBySimpleName(java.lang.String simpleName)
Returns the permission group object matching the simple permission name or null if the permission group is not found in the known permissions list- Parameters:
simpleName
-- Returns:
-
getAllPermissionGroups
public static java.util.Collection<PermissionGroup> getAllPermissionGroups()
Returns a collection of all known permission groups- Returns:
-
-