Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Feb 13, 2024
1 parent 7d8a3a4 commit 8049edf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@

package org.knora.webapi.slice.admin.repo.service

import dsp.valueobjects.LanguageCode
import org.eclipse.rdf4j.model.vocabulary.*
import org.eclipse.rdf4j.sparqlbuilder.core.SparqlBuilder.`var` as variable
import org.eclipse.rdf4j.sparqlbuilder.core.SparqlBuilder.prefix
import org.eclipse.rdf4j.sparqlbuilder.core.SparqlBuilder.`var` as variable
import org.eclipse.rdf4j.sparqlbuilder.core.query.ConstructQuery
import org.eclipse.rdf4j.sparqlbuilder.core.query.ModifyQuery
import org.eclipse.rdf4j.sparqlbuilder.core.query.Queries
import org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPatterns.tp
import org.eclipse.rdf4j.sparqlbuilder.rdf.Iri
import org.eclipse.rdf4j.sparqlbuilder.rdf.Rdf
import zio.Task
import zio.ZIO
import zio.ZLayer
import zio.stream.ZStream

import dsp.valueobjects.LanguageCode
import org.knora.webapi.messages.OntologyConstants.KnoraAdmin
import org.knora.webapi.slice.admin.AdminConstants.adminDataNamedGraph
import org.knora.webapi.slice.admin.domain.model.Email
Expand All @@ -38,10 +43,6 @@ import org.knora.webapi.store.triplestore.api.TriplestoreService
import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Construct
import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Update
import org.knora.webapi.store.triplestore.errors.TriplestoreResponseException
import zio.Task
import zio.ZIO
import zio.ZLayer
import zio.stream.ZStream

final case class KnoraUserRepoLive(triplestore: TriplestoreService) extends KnoraUserRepo {

Expand Down Expand Up @@ -79,13 +80,12 @@ final case class KnoraUserRepoLive(triplestore: TriplestoreService) extends Knor
for {
userIri <-
resource.iri.flatMap(it => ZIO.fromEither(UserIri.from(it.value))).mapError(TriplestoreResponseException.apply)
username <- resource.getStringLiteralOrFail[Username](KnoraAdmin.Username)
email <- resource.getStringLiteralOrFail[Email](KnoraAdmin.Email)
familyName <- resource.getStringLiteralOrFail[FamilyName](KnoraAdmin.FamilyName)
givenName <- resource.getStringLiteralOrFail[GivenName](KnoraAdmin.GivenName)
passwordHash <- resource.getStringLiteralOrFail[PasswordHash](KnoraAdmin.Password)
preferredLanguage <-
resource.getStringLiteralOrFail[LanguageCode](KnoraAdmin.PreferredLanguage)
username <- resource.getStringLiteralOrFail[Username](KnoraAdmin.Username)
email <- resource.getStringLiteralOrFail[Email](KnoraAdmin.Email)
familyName <- resource.getStringLiteralOrFail[FamilyName](KnoraAdmin.FamilyName)
givenName <- resource.getStringLiteralOrFail[GivenName](KnoraAdmin.GivenName)
passwordHash <- resource.getStringLiteralOrFail[PasswordHash](KnoraAdmin.Password)
preferredLanguage <- resource.getStringLiteralOrFail[LanguageCode](KnoraAdmin.PreferredLanguage)
status <- resource.getBooleanLiteralOrFail[UserStatus](KnoraAdmin.StatusProp)
isInProjectIris <- getObjectIrisConvert[ProjectIri](resource, KnoraAdmin.IsInProject)
isInGroupIris <- getObjectIrisConvert[GroupIri](resource, KnoraAdmin.IsInGroup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object RepositoryUpdatePlan {
PluginForKnoraBaseVersion(versionNumber = 25, plugin = new MigrateOnlyBuiltInGraphs), // PR 2268
PluginForKnoraBaseVersion(versionNumber = 26, plugin = new MigrateOnlyBuiltInGraphs), // PR 3003
PluginForKnoraBaseVersion(versionNumber = 27, plugin = new MigrateOnlyBuiltInGraphs), // PR 3026
PluginForKnoraBaseVersion(versionNumber = 28, plugin = new MigrateOnlyBuiltInGraphs) // PR 3038
PluginForKnoraBaseVersion(versionNumber = 28, plugin = new MigrateOnlyBuiltInGraphs) // PR 3038
// KEEP IT ON THE BOTTOM
// From "versionNumber = 6" don't use prBasedVersionString!
)
Expand Down

0 comments on commit 8049edf

Please sign in to comment.