Creating an RM site was not possible

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/DODRECERT@50953 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-06-12 12:21:53 +00:00
parent a33a8da404
commit 63b90e1558

View File

@@ -25,6 +25,7 @@ import java.util.List;
import java.util.Map;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.model.ContentModel;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.json.JSONArray;
@@ -37,6 +38,14 @@ import org.json.JSONObject;
@SuppressWarnings("serial")
public class RecordsManagementSearchParameters
{
/** Default sort order */
private static final List<SortItem> DEFAULT_SORT_ORDER = new ArrayList<SortItem>()
{
{
add(new SortItem(ContentModel.PROP_NAME, Boolean.TRUE));
}
};
/** Default templates */
private static final Map<String, String> DEFAULT_TEMPLATES = new HashMap<String, String>()
{
@@ -78,7 +87,7 @@ public class RecordsManagementSearchParameters
private boolean includeCutoff = false;
private List<QName> includedContainerTypes = DEFAULT_INCLUDED_CONTAINER_TYPES;
private List<SortItem> sortOrder;
private List<SortItem> sortOrder = DEFAULT_SORT_ORDER;
private Map<String, String> templates = DEFAULT_TEMPLATES;
private static final String JSON_MAXITEMS = "maxitems";