|
|
|
@ -5,15 +5,14 @@ import org.springframework.transaction.annotation.Transactional
|
|
|
|
import wanijo.wanijo2.domain.DocumentDao
|
|
|
|
import wanijo.wanijo2.domain.DocumentDao
|
|
|
|
import wanijo.wanijo2.domain.DocumentTaggingDao
|
|
|
|
import wanijo.wanijo2.domain.DocumentTaggingDao
|
|
|
|
import wanijo.wanijo2.domain.event.DeleteTaggingCommand
|
|
|
|
import wanijo.wanijo2.domain.event.DeleteTaggingCommand
|
|
|
|
import wanijo.wanijo2.http.DocumentNotFound
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
class DeleteTaggingHandler(
|
|
|
|
class DeleteTaggingHandler(
|
|
|
|
val taggingDao: DocumentTaggingDao,
|
|
|
|
val taggingDao: DocumentTaggingDao,
|
|
|
|
val documentDao: DocumentDao
|
|
|
|
val documentDao: DocumentDao
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
fun exec(command: DeleteTaggingCommand) {
|
|
|
|
fun exec(command: DeleteTaggingCommand) {
|
|
|
|
taggingDao.delete(
|
|
|
|
taggingDao.delete(
|
|
|
|
command.documentId,
|
|
|
|
command.documentId,
|
|
|
|
|