public class UserPropertiesFileLoader extends PropertiesFileLoader
PropertiesFileLoader that is realm aware.COMMENT_PREFIX, DISABLE_SUFFIX_KEY, propertiesFile, PROPERTY_PATTERN| Constructor and Description |
|---|
UserPropertiesFileLoader(String path,
String relativeTo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLineContent(BufferedReader bufferedFileReader,
List<String> content,
String line)
Remove the realm name block.
|
protected void |
beginPersistence()
Method called to indicate the start of persisting the properties.
|
protected void |
endPersistence(BufferedWriter writer)
Method called to indicate persisting the properties file is now complete.
|
List<String> |
getDisabledUserNames() |
List<String> |
getEnabledUserNames() |
String |
getRealmName() |
List<String> |
getUserNames() |
protected void |
load() |
void |
setRealmName(String realmName) |
protected void |
write(BufferedWriter writer,
String line,
boolean newLine) |
escapeString, getPathManagerInjectorInjector, getProperties, loadAsRequired, persistProperties, readFile, safeClose, start, stop, verifyPropertiespublic String getRealmName() throws IOException
IOExceptionpublic void setRealmName(String realmName)
public List<String> getUserNames() throws IOException
IOExceptionpublic List<String> getEnabledUserNames() throws IOException
IOExceptionpublic List<String> getDisabledUserNames() throws IOException
IOExceptionprotected void load()
throws IOException
load in class PropertiesFileLoaderIOExceptionprotected void beginPersistence()
throws IOException
PropertiesFileLoaderbeginPersistence in class PropertiesFileLoaderIOExceptionprotected void write(BufferedWriter writer, String line, boolean newLine) throws IOException
write in class PropertiesFileLoaderIOExceptionprotected void endPersistence(BufferedWriter writer) throws IOException
PropertiesFileLoaderendPersistence in class PropertiesFileLoaderIOExceptionprotected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException
addLineContent in class PropertiesFileLoaderbufferedFileReader - The file readercontent - The content of the fileline - The current read lineIOExceptionPropertiesFileLoader.addLineContent(java.io.BufferedReader, java.util.List, String)Copyright © 2015 JBoss by Red Hat. All rights reserved.