RM-2130 (Check classification after method execution, filtering results where appropriate)

+review RM-94

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/ENFORCE@106552 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-06-19 12:39:04 +00:00
parent d8f71fba18
commit e79b4a9d8f
3 changed files with 89 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ import org.alfresco.util.ParameterCheck;
* @since 3.0
*/
public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements SecurityClearanceService
{
{
/** The clearance levels currently configured in this server. */
private ClearanceLevelManager clearanceManager;
/** The object containing the {@link ClassificationLevel}s in the system. */
@@ -88,7 +88,7 @@ public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements Sec
*/
private SecurityClearance getUserSecurityClearance(final String userName)
{
final NodeRef personNode = personService.getPerson(userName, false);
final NodeRef personNode = personService.getPerson(userName, true);
final PersonInfo personInfo = personService.getPerson(personNode);
ClearanceLevel clearanceLevel = ClearanceLevelManager.NO_CLEARANCE;

View File

@@ -68,7 +68,7 @@ public class PostMethodInvocationProcessorRegistry
BasePostMethodInvocationProcessor result = null;
for (Map.Entry<Class<?>, BasePostMethodInvocationProcessor> processor : processors.entrySet())
for (Map.Entry<Class<?>, BasePostMethodInvocationProcessor> processor : getProcessors().entrySet())
{
if (processor.getKey().isAssignableFrom(clazz))
{