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 ImportHelperhelperprotected static java.lang.StringIMPERSONATION_CONFIG_FILE_NAMEstatic java.lang.StringIMPERSONATION_CONFIG_PETRI_NET_IDENTIFIERprotected static java.lang.StringIMPERSONATION_CONFIG_USER_SELECT_FILE_NAMEstatic java.lang.StringIMPERSONATION_CONFIG_USER_SELECT_PETRI_NET_IDENTIFIERprotected IPetriNetServicepetriNetServiceprotected SystemUserRunnersystemCreator-
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 voidcreateConfigNets()groovy.lang.MetaClassgetMetaClass()java.util.Optional<PetriNet>importProcess(java.lang.String message, java.lang.String netIdentifier, java.lang.String netFileName)voidrun(java.lang.String... args)voidsetMetaClass(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:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractOrderedCommandLineRunner
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin 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)
-
-