From e89cebcc578797a7933e4a33c30b8eba02f343dc Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:49:48 +0200 Subject: [PATCH] fmt --- .../webapi/messages/twirl/SparqlTemplateLinkUpdate.scala | 5 +++-- .../responders/v2/resources/CreateResourceV2Handler.scala | 2 +- .../slice/resources/repo/service/ResourcesRepoLive.scala | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/webapi/src/main/scala/org/knora/webapi/messages/twirl/SparqlTemplateLinkUpdate.scala b/webapi/src/main/scala/org/knora/webapi/messages/twirl/SparqlTemplateLinkUpdate.scala index 2395a7933f..2ecf6df0d8 100644 --- a/webapi/src/main/scala/org/knora/webapi/messages/twirl/SparqlTemplateLinkUpdate.scala +++ b/webapi/src/main/scala/org/knora/webapi/messages/twirl/SparqlTemplateLinkUpdate.scala @@ -5,11 +5,12 @@ package org.knora.webapi.messages.twirl +import java.time.Instant +import java.util.UUID + import org.knora.webapi.IRI import org.knora.webapi.messages.SmartIri import org.knora.webapi.messages.v2.responder.valuemessages.ValueContentV2 -import java.util.UUID -import java.time.Instant /** * Contains instructions that can be given to a SPARQL template for updating direct links and `knora-base:LinkValue` diff --git a/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala b/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala index 9984059261..931159ec41 100644 --- a/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala +++ b/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala @@ -22,6 +22,7 @@ import org.knora.webapi.messages.admin.responder.permissionsmessages.PermissionA import org.knora.webapi.messages.admin.responder.permissionsmessages.PermissionType import org.knora.webapi.messages.admin.responder.permissionsmessages.ResourceCreateOperation import org.knora.webapi.messages.twirl.NewLinkValueInfo +import org.knora.webapi.messages.twirl.NewValueInfo import org.knora.webapi.messages.util.* import org.knora.webapi.messages.util.PermissionUtilADM.AGreaterThanB import org.knora.webapi.messages.util.PermissionUtilADM.PermissionComparisonResult @@ -50,7 +51,6 @@ import org.knora.webapi.slice.ontology.domain.service.OntologyServiceLive import org.knora.webapi.slice.resources.repo.service.ResourceReadyToCreate import org.knora.webapi.slice.resources.repo.service.ResourcesRepo import org.knora.webapi.util.ZioHelper -import org.knora.webapi.messages.twirl.NewValueInfo final case class CreateResourceV2Handler( appConfig: AppConfig, diff --git a/webapi/src/main/scala/org/knora/webapi/slice/resources/repo/service/ResourcesRepoLive.scala b/webapi/src/main/scala/org/knora/webapi/slice/resources/repo/service/ResourcesRepoLive.scala index 4b09f2404b..5c919c44a5 100644 --- a/webapi/src/main/scala/org/knora/webapi/slice/resources/repo/service/ResourcesRepoLive.scala +++ b/webapi/src/main/scala/org/knora/webapi/slice/resources/repo/service/ResourcesRepoLive.scala @@ -10,13 +10,13 @@ import zio.* import java.time.Instant import dsp.constants.SalsahGui.IRI +import org.knora.webapi.messages.twirl.NewLinkValueInfo +import org.knora.webapi.messages.twirl.NewValueInfo import org.knora.webapi.messages.twirl.queries.sparql import org.knora.webapi.responders.v2.resources.SparqlTemplateResourceToCreate import org.knora.webapi.slice.resourceinfo.domain.InternalIri import org.knora.webapi.store.triplestore.api.TriplestoreService import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Update -import org.knora.webapi.messages.twirl.NewLinkValueInfo -import org.knora.webapi.messages.twirl.NewValueInfo /** * Represents a resource that is ready to be created and whose contents can be verified afterwards.