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.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/**
* Service of Assignment which can save assignments, diplay assignments, get ammount of assigments.
*/
@Service @Service
public class AssignmentService { public class AssignmentService {
@Autowired @Autowired

View File

@ -10,6 +10,10 @@ import com.plannaplan.repositories.CommisionRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; 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 @Service
public class CommisionService { public class CommisionService {
@Autowired @Autowired

View File

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

View File

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

View File

@ -9,6 +9,10 @@ import com.plannaplan.repositories.GroupRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; 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 @Service
public class GroupService { public class GroupService {
@Autowired @Autowired

View File

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

View File

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