public class ContentFragmentImport extends ProcessDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentFragmentImport.ReportColumns |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FOLDER_TYPE |
static String |
FOLDER_TITLE |
static String |
NAME |
static String |
PATH |
static String |
TEMPLATE |
static String |
TITLE |
| Constructor and Description |
|---|
ContentFragmentImport() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildProcess(ProcessInstance instance,
org.apache.sling.api.resource.ResourceResolver rr) |
protected boolean |
createFolderNode(String path,
String folderTitle,
org.apache.sling.api.resource.ResourceResolver r) |
protected void |
createFolders(ActionManager manager) |
protected org.apache.sling.api.resource.Resource |
getFragmentTemplateResource(org.apache.sling.api.resource.ResourceResolver rr,
String templatePath) |
protected com.adobe.cq.dam.cfm.ContentFragment |
getOrCreateFragment(org.apache.sling.api.resource.Resource parent,
org.apache.sling.api.resource.Resource template,
String name,
String title) |
protected void |
importFragments(ActionManager manager) |
protected void |
incrementCount(EnumMap<ContentFragmentImport.ReportColumns,Object> row,
long amt) |
void |
init() |
void |
storeReport(ProcessInstance instance,
org.apache.sling.api.resource.ResourceResolver rr) |
protected EnumMap<ContentFragmentImport.ReportColumns,Object> |
trackDetailedActivity(String item,
String action,
String description,
Long bytes) |
getName, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseInputspublic static final String PATH
public static final String FOLDER_TITLE
public static final String NAME
public static final String TITLE
public static final String TEMPLATE
public static final String DEFAULT_FOLDER_TYPE
public void init()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void buildProcess(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr) throws org.apache.sling.api.resource.LoginException, javax.jcr.RepositoryException
buildProcess in class ProcessDefinitionorg.apache.sling.api.resource.LoginExceptionjavax.jcr.RepositoryExceptionpublic void storeReport(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr) throws javax.jcr.RepositoryException, org.apache.sling.api.resource.PersistenceException
storeReport in class ProcessDefinitionjavax.jcr.RepositoryExceptionorg.apache.sling.api.resource.PersistenceExceptionprotected EnumMap<ContentFragmentImport.ReportColumns,Object> trackDetailedActivity(String item, String action, String description, Long bytes)
protected void incrementCount(EnumMap<ContentFragmentImport.ReportColumns,Object> row, long amt)
protected void createFolders(ActionManager manager) throws IOException
IOExceptionprotected boolean createFolderNode(String path, String folderTitle, org.apache.sling.api.resource.ResourceResolver r) throws javax.jcr.RepositoryException, org.apache.sling.api.resource.PersistenceException
javax.jcr.RepositoryExceptionorg.apache.sling.api.resource.PersistenceExceptionprotected void importFragments(ActionManager manager) throws IOException
IOExceptionprotected com.adobe.cq.dam.cfm.ContentFragment getOrCreateFragment(org.apache.sling.api.resource.Resource parent,
org.apache.sling.api.resource.Resource template,
String name,
String title)
throws com.adobe.cq.dam.cfm.ContentFragmentException
com.adobe.cq.dam.cfm.ContentFragmentExceptionprotected org.apache.sling.api.resource.Resource getFragmentTemplateResource(org.apache.sling.api.resource.ResourceResolver rr,
String templatePath)
Copyright © 2013–2020 Adobe. All rights reserved.