Interface FMCRUDService
- 
public interface FMCRUDServiceExposes FM CRUD related operations. Operation other than Delete will be added later. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckNodeExist(ResourceResolver resourceResolver, java.lang.String nodePath)This API is used to check whether a node exists or notvoidcleanUpABTestingInfo(javax.jcr.Session session, java.lang.String formPath)This API is used to clean up the unwanted A/B testing details present on the form and its corresponding cq:Page To be used in import of packages and copy/paste functionalityvoidcleanUpAnalyticsInfo(javax.jcr.Session session, java.lang.String formPath)This API is used to clean up the unwanted Analytics information present with the form To be used in import of packages and copy/paste functionalityvoidcleanUpForm(javax.jcr.Session session, java.lang.String formPath)This API is used to clean up the unwanted info related to review, analytics, abtest and replication from provided Form To be used in import of packages and copy/paste functionalityvoidcleanUpFormABTestingInfo(javax.jcr.Session session, java.lang.String formPath)This API is used to clean up the unwanted A/B testing details present on the form dam:Asset To be used in copy/paste functionalityvoidcleanUpFormPageABTestingInfo(javax.jcr.Session session, java.lang.String pagePath)This API is used to clean up the unwanted A/B testing details present on the form cq:Page To be used in copy/paste functionalityvoidcleanUpReviewInfo(javax.jcr.Session session, java.lang.String formPath)This API is used to clean up unwanted review information of form.voidcopyAsset(CopiedAssetInfo copiedAssetInfo, java.lang.String sourcePath, java.lang.String destinationPath, ResourceResolver resourceResolver)This API is used to copy the asset at destinationPath.AssetcreateAsset(ResourceResolver resolver, JSONObject assetJSON)Create the Dam AssetvoidcreateFDM(ResourceResolver resolver, JSONObject assetJson)This API is used to create FDM asset.voidcreateFormset(ResourceResolver resolver, JSONObject assetJSON)Create the formsetjava.lang.StringcreateFragmentFromPanel(ResourceResolver resolver, JSONObject params)This API is used to create Adaptive Form Fragment from exiting panel of an Adaptive Form.voidcreateTheme(ResourceResolver resolver, JSONObject themeJson, JSONObject themeContentJson)This API is used to create Theme Asset.voiddeleteCRXResource(javax.jcr.Session session, java.lang.String resourcePath)Deletes a resource from CRX side, be it a folder, form, guide or resource.voidgenerateFormsetThumbnail(ResourceResolver resolver, java.lang.String formsetPath)Generate Thumbnail for FormsetvoidscheduleFormReplication(java.lang.String assetPath, java.lang.String updatedAttribute, long updatedTime)This API is used to schedule a replication job.voidupdateFDMSources(ResourceResolver resolver, java.lang.String path, java.lang.String cqConf, JSONArray assetJson)This API is used to update FDM sourcesvoidupdateFormset(ResourceResolver resolver, JSONObject assetJSON)Update the formsetvoidupdateThemeClientlib(ResourceResolver resolver, RequestParameterMap paramMap)Updates theme clientlib. 
 - 
 
- 
- 
Method Detail
- 
deleteCRXResource
void deleteCRXResource(javax.jcr.Session session, java.lang.String resourcePath) throws FormsMgrExceptionDeletes a resource from CRX side, be it a folder, form, guide or resource. For forms, guides and resources deletePreprocessors are invoked.- Parameters:
 session-resourcePath- - The path of the resource to be deleted.- Throws:
 FormsMgrException
 
- 
createFormset
void createFormset(ResourceResolver resolver, JSONObject assetJSON) throws FormsMgrException, java.io.IOException
Create the formset- Parameters:
 resolver-assetJSON-- Throws:
 FormsMgrExceptionjava.io.IOException
 
- 
createAsset
Asset createAsset(ResourceResolver resolver, JSONObject assetJSON) throws FormsMgrException
Create the Dam Asset- Parameters:
 resolver-assetJSON-- Returns:
 - Dam Asset will be returned.
 - Throws:
 FormsMgrException
 
- 
updateFormset
void updateFormset(ResourceResolver resolver, JSONObject assetJSON) throws FormsMgrException
Update the formset- Parameters:
 resolver-assetJSON-- Throws:
 FormsMgrException
 
- 
generateFormsetThumbnail
void generateFormsetThumbnail(ResourceResolver resolver, java.lang.String formsetPath) throws FormsMgrException, java.io.IOException
Generate Thumbnail for Formset- Parameters:
 resolver-formsetPath-- Throws:
 FormsMgrExceptionjava.io.IOException
 
