-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rydder opp i Ldap server * Bump av avhengigheter
- Loading branch information
1 parent
1c33554
commit c037839
Showing
14 changed files
with
387 additions
and
481 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
dn: dc=local | ||
changetype: add | ||
objectClass: top | ||
objectClass: dcObject | ||
dc: local | ||
|
||
dn: DC=test,DC=local | ||
changetype: add | ||
dc: test | ||
o: test | ||
objectClass: top | ||
objectclass: dcObject | ||
objectclass: organization | ||
|
||
dn: OU=BusinessUnits,DC=test,DC=local | ||
changetype: add | ||
dc: BusinessUnits | ||
objectClass: organizationalUnit | ||
objectClass: top | ||
|
||
dn: OU=NAV,OU=BusinessUnits,DC=test,DC=local | ||
changetype: add | ||
dc: NAV | ||
objectClass: organizationalUnit | ||
objectClass: top | ||
|
||
dn: OU=Users,OU=NAV,OU=BusinessUnits,DC=test,DC=local | ||
changetype: add | ||
dc: Users | ||
objectClass: organizationalUnit | ||
objectClass: top |
22 changes: 22 additions & 0 deletions
22
model/src/main/java/no/nav/foreldrepenger/vtp/testmodell/ansatt/AnsatteIndeks.java
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package no.nav.foreldrepenger.vtp.testmodell.ansatt; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
public class AnsatteIndeks { | ||
|
||
private final Map<String, NAVAnsatt> ansatte = new ConcurrentHashMap<>(); | ||
|
||
public void leggTil(List<NAVAnsatt> ansatte) { | ||
ansatte.forEach(ansatt -> this.ansatte.putIfAbsent(ansatt.cn(), ansatt)); | ||
} | ||
|
||
public Collection<NAVAnsatt> alleAnsatte() { | ||
return ansatte.values(); | ||
} | ||
|
||
public NAVAnsatt findByCn(String cn) { | ||
return ansatte.get(cn); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
model/src/main/java/no/nav/foreldrepenger/vtp/testmodell/ansatt/NAVAnsatt.java
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package no.nav.foreldrepenger.vtp.testmodell.ansatt; | ||
|
||
import java.util.List; | ||
|
||
public record NAVAnsatt(String cn, | ||
String displayName, | ||
String email, | ||
List<String> groups, | ||
List<String> enheter) { | ||
|
||
} |
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
Oops, something went wrong.