mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed compilation issue following merge
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ package org.alfresco.web.bean;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.service.cmr.repository.Path;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.web.app.Application;
|
||||
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
@@ -36,6 +37,8 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
|
||||
private static final String MSG_DETAILS_OF = "details_of";
|
||||
private static final String MSG_ORIGINAL_LOCATION = "original_location";
|
||||
private static final String MSG_CLOSE = "close";
|
||||
|
||||
protected PermissionService permissionService;
|
||||
|
||||
@Override
|
||||
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
||||
@@ -56,7 +59,7 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
|
||||
Path path = (Path) property.getItem().getProperties().get("locationPath");
|
||||
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_ORIGINAL_LOCATION) + ": " +
|
||||
path.toDisplayPath(nodeService);
|
||||
path.toDisplayPath(nodeService, permissionService);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -69,4 +72,9 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
|
||||
{
|
||||
return property.getItem();
|
||||
}
|
||||
|
||||
public void setPermissionService(PermissionService permissionService)
|
||||
{
|
||||
this.permissionService = permissionService;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user