Package com.liferay.portal.verify
Class VerifyProcess
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.verify.VerifyProcess
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.db.DBProcess
- Direct Known Subclasses:
BaseCompanySettingsVerifyProcess
,VerifyAuditedModel
,VerifyGroup
,VerifyGroupedModel
,VerifyLayout
,VerifyPermission
,VerifyProcessSuite
,VerifyResourceActions
,VerifyResourcePermissions
,VerifyRole
,VerifyUser
,VerifyUUID
public abstract class VerifyProcess
extends com.liferay.portal.kernel.dao.db.BaseDBProcess
This abstract class should be extended for startup processes that verify the
integrity of the database. They can be added as part of
VerifyProcessSuite
or be executed independently by being set in
the portal.properties file. Each of these processes should not cause any
problems if run multiple times.- Author:
- Alexander Chow, Hugo Huijser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doVerify()
protected void
doVerify
(Collection<? extends Callable<Void>> callables) Deprecated.protected boolean
isForceConcurrent
(Collection<? extends Callable<Void>> callables) protected boolean
isPortalTableName
(String tableName) void
verify()
void
verify
(VerifyProcess verifyProcess) Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Field Details
-
ALWAYS
public static final int ALWAYS- See Also:
-
NEVER
public static final int NEVER- See Also:
-
ONCE
public static final int ONCE- See Also:
-
-
Constructor Details
-
VerifyProcess
public VerifyProcess()
-
-
Method Details
-
verify
- Throws:
VerifyException
-
verify
- Throws:
VerifyException
-
doVerify
- Throws:
Exception
-
doVerify
@Deprecated protected void doVerify(Collection<? extends Callable<Void>> callables) throws Exception Deprecated.As of Cavanaugh (7.4.x), replaced byBaseDBProcess.processConcurrently(Object[], UnsafeConsumer, String)
- Throws:
Exception
-
getPortalTableNames
- Throws:
Exception
-
isForceConcurrent
-
isPortalTableName
- Throws:
Exception
-
BaseDBProcess.processConcurrently(Object[], UnsafeConsumer, String)