Class LinkCheckService

java.lang.Object
sk.iway.iwcm.editor.service.LinkCheckService

@Service public class LinkCheckService extends Object
Functions and logic to prepare linkCheck arrays
  • 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