Fixed a couple of issues in converted trashcan item details dialog

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6937 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-10-09 10:59:55 +00:00
parent ac21fd6a18
commit 78b6dfe21e
4 changed files with 38 additions and 22 deletions

View File

@@ -26,16 +26,13 @@ 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;
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;
@@ -52,15 +49,6 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_DETAILS_OF) + " '" +
property.getItem().getName() + "'";
}
@Override
public String getContainerSubTitle()
{
Path path = (Path) property.getItem().getProperties().get("locationPath");
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_ORIGINAL_LOCATION) + ": " +
path.toDisplayPath(nodeService, permissionService);
}
@Override
public String getCancelButtonLabel()
@@ -68,6 +56,12 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CLOSE);
}
@Override
public Object getActionsContext()
{
return getItem();
}
public Node getItem()
{
return property.getItem();