package org.alfresco.bluexml;
import org.alfresco.web.bean.BrowseBean;
import org.alfresco.web.bean.repository.Node;
import org.alfresco.web.bean.repository.NodePropertyResolver;
import org.alfresco.web.ui.common.Utils;
public class CustomBrowseBean extends BrowseBean {
public CustomBrowseBean() {
super();
resolverFileType16 = new NodePropertyResolver() {
public Object get(Node node) {
String deft = Utils.getFileTypeImage(node.getName(), true);
if (node.getName().substring(0, 3).equalsIgnoreCase("sem")) {
deft.replace("_default", node.getName().replace(":", "_"));
}
return deft;
}
};
resolverFileType32 = new NodePropertyResolver() {
public Object get(Node node) {
String deft = Utils.getFileTypeImage(node.getName(), false);
if (node.getName().substring(0, 3).equalsIgnoreCase("sem")) {
deft.replace("_default", node.getName().replace(":", "_"));
}
return deft;
}
};
}
}
Avez vous une idée ?Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.