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) |
cleanKey, escapeString, getPathManagerInjectorInjector, getProperties, loadAsRequired, persistProperties, readFile, safeClose, start, stop, verifyProperties
public String getRealmName() throws IOException
IOException
public void setRealmName(String realmName)
public List<String> getUserNames() throws IOException
IOException
public List<String> getEnabledUserNames() throws IOException
IOException
public List<String> getDisabledUserNames() throws IOException
IOException
protected void load() throws IOException
load
in class PropertiesFileLoader
IOException
protected void beginPersistence() throws IOException
PropertiesFileLoader
beginPersistence
in class PropertiesFileLoader
IOException
protected void write(BufferedWriter writer, String line, boolean newLine) throws IOException
write
in class PropertiesFileLoader
IOException
protected void endPersistence(BufferedWriter writer) throws IOException
PropertiesFileLoader
endPersistence
in class PropertiesFileLoader
IOException
protected void addLineContent(BufferedReader bufferedFileReader, List<String> content, String line) throws IOException
addLineContent
in class PropertiesFileLoader
bufferedFileReader
- The file readercontent
- The content of the fileline
- The current read lineIOException
PropertiesFileLoader.addLineContent(java.io.BufferedReader, java.util.List, String)
Copyright © 2023 JBoss by Red Hat. All rights reserved.