mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -705,6 +705,28 @@
|
|||||||
<param name="groupName">#{actionContext.groupName}</param>
|
<param name="groupName">#{actionContext.groupName}</param>
|
||||||
</params>
|
</params>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
|
<!-- recover item action -->
|
||||||
|
<action id="recover_item">
|
||||||
|
<label-id>recover</label-id>
|
||||||
|
<image>/images/icons/recover.gif</image>
|
||||||
|
<action>dialog:recoverItem</action>
|
||||||
|
<action-listener>#{DialogManager.setupParameters}</action-listener>
|
||||||
|
<params>
|
||||||
|
<param name="id">#{actionContext.id}</param>
|
||||||
|
</params>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<!-- delete item action -->
|
||||||
|
<action id="delete_item">
|
||||||
|
<label-id>delete</label-id>
|
||||||
|
<image>/images/icons/delete.gif</image>
|
||||||
|
<action>dialog:deleteItem</action>
|
||||||
|
<action-listener>#{DialogManager.setupParameters}</action-listener>
|
||||||
|
<params>
|
||||||
|
<param name="id">#{actionContext.id}</param>
|
||||||
|
</params>
|
||||||
|
</action>
|
||||||
|
|
||||||
<!-- the 'action-group' elements define unique blocks of actions that reference the actions
|
<!-- the 'action-group' elements define unique blocks of actions that reference the actions
|
||||||
as defined above and can override or supply display elements for the group of actions -->
|
as defined above and can override or supply display elements for the group of actions -->
|
||||||
@@ -900,6 +922,12 @@
|
|||||||
<action idref="delete_group" />
|
<action idref="delete_group" />
|
||||||
</action-group>
|
</action-group>
|
||||||
|
|
||||||
|
<action-group id="deleteditem_actions">
|
||||||
|
<style-class>inlineAction</style-class>
|
||||||
|
<action idref="recover_item" />
|
||||||
|
<action idref="delete_item" />
|
||||||
|
</action-group>
|
||||||
|
|
||||||
</actions>
|
</actions>
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
|
@@ -414,7 +414,7 @@
|
|||||||
|
|
||||||
<dialog name="itemDetails" page="/jsp/trashcan/item-details.jsp" managed-bean="TrashcanItemDetailsDialog"
|
<dialog name="itemDetails" page="/jsp/trashcan/item-details.jsp" managed-bean="TrashcanItemDetailsDialog"
|
||||||
icon="/images/icons/details_large.gif" description-id="deleteditem_details_description"
|
icon="/images/icons/details_large.gif" description-id="deleteditem_details_description"
|
||||||
show-ok-button="false" />
|
show-ok-button="false" actions-config-id="deleteditem_actions" />
|
||||||
|
|
||||||
<dialog name="recoverItem" page="/jsp/trashcan/recover-item.jsp" managed-bean="TrashcanRecoverItemDialog"
|
<dialog name="recoverItem" page="/jsp/trashcan/recover-item.jsp" managed-bean="TrashcanRecoverItemDialog"
|
||||||
icon="/images/icons/recover_large.gif" title-id="recover_item"
|
icon="/images/icons/recover_large.gif" title-id="recover_item"
|
||||||
|
@@ -26,16 +26,13 @@ package org.alfresco.web.bean;
|
|||||||
|
|
||||||
import javax.faces.context.FacesContext;
|
import javax.faces.context.FacesContext;
|
||||||
|
|
||||||
import org.alfresco.service.cmr.repository.Path;
|
|
||||||
import org.alfresco.service.cmr.security.PermissionService;
|
import org.alfresco.service.cmr.security.PermissionService;
|
||||||
import org.alfresco.web.app.Application;
|
import org.alfresco.web.app.Application;
|
||||||
|
|
||||||
import org.alfresco.web.bean.repository.Node;
|
import org.alfresco.web.bean.repository.Node;
|
||||||
|
|
||||||
public class TrashcanItemDetailsDialog extends TrashcanDialog
|
public class TrashcanItemDetailsDialog extends TrashcanDialog
|
||||||
{
|
{
|
||||||
private static final String MSG_DETAILS_OF = "details_of";
|
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";
|
private static final String MSG_CLOSE = "close";
|
||||||
|
|
||||||
protected PermissionService permissionService;
|
protected PermissionService permissionService;
|
||||||
@@ -52,15 +49,6 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
|
|||||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_DETAILS_OF) + " '" +
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_DETAILS_OF) + " '" +
|
||||||
property.getItem().getName() + "'";
|
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
|
@Override
|
||||||
public String getCancelButtonLabel()
|
public String getCancelButtonLabel()
|
||||||
@@ -68,6 +56,12 @@ public class TrashcanItemDetailsDialog extends TrashcanDialog
|
|||||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CLOSE);
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CLOSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object getActionsContext()
|
||||||
|
{
|
||||||
|
return getItem();
|
||||||
|
}
|
||||||
|
|
||||||
public Node getItem()
|
public Node getItem()
|
||||||
{
|
{
|
||||||
return property.getItem();
|
return property.getItem();
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||||
|
|
||||||
|
<h:outputText value="#{msg.original_location}: " styleClass="mainSubTitle" />
|
||||||
|
<r:nodePath value="#{TrashcanDialogProperty.item.properties.locationPath}" breadcrumb="true" actionListener="#{BrowseBean.clickSpacePath}" showLeaf="true" />
|
||||||
|
<f:verbatim><div style="padding:4px"></div></f:verbatim>
|
||||||
|
|
||||||
<a:panel label="#{msg.view_links}" id="link-panel" progressive="true"
|
<a:panel label="#{msg.view_links}" id="link-panel" progressive="true"
|
||||||
border="white" bgcolor="white" titleBorder="lbgrey" expandedTitleBorder="dotted" titleBgcolor="white">
|
border="white" bgcolor="white" titleBorder="lbgrey" expandedTitleBorder="dotted" titleBgcolor="white">
|
||||||
@@ -87,15 +90,6 @@ columns="1" mode="view" labelStyleClass="propertiesLabel" externalConfig="true"
|
|||||||
|
|
||||||
</f:verbatim>
|
</f:verbatim>
|
||||||
</a:panel>
|
</a:panel>
|
||||||
<f:verbatim><div style="padding:4px"></div></f:verbatim>
|
|
||||||
<a:panel label="#{msg.actions}" id="actions-panel" border="white" bgcolor="white" titleBorder="lbgrey" expandedTitleBorder="dotted" titleBgcolor="white" style="text-align:center;white-space:nowrap" progressive="true">
|
|
||||||
<a:actionLink value="#{msg.recover}" image="/images/icons/recover.gif" action="dialog:recoverItem" padding="3">
|
|
||||||
<f:param name="id" value="#{TrashcanDialogProperty.item.id}" />
|
|
||||||
</a:actionLink>
|
|
||||||
<a:actionLink value="#{msg.delete}" image="/images/icons/delete.gif" action="dialog:deleteItem" padding="3">
|
|
||||||
<f:param name="id" value="#{TrashcanDialogProperty.item.id}" />
|
|
||||||
</a:actionLink>
|
|
||||||
</a:panel>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user