mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge remote-tracking branch 'origin/release/V2.5' into release/V2.5
# Conflicts: # pom.xml # rm-automation/pom.xml # rm-community/pom.xml # rm-community/rm-community-repo/pom.xml # rm-community/rm-community-share/pom.xml # rm-enterprise/pom.xml # rm-enterprise/rm-enterprise-repo/pom.xml # rm-enterprise/rm-enterprise-share/pom.xml
This commit is contained in:
@@ -485,7 +485,6 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
returnedObject.getResultSetMetaData().getLimitedBy(),
|
||||
PermissionEvaluationMode.EAGER,
|
||||
returnedObject.getResultSetMetaData().getSearchParameters()));
|
||||
filteringResultSet.setNumberFound(returnedObject.getNumberFound());
|
||||
return filteringResultSet;
|
||||
}
|
||||
else
|
||||
@@ -499,7 +498,6 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
returnedObject.getResultSetMetaData().getLimitedBy(),
|
||||
PermissionEvaluationMode.EAGER,
|
||||
returnedObject.getResultSetMetaData().getSearchParameters()));
|
||||
filteringResultSet.setNumberFound(returnedObject.getNumberFound());
|
||||
return filteringResultSet;
|
||||
}
|
||||
}
|
||||
|
@@ -35,7 +35,6 @@ import java.util.Map;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.module.org_alfresco_module_rm.RecordsManagementServiceRegistry;
|
||||
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
@@ -52,10 +51,7 @@ public class DispositionScheduleImpl implements DispositionSchedule,
|
||||
private NodeService nodeService;
|
||||
private RecordsManagementServiceRegistry services;
|
||||
private NodeRef dispositionDefinitionNodeRef;
|
||||
/** authentication helper */
|
||||
private AuthenticationUtil authenticationUtil;
|
||||
|
||||
|
||||
|
||||
private List<DispositionActionDefinition> actions;
|
||||
private Map<String, DispositionActionDefinition> actionsById;
|
||||
|
||||
@@ -65,11 +61,6 @@ public class DispositionScheduleImpl implements DispositionSchedule,
|
||||
|
||||
/** Map of disposition definitions by disposition action name */
|
||||
private Map<String, DispositionActionDefinition> actionsByDispositionActionName;
|
||||
|
||||
public void setAuthenticationUtil(AuthenticationUtil authenticationUtil)
|
||||
{
|
||||
this.authenticationUtil = authenticationUtil;
|
||||
}
|
||||
|
||||
public DispositionScheduleImpl(RecordsManagementServiceRegistry services, NodeService nodeService, NodeRef nodeRef)
|
||||
{
|
||||
@@ -109,18 +100,13 @@ public class DispositionScheduleImpl implements DispositionSchedule,
|
||||
*/
|
||||
public boolean isRecordLevelDisposition()
|
||||
{
|
||||
return authenticationUtil.runAsSystem(new AuthenticationUtil.RunAsWork<Boolean>()
|
||||
boolean result = false;
|
||||
Boolean value = (Boolean)this.nodeService.getProperty(this.dispositionDefinitionNodeRef, PROP_RECORD_LEVEL_DISPOSITION);
|
||||
if (value != null)
|
||||
{
|
||||
public Boolean doWork() throws Exception
|
||||
{
|
||||
Boolean value = (Boolean)nodeService.getProperty(dispositionDefinitionNodeRef, PROP_RECORD_LEVEL_DISPOSITION);
|
||||
if (value != null)
|
||||
{
|
||||
return value.booleanValue();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
});
|
||||
result = value.booleanValue();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user