Liferay 6.2-ce-ga5

com.liferay.portal.verify
Class VerifyDynamicDataMapping

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.verify.VerifyProcess
          extended by com.liferay.portal.verify.VerifyDynamicDataMapping
All Implemented Interfaces:
DBProcess

public class VerifyDynamicDataMapping
extends VerifyProcess


Field Summary
 
Fields inherited from class com.liferay.portal.verify.VerifyProcess
ALWAYS, NEVER, ONCE
 
Constructor Summary
VerifyDynamicDataMapping()
           
 
Method Summary
protected  FileEntry addFileEntry(long companyId, long userId, long groupId, long folderId, String fileName, String filePath, int status)
           
protected  Folder addFolder(long userId, long groupId, long primaryKey, String fieldName)
           
protected  Folder addFolder(long userId, long groupId, long parentFolderId, String name, String description)
           
protected  boolean checkDuplicateNames(DDMStructure structure)
           
protected  boolean createDefaultMetadataElement(Element dynamicElementElement, String defaultLanguageId)
           
protected  ServiceContext createServiceContext()
           
protected  void doVerify()
           
protected  Set<String> getDuplicateElementNames(Element element, Set<String> elementNames, Set<String> duplicateElementNames)
           
protected  String getFileUploadPath(BaseModel<?> baseModel)
           
protected  String getFullStructureXML(DDMStructure structure, String xml)
           
protected  String getJSON(FileEntry fileEntry)
           
protected  long getUserId(AuditedModel auditedModel)
           
protected  boolean hasDefaultMetadataElement(Element dynamicElementElement, String defaultLanguageId)
           
protected  boolean hasFileUploadFields(DDMStructure structure)
           
protected  void setUpClassNameIds()
           
protected  void updateDDLFileUploadReferences(long ddlRecordSetId)
           
protected  void updateDLFileUploadReferences(long dlFileEntryMetadataId)
           
protected  void updateFieldValues(long storageId, Map<String,String> fieldValues)
           
protected  void updateFileEntryStatus(FileEntry fileEntry, int status, ServiceContext serviceContext)
           
protected  void updateFileUploadReferences(DDMStructure structure)
           
protected  void updateFileUploadReferences(DDMStructureLink structureLink)
           
protected  void updateFileUploadReferences(long companyId, long storageId, long userId, long groupId, BaseModel<?> baseModel, int status)
           
protected  void updateStructure(DDMStructure structure, String xsd)
           
protected  void updateTemplate(DDMTemplate template, String script)
           
protected  String updateXSD(String xsd)
           
protected  void updateXSDDynamicElement(Element element)
           
protected  void verifyStructure(DDMStructure structure)
           
 
Methods inherited from class com.liferay.portal.verify.VerifyProcess
doVerify, getBuildNumber, getPortalTableNames, isPortalTableName, verify, verify
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
runSQL, runSQL, runSQLTemplate, runSQLTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyDynamicDataMapping

public VerifyDynamicDataMapping()
Method Detail

addFileEntry

protected FileEntry addFileEntry(long companyId,
                                 long userId,
                                 long groupId,
                                 long folderId,
                                 String fileName,
                                 String filePath,
                                 int status)
                          throws Exception
Throws:
Exception

addFolder

protected Folder addFolder(long userId,
                           long groupId,
                           long primaryKey,
                           String fieldName)
                    throws Exception
Throws:
Exception

addFolder

protected Folder addFolder(long userId,
                           long groupId,
                           long parentFolderId,
                           String name,
                           String description)
                    throws Exception
Throws:
Exception

checkDuplicateNames

protected boolean checkDuplicateNames(DDMStructure structure)
                               throws Exception
Throws:
Exception

createDefaultMetadataElement

protected boolean createDefaultMetadataElement(Element dynamicElementElement,
                                               String defaultLanguageId)

createServiceContext

protected ServiceContext createServiceContext()

doVerify

protected void doVerify()
                 throws Exception
Overrides:
doVerify in class VerifyProcess
Throws:
Exception

getDuplicateElementNames

protected Set<String> getDuplicateElementNames(Element element,
                                               Set<String> elementNames,
                                               Set<String> duplicateElementNames)

getFileUploadPath

protected String getFileUploadPath(BaseModel<?> baseModel)
                            throws Exception
Throws:
Exception

getFullStructureXML

protected String getFullStructureXML(DDMStructure structure,
                                     String xml)
                              throws Exception
Throws:
Exception

getJSON

protected String getJSON(FileEntry fileEntry)

getUserId

protected long getUserId(AuditedModel auditedModel)
                  throws Exception
Throws:
Exception

hasDefaultMetadataElement

protected boolean hasDefaultMetadataElement(Element dynamicElementElement,
                                            String defaultLanguageId)

hasFileUploadFields

protected boolean hasFileUploadFields(DDMStructure structure)
                               throws Exception
Throws:
Exception

setUpClassNameIds

protected void setUpClassNameIds()

updateDDLFileUploadReferences

protected void updateDDLFileUploadReferences(long ddlRecordSetId)
                                      throws Exception
Throws:
Exception

updateDLFileUploadReferences

protected void updateDLFileUploadReferences(long dlFileEntryMetadataId)
                                     throws Exception
Throws:
Exception

updateFieldValues

protected void updateFieldValues(long storageId,
                                 Map<String,String> fieldValues)
                          throws Exception
Throws:
Exception

updateFileEntryStatus

protected void updateFileEntryStatus(FileEntry fileEntry,
                                     int status,
                                     ServiceContext serviceContext)
                              throws Exception
Throws:
Exception

updateFileUploadReferences

protected void updateFileUploadReferences(DDMStructure structure)
                                   throws Exception
Throws:
Exception

updateFileUploadReferences

protected void updateFileUploadReferences(DDMStructureLink structureLink)
                                   throws Exception
Throws:
Exception

updateFileUploadReferences

protected void updateFileUploadReferences(long companyId,
                                          long storageId,
                                          long userId,
                                          long groupId,
                                          BaseModel<?> baseModel,
                                          int status)
                                   throws Exception
Throws:
Exception

updateStructure

protected void updateStructure(DDMStructure structure,
                               String xsd)
                        throws Exception
Throws:
Exception

updateTemplate

protected void updateTemplate(DDMTemplate template,
                              String script)
                       throws Exception
Throws:
Exception

updateXSD

protected String updateXSD(String xsd)
                    throws Exception
Throws:
Exception

updateXSDDynamicElement

protected void updateXSDDynamicElement(Element element)

verifyStructure

protected void verifyStructure(DDMStructure structure)
                        throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5