- 
createFragmentFromPanel
java.lang.String createFragmentFromPanel(ResourceResolver resolver, JSONObject params) throws FormsMgrException
This API is used to create Adaptive Form Fragment from exiting panel of an Adaptive Form. The fragment created is made up of the panel taken as input in params.- Parameters:
 resolver-params-- Throws:
 FormsMgrException
 
- 
cleanUpForm
void cleanUpForm(javax.jcr.Session session, java.lang.String formPath) throws FormsMgrExceptionThis API is used to clean up the unwanted info related to review, analytics, abtest and replication from provided Form To be used in import of packages and copy/paste functionality- Parameters:
 session- representing JCR sessionformPath- representing repository path to Form- Throws:
 FormsMgrException
 
- 
cleanUpReviewInfo
void cleanUpReviewInfo(javax.jcr.Session session, java.lang.String formPath) throws FormsMgrExceptionThis API is used to clean up unwanted review information of form. To be used in import of packages and copy/paste functionality- Parameters:
 session- representing JCR sessionformPath- representing repository path to Form- Throws:
 FormsMgrException
 
- 
cleanUpABTestingInfo
void cleanUpABTestingInfo(javax.jcr.Session session, java.lang.String formPath) throws FormsMgrExceptionThis API is used to clean up the unwanted A/B testing details present on the form and its corresponding cq:Page To be used in import of packages and copy/paste functionality- Parameters:
 session-formPath-- Throws:
 FormsMgrException
 
- 
cleanUpFormABTestingInfo
void cleanUpFormABTestingInfo(javax.jcr.Session session, java.lang.String formPath) throws FormsMgrExceptionThis API is used to clean up the unwanted A/B testing details present on the form dam:Asset To be used in copy/paste functionality- Parameters:
 session-formPath- path of form dam:asset node- Throws:
 FormsMgrException
 
- 
cleanUpFormPageABTestingInfo
void cleanUpFormPageABTestingInfo(javax.jcr.Session session, java.lang.String pagePath) throws FormsMgrExceptionThis API is used to clean up the unwanted A/B testing details present on the form cq:Page To be used in copy/paste functionality- Parameters:
 session-pagePath- path of the cq:Page corresponding Form asset- Throws:
 FormsMgrException
 
- 
cleanUpAnalyticsInfo
void cleanUpAnalyticsInfo(javax.jcr.Session session, java.lang.String formPath) throws FormsMgrExceptionThis API is used to clean up the unwanted Analytics information present with the form To be used in import of packages and copy/paste functionality- Parameters:
 session-formPath-- Throws:
 FormsMgrException
 
- 
createTheme
void createTheme(ResourceResolver resolver, JSONObject themeJson, JSONObject themeContentJson) throws FormsMgrException
This API is used to create Theme Asset.- Parameters:
 resolver-themeJson-themeContentJson-- Throws:
 FormsMgrException
 
- 
checkNodeExist
boolean checkNodeExist(ResourceResolver resourceResolver, java.lang.String nodePath) throws FormsMgrException
This API is used to check whether a node exists or not- Parameters:
 resourceResolver-nodePath-- Returns:
 - Throws:
 FormsMgrException
 
- 
copyAsset
void copyAsset(CopiedAssetInfo copiedAssetInfo, java.lang.String sourcePath, java.lang.String destinationPath, ResourceResolver resourceResolver) throws FormsMgrException
This API is used to copy the asset at destinationPath. It also performs clean up task.- Parameters:
 copiedAssetInfo-sourcePath-destinationPath-resourceResolver-- Throws:
 FormsMgrException
 
- 
createFDM
void createFDM(ResourceResolver resolver, JSONObject assetJson) throws FormsMgrException
This API is used to create FDM asset.- Parameters:
 resolver-assetJson-- Throws:
 FormsMgrException
 
- 
scheduleFormReplication
void scheduleFormReplication(java.lang.String assetPath, java.lang.String updatedAttribute, long updatedTime) throws FormsMgrExceptionThis API is used to schedule a replication job.- Parameters:
 assetPath-updatedAttribute-updatedTime-- Throws:
 FormsMgrException
 
- 
updateFDMSources
void updateFDMSources(ResourceResolver resolver, java.lang.String path, java.lang.String cqConf, JSONArray assetJson) throws FormsMgrException
This API is used to update FDM sources- Parameters:
 resolver-path-assetJson-- Throws:
 FormsMgrException
 
- 
updateThemeClientlib
void updateThemeClientlib(ResourceResolver resolver, RequestParameterMap paramMap) throws FormsMgrException
Updates theme clientlib.- Parameters:
 resolver-paramMap-- Throws:
 FormsMgrException
 
 - 
 
 -