forAuth()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
c 1
b 0
f 0
cc 1
loc 1
rs 10
1
package easytests.core.options.builder;
2
3
import easytests.core.options.UsersOptions;
4
import easytests.core.options.UsersOptionsInterface;
5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.stereotype.Service;
7
8
/**
9
 * @author malinink
10
 */
11
@Service
12
public class UsersOptionsBuilder implements UsersOptionsBuilderInterface {
13
    @Autowired
14
    private SubjectsOptionsBuilder subjectsOptionsBuilder;
15
16
    @Override
17
    public UsersOptionsInterface forDelete() {
18
        return new UsersOptions().withSubjects(this.subjectsOptionsBuilder.forDelete());
19
    }
20
21
    @Override
22
    public UsersOptionsInterface forAuth() {
23
        return new UsersOptions();
24
    }
25
}
26