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:
Gavin Cornwell
2007-10-02 20:18:36 +00:00
parent d90fd683b3
commit d2bf9cae06
2 changed files with 13 additions and 1 deletions

View File

@@ -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;
}
}