com.liferay.portal.upgrade.v7_0_0
Class UpgradeJournal
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v7_0_0.UpgradeJournal
- All Implemented Interfaces:
- DBProcess
public class UpgradeJournal
- extends UpgradeProcess
|
Method Summary |
protected String |
addBasicWebContentStructureAndTemplate(long companyId)
|
protected long |
addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
String ddmStructureKey,
String localizedName,
String localizedDescription,
String xsd)
|
protected long |
addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long ddmStructureId,
String templateKey,
String localizedName,
String localizedDescription,
String script,
boolean cacheable)
|
protected void |
addResourcePermission(long companyId,
String className,
long primKey,
long roleId,
long actionIds)
|
protected String |
convertStaticContentToDynamic(String content)
|
protected void |
doUpgrade()
|
protected long |
getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds)
|
protected Map<String,Long> |
getBitwiseValues(String name)
|
protected long |
getCompanyGroupId(long companyId)
|
protected String |
getContent(String fileName)
|
protected List<Element> |
getDDMStructures(Locale locale)
|
protected long |
getDefaultUserId(long companyId)
|
protected long |
getRoleId(long companyId,
String name)
|
protected long |
getStagingGroupId(long groupId)
|
protected int |
hasDDMStructure(long groupId,
String ddmStructureKey)
|
protected String |
localize(long groupId,
String key,
String defaultLanguageId)
|
protected void |
updateBasicWebContentStructure()
|
protected void |
updateJournalArticle(long id_,
String ddmStructureKey,
String ddmTemplateKey,
String content)
|
protected void |
updateJournalArticles(long companyId)
|
| Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
doHasTable, getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeJournal
public UpgradeJournal()
addBasicWebContentStructureAndTemplate
protected String addBasicWebContentStructureAndTemplate(long companyId)
throws Exception
- Throws:
Exception
addDDMStructure
protected long addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
String ddmStructureKey,
String localizedName,
String localizedDescription,
String xsd)
throws Exception
- Throws:
Exception
addDDMTemplate
protected long addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long ddmStructureId,
String templateKey,
String localizedName,
String localizedDescription,
String script,
boolean cacheable)
throws Exception
- Throws:
Exception
addResourcePermission
protected void addResourcePermission(long companyId,
String className,
long primKey,
long roleId,
long actionIds)
throws Exception
- Throws:
Exception
convertStaticContentToDynamic
protected String convertStaticContentToDynamic(String content)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade in class UpgradeProcess
- Throws:
Exception
getBitwiseValue
protected long getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds)
getBitwiseValues
protected Map<String,Long> getBitwiseValues(String name)
throws Exception
- Throws:
Exception
getCompanyGroupId
protected long getCompanyGroupId(long companyId)
throws Exception
- Throws:
Exception
getContent
protected String getContent(String fileName)
getDDMStructures
protected List<Element> getDDMStructures(Locale locale)
throws DocumentException
- Throws:
DocumentException
getDefaultUserId
protected long getDefaultUserId(long companyId)
throws Exception
- Throws:
Exception
getRoleId
protected long getRoleId(long companyId,
String name)
throws Exception
- Throws:
Exception
getStagingGroupId
protected long getStagingGroupId(long groupId)
throws Exception
- Throws:
Exception
hasDDMStructure
protected int hasDDMStructure(long groupId,
String ddmStructureKey)
throws Exception
- Throws:
Exception
localize
protected String localize(long groupId,
String key,
String defaultLanguageId)
throws Exception
- Throws:
Exception
updateBasicWebContentStructure
protected void updateBasicWebContentStructure()
throws Exception
- Throws:
Exception
updateJournalArticle
protected void updateJournalArticle(long id_,
String ddmStructureKey,
String ddmTemplateKey,
String content)
throws Exception
- Throws:
Exception
updateJournalArticles
protected void updateJournalArticles(long companyId)
throws Exception
- Throws:
Exception