generated from ministryofjustice/template-repository
-
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.
Browse files
Browse the repository at this point in the history
* PI-2266: Extra staff details for ap
- Loading branch information
Showing
24 changed files
with
243 additions
and
78 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
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
7 changes: 5 additions & 2 deletions
7
...-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/AssessedByGenerator.kt
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
7 changes: 5 additions & 2 deletions
7
...delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/SubmittedByGenerator.kt
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
13 changes: 13 additions & 0 deletions
13
projects/approved-premises-and-delius/src/dev/resources/schema.ldif
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,13 @@ | ||
dn: ou=Users,dc=moj,dc=com | ||
objectclass: top | ||
objectclass: organizationalUnit | ||
ou: Users | ||
|
||
dn: cn=john-smith,ou=Users,dc=moj,dc=com | ||
objectclass: top | ||
objectclass: inetOrgPerson | ||
cn: john-smith | ||
sn: Smith | ||
givenname: John | ||
mail: john.smith@moj.gov.uk | ||
telephoneNumber: 07321165373 |
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
1 change: 0 additions & 1 deletion
1
...rc/main/kotlin/uk/gov/justice/digital/hmpps/integrations/approvedpremises/EventDetails.kt
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
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
30 changes: 30 additions & 0 deletions
30
...delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/staff/LdapUser.kt
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,30 @@ | ||
package uk.gov.justice.digital.hmpps.integrations.delius.staff | ||
|
||
import org.springframework.ldap.odm.annotations.Attribute | ||
import org.springframework.ldap.odm.annotations.DnAttribute | ||
import org.springframework.ldap.odm.annotations.Entry | ||
import org.springframework.ldap.odm.annotations.Id | ||
import javax.naming.Name | ||
|
||
@Entry(objectClasses = ["inetOrgPerson", "top"]) | ||
class LdapUser( | ||
|
||
@Id | ||
val dn: Name, | ||
|
||
@Attribute(name = "sn") | ||
val surname: String, | ||
|
||
@Attribute(name = "givenName") | ||
val forename: String, | ||
|
||
@Attribute(name = "cn") | ||
@DnAttribute(value = "cn", index = 0) | ||
val username: String, | ||
|
||
@Attribute(name = "telephoneNumber") | ||
val telephoneNumber: String?, | ||
|
||
@Attribute(name = "mail") | ||
val email: String?, | ||
) |
Oops, something went wrong.