FileDocCategorySizeDatePackage
PermissionGroup.javaAPI DocphoneME MR2 API (J2ME)6142Wed May 02 18:00:26 BST 2007com.sun.midp.security

PermissionGroup

public final class PermissionGroup extends Object
The attributes of a permission group.

Fields Summary
private int
name
Name string ID.
private int
settingsQuestion
Settings question ID.
private int
disableSettingChoice
Disable setting choice string ID.
private int
runtimeDialogTitle
Title string ID for the permission dialog.
private int
runtimeQuestion
Question string ID for the permission dialog.
private int
runtimeOneshotQuestion
Oneshot question string ID for the permission dialog.
private byte
identifiedMaxiumLevel
Identified Third Party domain maxium permission level.
private byte
identifiedDefaultLevel
Identified Third Party domain default permission level.
private byte
unidentifiedMaxiumLevel
Unidentified Third Party domain maxium permission level.
private byte
unidentifiedDefaultLevel
Unidentified Third Party domain default permission level.
Constructors Summary
PermissionGroup(int theName, int theSettingsQuestion, int theDisableSettingChoice, int theRuntimeDialogTitle, int theRuntimeQuestion, int theRuntimeOneshotQuestion, byte theIdentifiedMaxiumLevel, byte theIdentifiedDefaultLevel, byte theUnidentifiedMaxiumLevel, byte theUnidentifiedDefaultLevel)
Constructs a third party domain permission group.

param
theName name of the group
param
theSettingsQuestion question for the settings dialog
param
theDisableSettingChoice disable setting choice
param
theRuntimeDialogTitle Title for the runtime permission dialog
param
theRuntimeQuestion Question for the runtime permission dialog
param
theRuntimeOneshotQuestion Oneshot question for the runtime permission dialog
param
theIdentifiedMaxiumLevel Identified Third Party domain maxium permission level
param
theIdentifiedDefaultLevel Identified Third Party domain default permission level
param
theUnidentifiedMaxiumLevel Unidentified Third Party domain maxium permission level
param
theUnidentifiedDefaultLevel Unidentified Third Party domain default permission level


        name = theName;
        settingsQuestion = theSettingsQuestion;
        disableSettingChoice = theDisableSettingChoice;
        runtimeDialogTitle = theRuntimeDialogTitle;
        runtimeQuestion = theRuntimeQuestion;
        identifiedMaxiumLevel = theIdentifiedMaxiumLevel;
        identifiedDefaultLevel = theIdentifiedDefaultLevel;
        unidentifiedMaxiumLevel = theUnidentifiedMaxiumLevel;
        unidentifiedDefaultLevel = theUnidentifiedDefaultLevel;
    
Methods Summary
public intgetDisableSettingChoice()
Get the disable setting choice string ID.

return
string ID or 0 if there is not disable setting choice

        return disableSettingChoice;
    
public bytegetIdentifiedDefaultLevel()
Get the identified Third Party domain default permission level.

return
permission level

        return identifiedDefaultLevel;
    
public bytegetIdentifiedMaxiumLevel()
Get the identified Third Party domain maxium permission level.

return
permission level

        return identifiedMaxiumLevel;
    
public intgetName()
Get the name string ID.

return
string ID or zero if there is no name for the settings dialog

        return name;
    
public intgetRuntimeDialogTitle()
Get the title string ID for the permission dialog.

return
string ID

        return runtimeDialogTitle;
    
public intgetRuntimeOneshotQuestion()
Get the oneshot question string ID for the permission dialog.

return
string ID

        if (runtimeOneshotQuestion == 0) {
            return runtimeQuestion;
        }

        return runtimeOneshotQuestion;
    
public intgetRuntimeQuestion()
Get the question string ID for the permission dialog.

return
string ID

        return runtimeQuestion;
    
public intgetSettingsQuestion()
Get the settings question ID.

return
stringID or 0 if there is no question

        return settingsQuestion;
    
public bytegetUnidentifiedDefaultLevel()
Get the unidentified Third Party domain default permission level.

return
permission level

        return unidentifiedDefaultLevel;
    
public bytegetUnidentifiedMaxiumLevel()
Get the unidentified Third Party domain maxium permission level.

return
permission level

        return unidentifiedMaxiumLevel;