Package sk.iway.iwcm.editor.service
Class LinkCheckService
java.lang.Object
sk.iway.iwcm.editor.service.LinkCheckService
Functions and logic to prepare linkCheck arrays
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlinkCheckList
(int groupId, String tableType, DocDetailsRepository docDetailsRepository) Get DocDetails under entered group and DocDetails of child groups.
-
Constructor Details
-
LinkCheckService
public LinkCheckService()
-
-
Method Details
-
linkCheckList
public List<LinkCheckDto> linkCheckList(int groupId, String tableType, DocDetailsRepository docDetailsRepository) Get DocDetails under entered group and DocDetails of child groups. For every DocDetails run error test (link check). If error was found, create LinkCheckDto object that represent specific error of specifi DocDetails and divide them into one of List of errors. Return specific list based on entered tableType param.- Parameters:
groupId
- id of group, whose DocDetails will be checked (even every child group)tableType
- which one of assembled Lists of errors will be returned (if entered tableType is not mentioned in function, return instance of empty List)docDetailsRepository
- DocDetailsRepository instance- Returns:
- List of LinkCheckDto objects, based on entered groupId and tableType choise
-