public class ImportServiceImpl extends Object implements ImportService
Modifier and Type | Class and Description |
---|---|
class |
ImportServiceImpl.PublishingChannel
publishing channel
|
Modifier and Type | Field and Description |
---|---|
protected ContentRepository |
contentRepository |
protected ContentService |
contentService |
protected DmPublishService |
dmPublishService |
protected ObjectStateService |
objectStateService |
protected SecurityService |
securityService |
protected SiteService |
siteService |
protected StudioConfiguration |
studioConfiguration |
Constructor and Description |
---|
ImportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
createFiles(String site,
Set<String> importedPaths,
List<String> importedFullPaths,
List<org.dom4j.Node> nodes,
String fileRoot,
String targetRoot,
String parentPath,
boolean overWrite,
String user)
create files from a list
|
String |
getAssetChainName() |
String |
getAssignee() |
ContentRepository |
getContentRepository() |
ContentService |
getContentService() |
DmPublishService |
getDmPublishService() |
ObjectStateService |
getObjectStateService() |
SecurityService |
getSecurityService() |
SiteService |
getSiteService() |
StudioConfiguration |
getStudioConfiguration() |
String |
getXmlChainName() |
protected void |
importFileList(String site,
Set<String> importedPaths,
List<String> importedFullPaths,
String fileRoot,
String targetRoot,
String parentPath,
boolean overWrite,
String user)
import files and folders at the given fileRoot path
|
protected void |
importRootFileList(String site,
Set<String> importedPaths,
List<String> importedFullPaths,
String fileRoot,
String targetRoot,
String parentPath,
boolean overWrite,
String user)
import all files from the given file root
|
void |
importSite(String configLocation) |
protected org.dom4j.Document |
loadConfiguration(String configLocation) |
protected void |
pause()
pause the process if it reached the interval
|
protected void |
publish(String site,
String publishChannelGroup,
String targetRoot,
List<String> fullPaths,
int chunkSize)
publish items
|
void |
setContentRepository(ContentRepository contentRepository) |
void |
setContentService(ContentService contentService) |
void |
setDmPublishService(DmPublishService dmPublishService) |
void |
setObjectStateService(ObjectStateService objectStateService) |
void |
setSecurityService(SecurityService securityService) |
void |
setSiteService(SiteService siteService) |
void |
setStudioConfiguration(StudioConfiguration studioConfiguration) |
protected void |
submitToGoLive(String site,
String publishChannelGroup,
List<String> importedFullPaths)
submit imported items to go live
|
protected void |
writeContent(String site,
Set<String> importedPaths,
List<String> importedFullPaths,
String fileRoot,
String targetRoot,
String parentPath,
String name,
boolean overWrite)
write content
|
protected void |
writeContentInTransaction(String site,
Set<String> importedPaths,
List<String> importedFullPaths,
String fileRoot,
String targetRoot,
String parentPath,
String name,
boolean overWrite,
String user)
write content
|
protected SiteService siteService
protected SecurityService securityService
protected ContentRepository contentRepository
protected ContentService contentService
protected ObjectStateService objectStateService
protected DmPublishService dmPublishService
protected StudioConfiguration studioConfiguration
public void importSite(String configLocation) throws SiteNotFoundException
importSite
in interface ImportService
SiteNotFoundException
protected org.dom4j.Document loadConfiguration(String configLocation)
protected void importRootFileList(String site, Set<String> importedPaths, List<String> importedFullPaths, String fileRoot, String targetRoot, String parentPath, boolean overWrite, String user) throws SiteNotFoundException
site
- importedPaths
- importedFullPaths
- fileRoot
- targetRoot
- the target location rootparentPath
- the target location to import tooverWrite
- user
- SiteNotFoundException
protected void importFileList(String site, Set<String> importedPaths, List<String> importedFullPaths, String fileRoot, String targetRoot, String parentPath, boolean overWrite, String user) throws SiteNotFoundException
site
- importedPaths
- importedFullPaths
- fileRoot
- targetRoot
- the target location rootparentPath
- the target location to import tooverWrite
- user
- SiteNotFoundException
protected void writeContentInTransaction(String site, Set<String> importedPaths, List<String> importedFullPaths, String fileRoot, String targetRoot, String parentPath, String name, boolean overWrite, String user)
site
- importedPaths
- importedFullPaths
- fileRoot
- parentPath
- name
- overWrite
- user
- protected void writeContent(String site, Set<String> importedPaths, List<String> importedFullPaths, String fileRoot, String targetRoot, String parentPath, String name, boolean overWrite)
site
- importedPaths
- importedFullPaths
- fileRoot
- parentPath
- name
- overWrite
- protected void pause()
protected void createFiles(String site, Set<String> importedPaths, List<String> importedFullPaths, List<org.dom4j.Node> nodes, String fileRoot, String targetRoot, String parentPath, boolean overWrite, String user)
site
- importedPaths
- importedFullPaths
- nodes
- fileRoot
- targetRoot
- the target location rootparentPath
- the target location to import tooverWrite
- user
- protected void publish(String site, String publishChannelGroup, String targetRoot, List<String> fullPaths, int chunkSize)
site
- publishChannelGroup
- targetRoot
- fullPaths
- chunkSize
- protected void submitToGoLive(String site, String publishChannelGroup, List<String> importedFullPaths)
site
- publishChannelGroup
- importedFullPaths
- public SiteService getSiteService()
public void setSiteService(SiteService siteService)
public SecurityService getSecurityService()
public void setSecurityService(SecurityService securityService)
public ContentRepository getContentRepository()
public void setContentRepository(ContentRepository contentRepository)
public ContentService getContentService()
public void setContentService(ContentService contentService)
public ObjectStateService getObjectStateService()
public void setObjectStateService(ObjectStateService objectStateService)
public DmPublishService getDmPublishService()
public void setDmPublishService(DmPublishService dmPublishService)
public StudioConfiguration getStudioConfiguration()
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
public String getAssignee()
public String getXmlChainName()
public String getAssetChainName()
Copyright © 2020 CrafterCMS. All rights reserved.