mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Daily merge.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import org.dom4j.Element;
|
||||
public class AdvancedSearchElementReader implements ConfigElementReader
|
||||
{
|
||||
public static final String ELEMENT_CONTENTTYPES = "content-types";
|
||||
public static final String ELEMENT_FOLDERTYPES = "folder-types";
|
||||
public static final String ELEMENT_TYPE = "type";
|
||||
public static final String ELEMENT_CUSTOMPROPS = "custom-properties";
|
||||
public static final String ELEMENT_METADATA = "meta-data";
|
||||
@@ -81,6 +82,24 @@ public class AdvancedSearchElementReader implements ConfigElementReader
|
||||
configElement.setContentTypes(types);
|
||||
}
|
||||
|
||||
// get the list of folder types
|
||||
Element folderTypes = element.element(ELEMENT_FOLDERTYPES);
|
||||
if (folderTypes != null)
|
||||
{
|
||||
Iterator<Element> typesItr = folderTypes.elementIterator(ELEMENT_TYPE);
|
||||
List<String> types = new ArrayList<String>(5);
|
||||
while (typesItr.hasNext())
|
||||
{
|
||||
Element folderType = typesItr.next();
|
||||
String type = folderType.attributeValue(ATTRIBUTE_NAME);
|
||||
if (type != null)
|
||||
{
|
||||
types.add(type);
|
||||
}
|
||||
}
|
||||
configElement.setFolderTypes(types);
|
||||
}
|
||||
|
||||
// get the list of custom properties to display
|
||||
Element customProps = element.element(ELEMENT_CUSTOMPROPS);
|
||||
if (customProps != null)
|
||||
|
Reference in New Issue
Block a user