Package jetbrains.buildServer.users.sync
Class PropertiesReader
- java.lang.Object
-
- jetbrains.buildServer.users.sync.PropertiesReader
-
- All Implemented Interfaces:
PropertiesConstants
public class PropertiesReader extends Object implements PropertiesConstants
- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertiesmyProperties-
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_ONLY_WHEN_GROUP_SYNC, KEY_CREATE_USERS_SYNC_OPTION, KEY_DEASSIGN_USERS_SYNC_OPTION, KEY_DELETE_GROUPS_SYNC_OPTION, KEY_DELETE_USERS_ONLY_WHEN_GROUP_SYNC, 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
Constructors Constructor Description PropertiesReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(String key)Set<Map.Entry<Object,Object>>entrySet()Stringget(String key)MapgetAllProperties()booleangetBoolean(String key)intgetInt(String key, int dflt)StringgetProperty(String key)StringgetProperty(String key, String dflt)voidreadFromFile(File propertiesFile)
-
-
-
Field Detail
-
myProperties
protected Properties myProperties
-
-
Method Detail
-
readFromFile
public void readFromFile(@NotNull File propertiesFile) throws IOException- Throws:
IOException
-
getAllProperties
@NotNull public Map getAllProperties()
-
getBoolean
public boolean getBoolean(@NotNull String key)
-
getInt
public int getInt(@NotNull String key, int dflt)
-
containsKey
public boolean containsKey(@NotNull String key)
-
-