style: ktlint format

This commit is contained in:
Gauthier Roebroeck 2021-12-22 11:35:06 +08:00
parent 3831baddfc
commit c508f30229
3 changed files with 20 additions and 24 deletions

View file

@ -42,7 +42,6 @@ class SecurityConfiguration(
http
.cors {}
.csrf { it.disable() }
.authorizeRequests {
// restrict all actuator endpoints to ADMIN only
it.requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole(ROLE_ADMIN)
@ -61,15 +60,12 @@ class SecurityConfiguration(
"/sse/**"
).hasRole(ROLE_USER)
}
.headers {
it.cacheControl().disable() // headers are set in WebMvcConfiguration
}
.httpBasic {
it.authenticationDetailsSource(userAgentWebAuthenticationDetailsSource)
}
.logout {
it.logoutUrl("/api/v1/users/logout")
it.deleteCookies(sessionCookieName)

View file

@ -20,8 +20,8 @@ class BookMetadataUpdateDto {
var summary: String?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var summaryLock: Boolean? = null
@ -36,31 +36,31 @@ class BookMetadataUpdateDto {
var releaseDate: LocalDate?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var releaseDateLock: Boolean? = null
@get:Valid
var authors: List<AuthorUpdateDto>?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var authorsLock: Boolean? = null
var tags: Set<String>?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var tagsLock: Boolean? = null
@get:NullOrBlankOrISBN
var isbn: String?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var isbnLock: Boolean? = null
}

View file

@ -35,16 +35,16 @@ class SeriesMetadataUpdateDto {
var readingDirection: SeriesMetadata.ReadingDirection?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var readingDirectionLock: Boolean? = null
@get:PositiveOrZero
var ageRating: Int?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var ageRatingLock: Boolean? = null
@ -55,23 +55,23 @@ class SeriesMetadataUpdateDto {
var genres: Set<String>?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var genresLock: Boolean? = null
var tags: Set<String>?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var tagsLock: Boolean? = null
@get:Positive
var totalBookCount: Int?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}
isSet[prop.name] = true
}
var totalBookCountLock: Boolean? = null
}