15
15
*
16
16
*/
17
17
18
- package io .leafage .basic .hypervisor .service .impl ;
18
+ package io .leafage .basic .assets .service .impl ;
19
19
20
- import io .leafage .basic .hypervisor .domain .Region ;
21
- import io .leafage .basic .hypervisor .dto .RegionDTO ;
22
- import io .leafage .basic .hypervisor .repository .RegionRepository ;
23
- import io .leafage .basic .hypervisor .service .RegionService ;
24
- import io .leafage .basic .hypervisor .vo .RegionVO ;
20
+ import io .leafage .basic .assets .domain .Region ;
21
+ import io .leafage .basic .assets .dto .RegionDTO ;
22
+ import io .leafage .basic .assets .repository .RegionRepository ;
23
+ import io .leafage .basic .assets .service .RegionService ;
24
+ import io .leafage .basic .assets .vo .RegionVO ;
25
25
import org .springframework .beans .BeanUtils ;
26
26
import org .springframework .data .domain .Page ;
27
27
import org .springframework .data .domain .PageImpl ;
@@ -47,7 +47,7 @@ public class RegionServiceImpl implements RegionService {
47
47
/**
48
48
* <p>Constructor for RegionServiceImpl.</p>
49
49
*
50
- * @param regionRepository a {@link io.leafage.basic.hypervisor .repository.RegionRepository} object
50
+ * @param regionRepository a {@link io.leafage.basic.assets .repository.RegionRepository} object
51
51
*/
52
52
public RegionServiceImpl (RegionRepository regionRepository ) {
53
53
this .regionRepository = regionRepository ;
@@ -67,46 +67,36 @@ public Mono<Page<RegionVO>> retrieve(int page, int size) {
67
67
new PageImpl <>(objects .getT1 (), pageable , objects .getT2 ()));
68
68
}
69
69
70
- /**
71
- * {@inheritDoc}
72
- */
70
+ /** {@inheritDoc} */
73
71
@ Override
74
72
public Mono <RegionVO > fetch (Long id ) {
75
73
Assert .notNull (id , "region id must not be null." );
76
74
return regionRepository .findById (id ).flatMap (this ::convertOuter );
77
75
}
78
76
79
- /**
80
- * {@inheritDoc}
81
- */
77
+ /** {@inheritDoc} */
82
78
@ Override
83
79
public Mono <Boolean > exist (String name ) {
84
80
Assert .hasText (name , "region name must not be blank." );
85
81
return regionRepository .existsByName (name );
86
82
}
87
83
88
- /**
89
- * {@inheritDoc}
90
- */
84
+ /** {@inheritDoc} */
91
85
@ Override
92
86
public Flux <RegionVO > subordinates (Long superiorId ) {
93
87
Assert .notNull (superiorId , "region superior id must not be null." );
94
88
return regionRepository .findBySuperiorId (superiorId ).flatMap (this ::convertOuter );
95
89
}
96
90
97
- /**
98
- * {@inheritDoc}
99
- */
91
+ /** {@inheritDoc} */
100
92
@ Override
101
93
public Mono <RegionVO > create (RegionDTO regionDTO ) {
102
94
Region region = new Region ();
103
95
BeanUtils .copyProperties (regionDTO , region );
104
96
return regionRepository .save (region ).flatMap (this ::convertOuter );
105
97
}
106
98
107
- /**
108
- * {@inheritDoc}
109
- */
99
+ /** {@inheritDoc} */
110
100
@ Override
111
101
public Mono <RegionVO > modify (Long id , RegionDTO regionDTO ) {
112
102
Assert .notNull (id , "region id must not be null." );
@@ -115,9 +105,7 @@ public Mono<RegionVO> modify(Long id, RegionDTO regionDTO) {
115
105
.flatMap (regionRepository ::save ).flatMap (this ::convertOuter );
116
106
}
117
107
118
- /**
119
- * {@inheritDoc}
120
- */
108
+ /** {@inheritDoc} */
121
109
@ Override
122
110
public Mono <Void > remove (Long id ) {
123
111
Assert .notNull (id , "region id must not be null." );
0 commit comments