-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autorun components via ApplicationRunner interface
- Loading branch information
Showing
6 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,13 @@ Fehler und Verbesserungsvorschläge können gerne als [Github Issue](https://git | |
oder Pull Request eingestellt werden. Wir freuen uns über Mitwirkung! | ||
|
||
Kontakt: [email protected] | ||
|
||
## Ausfuehrung | ||
|
||
``` | ||
# Normale Ausfuehrung der LDAP Synchronisation | ||
java -jar -Dspring.profiles.active=prod ldap-sync-1.2.0.jar | ||
# Zusaetzlich mit Ausgabe von verwaisten Benutzern (in keiner Berechtigungsgruppe) in LDAP Verzeichnis | ||
java -jar -Dspring.profiles.active=prod ldap-sync-1.2.0.jar --orphaned | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,13 @@ | ||
package de.pfadfinden.mv; | ||
|
||
import de.pfadfinden.mv.command.CommandGruppen; | ||
import de.pfadfinden.mv.command.CommandGruppierungen; | ||
import de.pfadfinden.mv.command.CommandOrphanedPersons; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class LdapSyncApplication implements CommandLineRunner { | ||
|
||
private final static Logger logger = LoggerFactory.getLogger(LdapSyncApplication.class); | ||
|
||
private CommandGruppierungen commandGruppierungen; | ||
private CommandGruppen commandGruppen; | ||
private CommandOrphanedPersons commandOrphanedPersons; | ||
|
||
public LdapSyncApplication(CommandGruppierungen commandGruppierungen, | ||
CommandGruppen commandGruppen, | ||
CommandOrphanedPersons commandOrphanedPersons) { | ||
this.commandGruppierungen = commandGruppierungen; | ||
this.commandGruppen = commandGruppen; | ||
this.commandOrphanedPersons = commandOrphanedPersons; | ||
} | ||
public class LdapSyncApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(LdapSyncApplication.class, args); | ||
System.exit(SpringApplication.exit(SpringApplication.run(LdapSyncApplication.class, args))); | ||
} | ||
|
||
@Override | ||
public void run(String... args) { | ||
|
||
logger.info("Start MV LDAP Sync"); | ||
|
||
this.commandGruppierungen.exec(); | ||
this.commandGruppen.exec(); | ||
// this.commandOrphanedPersons.exec(); | ||
|
||
System.exit(0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters