[New] Added StrolchAgent.getRealm(String)

This commit is contained in:
Robert von Burg 2022-01-10 22:51:25 +01:00
parent e9e6c0b22a
commit 58fb8bb7fb
1 changed files with 15 additions and 4 deletions

View File

@ -110,6 +110,13 @@ public class StrolchAgent {
return this.container.getPrivilegeHandler(); return this.container.getPrivilegeHandler();
} }
/**
* @see ComponentContainer#getRealm(String)
*/
public StrolchRealm getRealm(String realm) throws StrolchException {
return getComponent(RealmHandler.class).getRealm(realm);
}
/** /**
* @see ComponentContainer#getRealm(Certificate) * @see ComponentContainer#getRealm(Certificate)
*/ */
@ -278,10 +285,14 @@ public class StrolchAgent {
* Sets up the agent by parsing the configuration file and initializes the given environment * Sets up the agent by parsing the configuration file and initializes the given environment
* </p> * </p>
* *
* @param environment the current environment * @param environment
* @param configPathF the path to the config directory * the current environment
* @param dataPathF the path to the data directory * @param configPathF
* @param tempPathF the path to the temp directory * the path to the config directory
* @param dataPathF
* the path to the data directory
* @param tempPathF
* the path to the temp directory
*/ */
void setup(String environment, File configPathF, File dataPathF, File tempPathF) { void setup(String environment, File configPathF, File dataPathF, File tempPathF) {