Class ImpersonationRunner
- java.lang.Object
-
- com.netgrif.application.engine.startup.AbstractOrderedCommandLineRunner
-
- com.netgrif.application.engine.startup.ImpersonationRunner
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,org.springframework.boot.CommandLineRunner
,org.springframework.core.Ordered
@Slf4j @Component public class ImpersonationRunner extends AbstractOrderedCommandLineRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected ImportHelper
helper
protected static java.lang.String
IMPERSONATION_CONFIG_FILE_NAME
static java.lang.String
IMPERSONATION_CONFIG_PETRI_NET_IDENTIFIER
protected static java.lang.String
IMPERSONATION_CONFIG_USER_SELECT_FILE_NAME
static java.lang.String
IMPERSONATION_CONFIG_USER_SELECT_PETRI_NET_IDENTIFIER
protected IPetriNetService
petriNetService
protected SystemUserRunner
systemCreator
-
Fields inherited from class com.netgrif.application.engine.startup.AbstractOrderedCommandLineRunner
runner
-
-
Constructor Summary
Constructors Constructor Description ImpersonationRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createConfigNets()
groovy.lang.MetaClass
getMetaClass()
java.util.Optional<PetriNet>
importProcess(java.lang.String message, java.lang.String netIdentifier, java.lang.String netFileName)
void
run(java.lang.String... args)
void
setMetaClass(groovy.lang.MetaClass mc)
-
Methods inherited from class com.netgrif.application.engine.startup.AbstractOrderedCommandLineRunner
getOrder
-
-
-
-
Field Detail
-
petriNetService
@Autowired protected IPetriNetService petriNetService
-
helper
@Autowired protected ImportHelper helper
-
systemCreator
@Autowired protected SystemUserRunner systemCreator
-
IMPERSONATION_CONFIG_FILE_NAME
protected static final java.lang.String IMPERSONATION_CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
IMPERSONATION_CONFIG_PETRI_NET_IDENTIFIER
public static final java.lang.String IMPERSONATION_CONFIG_PETRI_NET_IDENTIFIER
- See Also:
- Constant Field Values
-
IMPERSONATION_CONFIG_USER_SELECT_FILE_NAME
protected static final java.lang.String IMPERSONATION_CONFIG_USER_SELECT_FILE_NAME
- See Also:
- Constant Field Values
-
IMPERSONATION_CONFIG_USER_SELECT_PETRI_NET_IDENTIFIER
public static final java.lang.String IMPERSONATION_CONFIG_USER_SELECT_PETRI_NET_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractOrderedCommandLineRunner
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractOrderedCommandLineRunner
-
run
public void run(java.lang.String... args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createConfigNets
public void createConfigNets()
-
importProcess
public java.util.Optional<PetriNet> importProcess(java.lang.String message, java.lang.String netIdentifier, java.lang.String netFileName)
-
-