jetbrains.buildServer.users.sync
Class PropertiesReader

java.lang.Object
  extended by jetbrains.buildServer.users.sync.PropertiesReader
All Implemented Interfaces:
PropertiesConstants

public class PropertiesReader
extends java.lang.Object
implements PropertiesConstants

Since:
8.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Field Summary
protected  java.util.Properties myProperties
           
 
Fields inherited from interface jetbrains.buildServer.users.sync.PropertiesConstants
KEY_ADD_SUBGROUPS_SYNC_OPTION, KEY_ASSIGN_USERS_SYNC_OPTION, KEY_CREATE_GROUPS_SYNC_OPTION, KEY_CREATE_USERS_SYNC_OPTION, KEY_DEASSIGN_USERS_SYNC_OPTION, KEY_DELETE_GROUPS_SYNC_OPTION, KEY_DELETE_USERS_SYNC_OPTION, KEY_ENABLE_GROUP_SYNC_OPTION, KEY_ENABLE_USER_SYNC_OPTION, KEY_FORCE_UPDATE_PROPERTIES, KEY_REMOVE_SUBGROUPS_SYNC_OPTION, KEY_SYNC_OPTION_PREFIX, KEY_TIMEOUT_SYNC_OPTION
 
Constructor Summary
PropertiesReader()
           
 
Method Summary
 boolean containsKey(java.lang.String key)
           
 java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
           
 java.lang.String get(java.lang.String key)
           
 java.util.Map getAllProperties()
           
 boolean getBoolean(java.lang.String key)
           
 int getInt(java.lang.String key, int dflt)
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String dflt)
           
 void readFromFile(java.io.File propertiesFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myProperties

protected java.util.Properties myProperties
Constructor Detail

PropertiesReader

public PropertiesReader()
Method Detail

readFromFile

public void readFromFile(@NotNull
                         java.io.File propertiesFile)
                  throws java.io.IOException
Throws:
java.io.IOException

entrySet

@NotNull
public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()

getAllProperties

@NotNull
public java.util.Map getAllProperties()

get

public java.lang.String get(@NotNull
                            java.lang.String key)

getProperty

public java.lang.String getProperty(@NotNull
                                    java.lang.String key)

getProperty

public java.lang.String getProperty(@NotNull
                                    java.lang.String key,
                                    @NotNull
                                    java.lang.String dflt)

getBoolean

public boolean getBoolean(@NotNull
                          java.lang.String key)

getInt

public int getInt(@NotNull
                  java.lang.String key,
                  int dflt)

containsKey

public boolean containsKey(@NotNull
                           java.lang.String key)