Added docs into services
This commit is contained in:
parent
9ad8db527d
commit
af8e2ced28
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user