Package com.liferay.trash.test.util
Class BaseTrashHandlerTestCase
java.lang.Object
com.liferay.trash.test.util.BaseTrashHandlerTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.model.BaseModel<?> protected com.liferay.portal.kernel.model.Groupcom.liferay.portal.search.test.rule.SearchTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.service.ServiceContext serviceContext) protected com.liferay.portal.kernel.model.BaseModel<?> addDraftBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected voiddeleteParentBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, boolean includeTrashedEntries) protected LonggetAssetClassPK(com.liferay.portal.kernel.model.ClassedModel classedModel) protected abstract com.liferay.portal.kernel.model.BaseModel<?> getBaseModel(long primaryKey) protected abstract Class<?> protected Stringprotected longgetDeletionSystemEventCount(com.liferay.portal.kernel.trash.TrashHandler trashHandler, long systemEventSetKey) protected abstract intgetNotInTrashBaseModelsCount(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel) protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, long parentBaseModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected intgetTrashEntriesCount(long groupId) protected longgetTrashEntryClassPK(com.liferay.portal.kernel.model.ClassedModel classedModel) protected com.liferay.portal.kernel.trash.TrashHandlergetTrashHandler(String className) protected abstract StringgetUniqueTitle(com.liferay.portal.kernel.model.BaseModel<?> baseModel) protected com.liferay.portal.kernel.model.WorkflowedModelgetWorkflowedModel(com.liferay.portal.kernel.model.ClassedModel baseModel) protected booleanprotected booleanisInTrashContainer(com.liferay.portal.kernel.model.ClassedModel classedModel) protected abstract booleanisInTrashContainer(com.liferay.portal.kernel.model.TrashedModel trashedModel) protected booleanisValidTrashTitle(String title) protected abstract voidmoveBaseModelToTrash(long primaryKey) protected voidreindex(com.liferay.portal.kernel.model.ClassedModel classedModel) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
searchTestRule
public com.liferay.portal.search.test.rule.SearchTestRule searchTestRule -
baseModel
protected com.liferay.portal.kernel.model.BaseModel<?> baseModel -
group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
-
-
Constructor Details
-
BaseTrashHandlerTestCase
public BaseTrashHandlerTestCase()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testDeleteTrashVersions
- Throws:
Exception
-
testMoveBaseModelToTrash
- Throws:
Exception
-
testMoveBaseModelToTrashIndexable
- Throws:
Exception
-
testMoveBaseModelToTrashIndexableAndReindex
- Throws:
Exception
-
testMoveBaseModelToTrashIndexableWithEqualsParentAndBaseModelClass
- Throws:
Exception
-
testMoveBaseModelToTrashIndexableWithEqualsParentAndBaseModelClassAndReindex
public void testMoveBaseModelToTrashIndexableWithEqualsParentAndBaseModelClassAndReindex() throws Exception- Throws:
Exception
-
testMoveBaseModelToTrashIsNotVisible
- Throws:
Exception
-
testMoveBaseModelToTrashStatusIsInTrash
- Throws:
Exception
-
testMoveBaseModelToTrashUniqueTitleNotChange
- Throws:
Exception
-
testTrashAndDeleteWithApprovedStatus
- Throws:
Exception
-
testTrashAndDeleteWithApprovedStatusIndexable
- Throws:
Exception
-
testTrashAndDeleteWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass
public void testTrashAndDeleteWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass() throws Exception- Throws:
Exception
-
testTrashAndDeleteWithApprovedStatusIsNotFound
- Throws:
Exception
-
testTrashAndDeleteWithDraftStatus
- Throws:
Exception
-
testTrashAndDeleteWithDraftStatusIndexable
- Throws:
Exception
-
testTrashAndDeleteWithDraftStatusIsNotFound
- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatus
- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatusIndexable
- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass
public void testTrashAndRestoreWithApprovedStatusIndexableAndEqualsParentAndBaseModelClass() throws Exception- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatusIsVisible
- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatusRestoreStatus
- Throws:
Exception
-
testTrashAndRestoreWithApprovedStatusRestoreUniqueTitle
- Throws:
Exception
-
testTrashAndRestoreWithDraftStatus
- Throws:
Exception
-
testTrashAndRestoreWithDraftStatusIndexable
- Throws:
Exception
-
testTrashAndRestoreWithDraftStatusIsNotVisible
- Throws:
Exception
-
testTrashAndRestoreWithDraftStatusRestoreStatus
- Throws:
Exception
-
testTrashAndRestoreWithDraftStatusRestoreUniqueTitle
- Throws:
Exception
-
testTrashBaseModelAndDeleteWithParentIsNotRestorable
- Throws:
Exception
-
testTrashBaseModelAndParentAndDeleteGroupTrashEntries
- Throws:
Exception
-
testTrashBaseModelAndParentAndDeleteParent
- Throws:
Exception
-
testTrashBaseModelAndParentAndDeleteParentNoMoveableFromTrash
- Throws:
Exception
-
testTrashBaseModelAndParentAndRestore
- Throws:
Exception
-
testTrashBaseModelAndParentAndRestoreModel
- Throws:
Exception
-
testTrashBaseModelAndParentAndRestoreModelIsVisible
- Throws:
Exception
-
testTrashBaseModelAndParentIsInContainerBaseModel
- Throws:
Exception
-
testTrashBaseModelAndParentIsNotVisible
- Throws:
Exception
-
testTrashBaseModelAndTrashParentAndDeleteParentIsNotRestorable
- Throws:
Exception
-
testTrashBaseModelAndTrashParentIsNotRestorable
- Throws:
Exception
-
testTrashBaseModelIsInTrashContainer
- Throws:
Exception
-
testTrashBaseModelWithParentIsRestorable
- Throws:
Exception
-
testTrashDuplicate
- Throws:
Exception
-
testTrashGrandparentBaseModel
- Throws:
Exception
-
testTrashGrandparentBaseModelAndRestoreParentModel
- Throws:
Exception
-
testTrashGrandparentBaseModelAndRestoreParentModelIsNotInTrashContainer
public void testTrashGrandparentBaseModelAndRestoreParentModelIsNotInTrashContainer() throws Exception- Throws:
Exception
-
testTrashGrandparentBaseModelAndRestoreParentModelIsVisible
- Throws:
Exception
-
testTrashGrandparentBaseModelAndRestoreParentModelIsVisibleParent
- Throws:
Exception
-
testTrashGrandparentBaseModelIsNotVisible
- Throws:
Exception
-
testTrashGrandparentBaseModelIsNotVisibleParent
- Throws:
Exception
-
testTrashIsRestorableBaseModel
- Throws:
Exception
-
testTrashMyBaseModel
- Throws:
Exception
-
testTrashParent
- Throws:
Exception
-
testTrashParentAndBaseModel
- Throws:
Exception
-
testTrashParentAndDeleteGroupTrashEntries
- Throws:
Exception
-
testTrashParentAndDeleteParent
- Throws:
Exception
-
testTrashParentAndRestoreBaseModelIsVisible
- Throws:
Exception
-
testTrashParentAndRestoreIndexable
- Throws:
Exception
-
testTrashParentAndRestoreParentAndBaseModel
- Throws:
Exception
-
testTrashParentIndexable
- Throws:
Exception
-
testTrashParentIndexableAndReindex
- Throws:
Exception
-
testTrashParentIsNotVisible
- Throws:
Exception
-
testTrashParentWithBaseModelIsInTrashContainer
- Throws:
Exception
-
testTrashParentWithBaseModelIsIsNotVisible
- Throws:
Exception
-
testTrashRecentBaseModel
- Throws:
Exception
-
testTrashVersionBaseModel
- Throws:
Exception
-
testTrashVersionBaseModelAndDelete
- Throws:
Exception
-
testTrashVersionBaseModelAndDeleteIndexable
- Throws:
Exception
-
testTrashVersionBaseModelAndDeleteIndexableWithEqualsParentAndBaseModelClass
public void testTrashVersionBaseModelAndDeleteIndexableWithEqualsParentAndBaseModelClass() throws Exception- Throws:
Exception
-
testTrashVersionBaseModelAndDeleteIsNotFound
- Throws:
Exception
-
testTrashVersionBaseModelAndRestore
- Throws:
Exception
-
testTrashVersionBaseModelAndRestoreIndexable
- Throws:
Exception
-
testTrashVersionBaseModelAndRestoreIndexableWithEqualsParentAndBaseModelClass
public void testTrashVersionBaseModelAndRestoreIndexableWithEqualsParentAndBaseModelClass() throws Exception- Throws:
Exception
-
testTrashVersionBaseModelAndRestoreIsVisible
- Throws:
Exception
-
testTrashVersionBaseModelIndexable
- Throws:
Exception
-
testTrashVersionBaseModelIndexableAndReindex
- Throws:
Exception
-
testTrashVersionBaseModelIndexableWithEqualsParentAndBaseModelClass
- Throws:
Exception
-
testTrashVersionBaseModelIndexableWithEqualsParentAndBaseModelClassAndReindex
public void testTrashVersionBaseModelIndexableWithEqualsParentAndBaseModelClassAndReindex() throws Exception- Throws:
Exception
-
testTrashVersionBaseModelIsNotVisible
- Throws:
Exception
-
testTrashVersionParentBaseModel
- Throws:
Exception
-
testTrashVersionParentBaseModelAndCustomRestore
- Throws:
Exception
-
testTrashVersionParentBaseModelAndRestore
- Throws:
Exception
-
testTrashVersionParentBaseModelAndRestoreIsNotInTrashContainer
- Throws:
Exception
-
testTrashVersionParentBaseModelAndRestoreIsVisible
- Throws:
Exception
-
testTrashVersionParentBaseModelIndexable
- Throws:
Exception
-
testTrashVersionParentBaseModelIsNotVisible
- Throws:
Exception
-
addBaseModel
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
addBaseModelWithWorkflow
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
addBaseModelWithWorkflow
protected com.liferay.portal.kernel.model.BaseModel<?> addBaseModelWithWorkflow(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
addDraftBaseModel
protected com.liferay.portal.kernel.model.BaseModel<?> addDraftBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
deleteParentBaseModel
protected void deleteParentBaseModel(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel, boolean includeTrashedEntries) throws Exception - Throws:
Exception
-
getAssetClassPK
-
getBaseModel
protected abstract com.liferay.portal.kernel.model.BaseModel<?> getBaseModel(long primaryKey) throws Exception - Throws:
Exception
-
getBaseModelClass
-
getBaseModelClassName
-
getDeletionSystemEventCount
protected long getDeletionSystemEventCount(com.liferay.portal.kernel.trash.TrashHandler trashHandler, long systemEventSetKey) throws Exception - Throws:
Exception
-
getNotInTrashBaseModelsCount
protected abstract int getNotInTrashBaseModelsCount(com.liferay.portal.kernel.model.BaseModel<?> parentBaseModel) throws Exception - Throws:
Exception
-
getParentBaseModel
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 Exception - Throws:
Exception
-
getParentBaseModel
protected com.liferay.portal.kernel.model.BaseModel<?> getParentBaseModel(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getTrashEntriesCount
- Throws:
Exception
-
getTrashEntryClassPK
protected long getTrashEntryClassPK(com.liferay.portal.kernel.model.ClassedModel classedModel) -
getTrashHandler
-
getUniqueTitle
-
getWorkflowedModel
protected com.liferay.portal.kernel.model.WorkflowedModel getWorkflowedModel(com.liferay.portal.kernel.model.ClassedModel baseModel) throws Exception - Throws:
Exception
-
isBaseModelContainerModel
protected boolean isBaseModelContainerModel() -
isInTrashContainer
protected boolean isInTrashContainer(com.liferay.portal.kernel.model.ClassedModel classedModel) throws Exception - Throws:
Exception
-
isInTrashContainer
protected abstract boolean isInTrashContainer(com.liferay.portal.kernel.model.TrashedModel trashedModel) -
isValidTrashTitle
-
moveBaseModelToTrash
- Throws:
Exception
-
reindex
- Throws:
Exception
-