Added docs into services

This commit is contained in:
Marcin Woźniak 2020-11-20 13:20:44 +01:00
parent 9ad8db527d
commit af8e2ced28
Signed by: y0rune
GPG Key ID: F204C385F57EB348
7 changed files with 25 additions and 0 deletions

View File

@ -9,6 +9,10 @@ import com.plannaplan.repositories.AssignmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of Assignment which can save assignments, diplay assignments, get ammount of assigments.
*/
@Service
public class AssignmentService {
@Autowired

View File

@ -10,6 +10,10 @@ import com.plannaplan.repositories.CommisionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of CommisionService which can save commision, get user's commisions, get newest user's commision, get ammount of commisions.
*/
@Service
public class CommisionService {
@Autowired

View File

@ -8,6 +8,9 @@ import org.springframework.stereotype.Component;
import com.plannaplan.configutils.*;
/**
* FileReader is used for reading xls file from input stream.
*/
@Component
public class ConfiguratorService {

View File

@ -9,6 +9,10 @@ import com.plannaplan.repositories.CourseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of CourseService which can get(Course By Name, All Courses, Courses Ammount ), save, delete course.
*/
@Service
public class CourseService {
@Autowired

View File

@ -9,6 +9,10 @@ import com.plannaplan.repositories.GroupRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of GroupService which can find(optional), get(By Course, Groups Ammount, Group By Id, find Not Existing Group), save, delete group.
*/
@Service
public class GroupService {
@Autowired

View File

@ -8,6 +8,9 @@ import com.plannaplan.repositories.LecturerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of LecturerService which can get(Lecturer, Lecturers Ammount), save, delete lecturers.
*/
@Service
public class LecturerService {
@Autowired

View File

@ -12,6 +12,9 @@ import com.plannaplan.types.UserRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service of UserService which can get(By Email), login, save user.
*/
@Service
public class UserService {
@Autowired