Class SiteManagementServiceImpl
- java.lang.Object
-
- co.mastermindcms.builder.services.SiteManagementServiceImpl
-
- All Implemented Interfaces:
SiteManagementService
@Service public class SiteManagementServiceImpl extends java.lang.Object implements SiteManagementService
-
-
Field Summary
Fields Modifier and Type Field Description private CommonProperties
commonProperties
private co.mastermindcms.modules.filestorage.services.FileManagerService
fileManagerService
private UserManagementService
userManagementService
-
Constructor Summary
Constructors Constructor Description SiteManagementServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SiteItem
buildPageItem(java.io.File f)
private SiteItem
buildSiteItem(java.io.File f)
void
deleteRoute(java.lang.String route)
This method delete a routevoid
deleteRoutes(java.util.ArrayList<java.lang.String> routes)
This method delete many routesjava.util.List<SiteItem>
findPages(java.lang.String route)
This method queries files from specific site folderjava.util.List<SiteItem>
findSites()
This method queries all root folders from the content folder
-
-
-
Field Detail
-
userManagementService
@Autowired private UserManagementService userManagementService
-
fileManagerService
@Autowired private co.mastermindcms.modules.filestorage.services.FileManagerService fileManagerService
-
commonProperties
@Autowired private CommonProperties commonProperties
-
-
Method Detail
-
findSites
public java.util.List<SiteItem> findSites()
Description copied from interface:SiteManagementService
This method queries all root folders from the content folder- Specified by:
findSites
in interfaceSiteManagementService
- Returns:
- list of website folders
-
findPages
public java.util.List<SiteItem> findPages(java.lang.String route)
Description copied from interface:SiteManagementService
This method queries files from specific site folder- Specified by:
findPages
in interfaceSiteManagementService
- Parameters:
route
- specific path for the site folder- Returns:
- list of website file in specific folder
-
deleteRoute
public void deleteRoute(java.lang.String route)
Description copied from interface:SiteManagementService
This method delete a route- Specified by:
deleteRoute
in interfaceSiteManagementService
- Parameters:
route
- path to file
-
deleteRoutes
public void deleteRoutes(java.util.ArrayList<java.lang.String> routes)
Description copied from interface:SiteManagementService
This method delete many routes- Specified by:
deleteRoutes
in interfaceSiteManagementService
- Parameters:
routes
- paths to files
-
buildSiteItem
private SiteItem buildSiteItem(java.io.File f)
-
buildPageItem
private SiteItem buildPageItem(java.io.File f)
-
-