public class UpgradeJournal extends BaseUpgradePortletPreferences
| Constructor and Description |
|---|
UpgradeJournal() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentDDMStructureId,
long classNameId,
String ddmStructureKey,
String name,
String description,
String xsd,
String storageType,
int type) |
protected void |
addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String parentStructureId,
String ddmStructureKey,
String name,
String description,
String xsd) |
protected void |
addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
String templateKey,
String name,
String description,
String type,
String mode,
String language,
String script,
boolean cacheable,
boolean smallImage,
long smallImageId,
String smallImageURL) |
protected void |
addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement,
String name,
String value) |
protected void |
addResourcePermission(PreparedStatement preparedStatement,
long companyId,
String primKey,
long roleId) |
protected String |
decodeURL(String url) |
protected void |
doUpgrade() |
protected com.liferay.portal.kernel.xml.Element |
fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement,
String attributeName,
String attributeValue) |
protected long |
getCompanyGroupId(long companyId) |
protected long |
getDDMStructureClassNameId() |
protected long |
getDDMStructureId(long groupId,
long companyGroupId,
String structureId) |
protected long |
getDDMStructureId(long groupId,
long companyGroupId,
String structureId,
boolean warn) |
protected long |
getDDMStructureId(long groupId,
String structureId,
boolean warn) |
protected String |
getDDMXSD(String journalXSD,
Locale defaultLocale) |
protected Locale |
getDefaultLocale(long companyId) |
protected long |
getJournalStructureClassNameId() |
protected String[] |
getPortletIds() |
protected long |
getRoleId(String roleName) |
protected void |
removeAttribute(com.liferay.portal.kernel.xml.Element element,
String attributeName) |
protected void |
setUpStrutureAttributesMappings() |
protected void |
updateAssetEntryClassTypeId() |
protected void |
updateContentSearch() |
protected void |
updateContentSearch(long groupId,
String portletId) |
protected void |
updateElement(long groupId,
com.liferay.portal.kernel.xml.Element element) |
protected void |
updateJournalArticleClassNameIdAndClassPK(long journalStructureId,
Long ddmStructureId) |
protected void |
updateJournalResourcePermission() |
protected void |
updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element,
String defaultLanguageId) |
protected void |
updateLinkToLayoutContent() |
protected void |
updateLinkToLayoutElements(long groupId,
com.liferay.portal.kernel.xml.Element element) |
protected void |
updatePreferencesClassPKs(javax.portlet.PortletPreferences portletPreferences,
String key) |
protected void |
updateResourcePermission(long companyId,
String oldClassName,
String newClassName,
long oldPrimKey,
long newPrimKey) |
protected long |
updateStructure(ResultSet resultSet) |
protected long |
updateStructure(String structureId) |
protected void |
updateStructures() |
protected void |
updateTemplates() |
protected String |
upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml) |
protected void |
upgradeRss(javax.portlet.PortletPreferences portletPreferences) |
protected void |
upgradeScopeIds(javax.portlet.PortletPreferences portletPreferences) |
protected void |
upgradeURLTitle() |
deletePortletPreferencesByOwnerType, updatePortletPreferences, updatePortletPreferencesWithOwnerTypegetCompanyId, getGroup, getLayout, getLayoutRevision, getLayoutUuid, getUpdatePortletPreferencesWhereClause, upgradeMultiValuePreferenceaddTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade, upgrade, upgradeaddIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringprotected void addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentDDMStructureId,
long classNameId,
String ddmStructureKey,
String name,
String description,
String xsd,
String storageType,
int type)
throws Exception
Exceptionprotected void addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String parentStructureId,
String ddmStructureKey,
String name,
String description,
String xsd)
throws Exception
Exceptionprotected void addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
String templateKey,
String name,
String description,
String type,
String mode,
String language,
String script,
boolean cacheable,
boolean smallImage,
long smallImageId,
String smallImageURL)
throws Exception
Exceptionprotected void addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement,
String name,
String value)
protected void addResourcePermission(PreparedStatement preparedStatement,
long companyId,
String primKey,
long roleId)
protected String decodeURL(String url)
protected void doUpgrade()
throws Exception
doUpgrade in class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcessExceptionprotected com.liferay.portal.kernel.xml.Element fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement,
String attributeName,
String attributeValue)
protected long getCompanyGroupId(long companyId)
throws Exception
Exceptionprotected long getDDMStructureClassNameId()
protected long getDDMStructureId(long groupId,
long companyGroupId,
String structureId)
protected long getDDMStructureId(long groupId,
long companyGroupId,
String structureId,
boolean warn)
protected long getDDMStructureId(long groupId,
String structureId,
boolean warn)
protected String getDDMXSD(String journalXSD,
Locale defaultLocale)
throws Exception
Exceptionprotected Locale getDefaultLocale(long companyId)
throws Exception
Exceptionprotected long getJournalStructureClassNameId()
protected String[] getPortletIds()
getPortletIds in class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcessprotected long getRoleId(String roleName)
throws Exception
Exceptionprotected void removeAttribute(com.liferay.portal.kernel.xml.Element element,
String attributeName)
protected void setUpStrutureAttributesMappings()
protected void updateAssetEntryClassTypeId()
throws Exception
Exceptionprotected void updateContentSearch()
throws Exception
Exceptionprotected void updateContentSearch(long groupId,
String portletId)
throws Exception
Exceptionprotected void updateElement(long groupId,
com.liferay.portal.kernel.xml.Element element)
protected void updateJournalArticleClassNameIdAndClassPK(long journalStructureId,
Long ddmStructureId)
throws Exception
Exceptionprotected void updateJournalResourcePermission()
throws Exception
Exceptionprotected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element,
String defaultLanguageId)
protected void updateLinkToLayoutContent()
throws Exception
Exceptionprotected void updateLinkToLayoutElements(long groupId,
com.liferay.portal.kernel.xml.Element element)
protected void updatePreferencesClassPKs(javax.portlet.PortletPreferences portletPreferences,
String key)
throws Exception
Exceptionprotected void updateResourcePermission(long companyId,
String oldClassName,
String newClassName,
long oldPrimKey,
long newPrimKey)
throws Exception
Exceptionprotected long updateStructure(ResultSet resultSet)
throws Exception
Exceptionprotected long updateStructure(String structureId)
throws Exception
Exceptionprotected void updateStructures()
throws Exception
Exceptionprotected void updateTemplates()
throws Exception
Exceptionprotected String upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
throws Exception
upgradePreferences in class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcessExceptionprotected void upgradeRss(javax.portlet.PortletPreferences portletPreferences)
throws Exception
Exceptionprotected void upgradeScopeIds(javax.portlet.PortletPreferences portletPreferences)
throws Exception
Exceptionprotected void upgradeURLTitle()
throws Exception
Exception