01-24-2014 10:14 AM
import java.util.ArrayList;
import java.util.List;
import org.alfresco.model.ContentModel;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
…
List<Pair<QName, Boolean>> sortProps = new ArrayList<Pair<QName, Boolean>>();
sortProps.add(new Pair<QName, Boolean>(ContentModel.PROP_CREATOR, true));
sortProps.add(new Pair<QName, Boolean>(ContentModel.PROP_NAME, true));
List<Pair<QName, Boolean>> sortProps = new ArrayList<Pair<QName, Boolean>>();
sortProps.add(new Pair<QName, Boolean>(ContentModel.FILE_FOLDER_TYPE, true));
sortProps.add(new Pair<QName, Boolean>(ContentModel.PROP_NAME, true));
01-24-2014 03:07 PM
public static final QName SORT_QNAME_NODE_TYPE = QName.createQName("", "TYPE");
public static final QName SORT_QNAME_NODE_IS_FOLDER = QName.createQName("", "IS_FOLDER");
01-27-2014 12:57 PM
SORT_QNAME_NODE_TYPE
was exactly what I was looking for. It worked splendidly!
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.