Class DmContentLifeCycleServiceImpl
java.lang.Object
org.craftercms.studio.api.v1.service.AbstractRegistrableService
org.craftercms.studio.impl.v1.service.content.DmContentLifeCycleServiceImpl
- All Implemented Interfaces:
DmContentLifeCycleService,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DmContentLifeCycleServiceImpl
extends AbstractRegistrableService
implements DmContentLifeCycleService, org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassXmlContentLoader that provides XML document from the path providedNested classes/interfaces inherited from interface org.craftercms.studio.api.v1.service.content.DmContentLifeCycleService
DmContentLifeCycleService.ContentLifeCycleOperation -
Field Summary
FieldsModifier and TypeFieldDescriptionmapping of beans and services to map in to the scripting environment during metadata extractionprotected org.springframework.context.ApplicationContextprotected ContentServiceprotected ScriptExecutorprotected SecurityServiceprotected StudioConfigurationFields inherited from class org.craftercms.studio.api.v1.service.AbstractRegistrableService
_servicesManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildModel(String site, String user, String path, String contentType, String operation, Map<String, String> params) build script modelprotected StringgetScriptPath(String site, String contentType) get the content metadata extraction scriptvoidprocess(String site, String user, String path, String contentType, DmContentLifeCycleService.ContentLifeCycleOperation operation, Map<String, String> params) process contnet lifecyclevoidregister()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetContentService(ContentService contentService) voidsetScriptExecutor(ScriptExecutor scriptExecutor) voidsetScriptObjects(Map<String, Object> scriptObjects) voidsetSecurityService(SecurityService securityService) voidsetStudioConfiguration(StudioConfiguration studioConfiguration) Methods inherited from class org.craftercms.studio.api.v1.service.AbstractRegistrableService
getService, getServicesManager, setServicesManager
-
Field Details
-
contentService
-
securityService
-
scriptExecutor
-
studioConfiguration
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
_scriptObjects
mapping of beans and services to map in to the scripting environment during metadata extraction
-
-
Constructor Details
-
DmContentLifeCycleServiceImpl
public DmContentLifeCycleServiceImpl()
-
-
Method Details
-
getScriptLocation
-
getScriptObjects
-
setScriptObjects
-
register
public void register()- Specified by:
registerin classAbstractRegistrableService
-
process
@Valid public void process(String site, String user, String path, String contentType, DmContentLifeCycleService.ContentLifeCycleOperation operation, Map<String, String> params) Description copied from interface:DmContentLifeCycleServiceprocess contnet lifecycle- Specified by:
processin interfaceDmContentLifeCycleService- Parameters:
site-user-path-contentType-operation-params-
-
getScriptPath
get the content metadata extraction script- Parameters:
site-contentType-- Returns:
- path of the script
-
buildModel
protected Map<String,Object> buildModel(String site, String user, String path, String contentType, String operation, Map<String, String> params) build script model- Parameters:
site-user-path-contentType-operation-params-- Returns:
- script model
-
getContentService
-
setContentService
-
getSecurityService
-
setSecurityService
-
getScriptExecutor
-
setScriptExecutor
-
getStudioConfiguration
-
setStudioConfiguration
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-