org.openstreetmap.josm.io.remotecontrol
Class PermissionPrefWithDefault

java.lang.Object
  extended by org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault

public class PermissionPrefWithDefault
extends java.lang.Object

Contains a preference name to control permission for the operation implemented by the RequestHandler, and an error message to be displayed if not permitted.


Field Summary
static PermissionPrefWithDefault CHANGE_SELECTION
           
static PermissionPrefWithDefault CHANGE_VIEWPORT
           
static PermissionPrefWithDefault CREATE_OBJECTS
           
 boolean defaultVal
          default preference setting
static PermissionPrefWithDefault IMPORT_DATA
           
static PermissionPrefWithDefault LOAD_DATA
           
static PermissionPrefWithDefault LOAD_IMAGERY
           
static PermissionPrefWithDefault OPEN_FILES
           
 java.lang.String pref
          name of the preference setting to permit the remote operation
 java.lang.String preferenceText
          text for the preference dialog checkbox
static PermissionPrefWithDefault READ_PROTOCOL_VERSION
           
 
Constructor Summary
PermissionPrefWithDefault(java.lang.String pref, boolean defaultVal, java.lang.String preferenceText)
           
 
Method Summary
static java.util.List<PermissionPrefWithDefault> getPermissionPrefs()
           
 boolean isAllowed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_DATA

public static final PermissionPrefWithDefault LOAD_DATA

IMPORT_DATA

public static final PermissionPrefWithDefault IMPORT_DATA

OPEN_FILES

public static final PermissionPrefWithDefault OPEN_FILES

LOAD_IMAGERY

public static final PermissionPrefWithDefault LOAD_IMAGERY

CHANGE_SELECTION

public static final PermissionPrefWithDefault CHANGE_SELECTION

CHANGE_VIEWPORT

public static final PermissionPrefWithDefault CHANGE_VIEWPORT

CREATE_OBJECTS

public static final PermissionPrefWithDefault CREATE_OBJECTS

READ_PROTOCOL_VERSION

public static final PermissionPrefWithDefault READ_PROTOCOL_VERSION

pref

public final java.lang.String pref
name of the preference setting to permit the remote operation


defaultVal

public final boolean defaultVal
default preference setting


preferenceText

public final java.lang.String preferenceText
text for the preference dialog checkbox

Constructor Detail

PermissionPrefWithDefault

public PermissionPrefWithDefault(java.lang.String pref,
                                 boolean defaultVal,
                                 java.lang.String preferenceText)
Method Detail

isAllowed

public boolean isAllowed()

getPermissionPrefs

public static java.util.List<PermissionPrefWithDefault> getPermissionPrefs()


JOSM