mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4095 (Fix failing tests after merging 2.3.0.x up to master)
This commit is contained in:
@@ -259,6 +259,7 @@
|
||||
depends-on="rmDestroyRecordsScheduledForDestructionCapability">
|
||||
<property name="capabilityService" ref="CapabilityService" />
|
||||
<property name="eagerContentStoreCleaner" ref="eagerContentStoreCleaner"/>
|
||||
<property name="inplaceRecordService" ref="InplaceRecordService"/>
|
||||
<property name="ghostingEnabled">
|
||||
<value>${rm.ghosting.enabled}</value>
|
||||
</property>
|
||||
|
@@ -29,6 +29,7 @@ import org.alfresco.module.org_alfresco_module_rm.action.RMDispositionActionExec
|
||||
import org.alfresco.module.org_alfresco_module_rm.capability.CapabilityService;
|
||||
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionActionDefinition;
|
||||
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule;
|
||||
import org.alfresco.module.org_alfresco_module_rm.record.InplaceRecordService;
|
||||
import org.alfresco.repo.content.cleanup.EagerContentStoreCleaner;
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
@@ -55,6 +56,9 @@ public class DestroyAction extends RMDispositionActionExecuterAbstractBase
|
||||
/** Capability service */
|
||||
private CapabilityService capabilityService;
|
||||
|
||||
/** Inplace record service */
|
||||
private InplaceRecordService inplaceRecordService;
|
||||
|
||||
/** Indicates if ghosting is enabled or not */
|
||||
private boolean ghostingEnabled = true;
|
||||
|
||||
@@ -74,6 +78,14 @@ public class DestroyAction extends RMDispositionActionExecuterAbstractBase
|
||||
this.capabilityService = capabilityService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inplaceRecordService inplace record service
|
||||
*/
|
||||
public void setInplaceRecordService(InplaceRecordService inplaceRecordService)
|
||||
{
|
||||
this.inplaceRecordService = inplaceRecordService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ghostingEnabled true if ghosting is enabled, false otherwise
|
||||
*/
|
||||
@@ -152,6 +164,9 @@ public class DestroyAction extends RMDispositionActionExecuterAbstractBase
|
||||
{
|
||||
// Add the ghosted aspect
|
||||
getNodeService().addAspect(record, ASPECT_GHOSTED, null);
|
||||
|
||||
// Hide from inplace users to give the impression of destruction
|
||||
inplaceRecordService.hideRecord(record);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -500,8 +500,7 @@ public class InplaceRecordPermissionTest extends BaseRMTestCase
|
||||
* And it's metadata is maintained
|
||||
* Then the inplace users will no longer see the record
|
||||
*/
|
||||
// FIXME: See RM-4095
|
||||
public void ztestDestroyedRecordInplacePermissions()
|
||||
public void testDestroyedRecordInplacePermissions()
|
||||
{
|
||||
test()
|
||||
.given()
|
||||
|
@@ -37,7 +37,9 @@ import org.junit.runners.Suite.SuiteClasses;
|
||||
HideInplaceRecordTest.class,
|
||||
MoveInplaceRecordTest.class,
|
||||
ViewRecordTest.class,
|
||||
LinkRecordTest.class
|
||||
LinkRecordTest.class,
|
||||
CreateInplaceRecordTest.class,
|
||||
InplaceRecordPermissionTest.class
|
||||
})
|
||||
public class RecordTestSuite
|
||||
{
|
||||
|
Reference in New Issue
Block a user