Class KeymasterConfParamLoader
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.content.KeymasterConfParamLoader
-
- All Implemented Interfaces:
ConfParamLoader
,SyncopeCoreLoader
,Ordered
public class KeymasterConfParamLoader extends Object implements ConfParamLoader
Initialize Keymaster with default content if no data is present already.
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfParamOps
confParamOps
protected static Logger
LOG
protected static JsonMapper
MAPPER
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description KeymasterConfParamLoader(ConfParamOps confParamOps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
load(String domain, DataSource datasource)
Perform init operations on the given domain.protected void
loadDefaultContent(String domain, InputStream contentJSON)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.syncope.core.persistence.api.SyncopeCoreLoader
load, unload, unload
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
MAPPER
protected static final JsonMapper MAPPER
-
confParamOps
protected final ConfParamOps confParamOps
-
-
Constructor Detail
-
KeymasterConfParamLoader
public KeymasterConfParamLoader(ConfParamOps confParamOps)
-
-
Method Detail
-
load
public void load(String domain, DataSource datasource)
Description copied from interface:SyncopeCoreLoader
Perform init operations on the given domain.- Specified by:
load
in interfaceSyncopeCoreLoader
- Parameters:
domain
- domain to initializedatasource
- db access for the given domain
-
loadDefaultContent
protected void loadDefaultContent(String domain, InputStream contentJSON) throws IOException
- Throws:
IOException
-
-