public abstract class BaseTrashHandlerTestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.model.BaseModel<?> |
baseModel |
protected com.liferay.portal.kernel.model.Group |
group |
Constructor and Description |
---|
BaseTrashHandlerTestCase() |
protected com.liferay.portal.kernel.model.BaseModel<?> baseModel
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
public void setUp() throws java.lang.Exception
java.lang.Exception
public void testDeleteTrashVersions() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrash() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashIndexable() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashIndexableAndReindex() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashIndexableWithEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashIndexableWithEqualsParentAndBaseModelClassAndReindex() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashStatusIsInTrash() throws java.lang.Exception
java.lang.Exception
public void testMoveBaseModelToTrashUniqueTitleNotChange() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithApprovedStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithApprovedStatusIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithApprovedStatusIsNotFound() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithDraftStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithDraftStatusIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashAndDeleteWithDraftStatusIsNotFound() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatusIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatusIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatusRestoreStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithApprovedStatusRestoreUniqueTitle() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithDraftStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithDraftStatusIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithDraftStatusIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithDraftStatusRestoreStatus() throws java.lang.Exception
java.lang.Exception
public void testTrashAndRestoreWithDraftStatusRestoreUniqueTitle() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndDeleteWithParentIsNotRestorable() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndDeleteGroupTrashEntries() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndDeleteParent() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndDeleteParentNoMoveableFromTrash() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndRestore() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndRestoreModel() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentAndRestoreModelIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentIsInContainerBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndParentIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndTrashParentAndDeleteParentIsNotRestorable() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelAndTrashParentIsNotRestorable() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelIsInTrashContainer() throws java.lang.Exception
java.lang.Exception
public void testTrashBaseModelWithParentIsRestorable() throws java.lang.Exception
java.lang.Exception
public void testTrashDuplicate() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelAndRestoreParentModel() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelAndRestoreParentModelIsNotInTrashContainer() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelAndRestoreParentModelIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelAndRestoreParentModelIsVisibleParent() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashGrandparentBaseModelIsNotVisibleParent() throws java.lang.Exception
java.lang.Exception
public void testTrashIsRestorableBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashMyBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashParent() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndDeleteGroupTrashEntries() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndDeleteParent() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndRestoreBaseModelIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndRestoreIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashParentAndRestoreParentAndBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashParentIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashParentIndexableAndReindex() throws java.lang.Exception
java.lang.Exception
public void testTrashParentIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashParentWithBaseModelIsInTrashContainer() throws java.lang.Exception
java.lang.Exception
public void testTrashParentWithBaseModelIsIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashRecentBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndDelete() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndDeleteIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndDeleteIndexableWithEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndDeleteIsNotFound() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndRestore() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndRestoreIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndRestoreIndexableWithEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelAndRestoreIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelIndexableAndReindex() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelIndexableWithEqualsParentAndBaseModelClass() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelIndexableWithEqualsParentAndBaseModelClassAndReindex() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionBaseModelIsNotVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModel() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelAndCustomRestore() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelAndRestore() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelAndRestoreIsNotInTrashContainer() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelAndRestoreIsVisible() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelIndexable() throws java.lang.Exception
java.lang.Exception
public void testTrashVersionParentBaseModelIsNotVisible() throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.BaseModel<?> addDraftBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected void deleteParentBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, boolean includeTrashedEntries) throws java.lang.Exception
java.lang.Exception
protected java.lang.Long getAssetClassPK(com.liferay.portal.kernel.model.ClassedModel classedModel)
protected abstract com.liferay.portal.kernel.model.BaseModel<?> getBaseModel(long primaryKey) throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.Class<?> getBaseModelClass()
protected java.lang.String getBaseModelClassName()
protected long getDeletionSystemEventCount(com.liferay.portal.kernel.trash.TrashHandler trashHandler, long systemEventSetKey) throws java.lang.Exception
java.lang.Exception
protected abstract int getNotInTrashBaseModelsCount(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel) throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, long parentBaseModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected int getTrashEntriesCount(long groupId) throws java.lang.Exception
java.lang.Exception
protected long getTrashEntryClassPK(com.liferay.portal.kernel.model.ClassedModel classedModel)
protected abstract java.lang.String getUniqueTitle(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
protected com.liferay.portal.kernel.model.WorkflowedModel getWorkflowedModel(com.liferay.portal.kernel.model.ClassedModel baseModel) throws java.lang.Exception
java.lang.Exception
protected boolean isBaseModelContainerModel()
protected boolean isInTrashContainer(com.liferay.portal.kernel.model.ClassedModel classedModel) throws java.lang.Exception
java.lang.Exception
protected abstract void moveBaseModelToTrash(long primaryKey) throws java.lang.Exception
java.lang.Exception
protected void reindex(com.liferay.portal.kernel.model.ClassedModel classedModel) throws java.lang.Exception
java.lang.Exception