mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.error.AlfrescoRuntimeException;
|
import org.alfresco.error.AlfrescoRuntimeException;
|
||||||
|
import org.alfresco.model.ContentModel;
|
||||||
import org.alfresco.service.namespace.NamespaceService;
|
import org.alfresco.service.namespace.NamespaceService;
|
||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
@@ -37,6 +38,14 @@ import org.json.JSONObject;
|
|||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class RecordsManagementSearchParameters
|
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 */
|
/** Default templates */
|
||||||
private static final Map<String, String> DEFAULT_TEMPLATES = new HashMap<String, String>()
|
private static final Map<String, String> DEFAULT_TEMPLATES = new HashMap<String, String>()
|
||||||
{
|
{
|
||||||
@@ -78,7 +87,7 @@ public class RecordsManagementSearchParameters
|
|||||||
private boolean includeCutoff = false;
|
private boolean includeCutoff = false;
|
||||||
|
|
||||||
private List<QName> includedContainerTypes = DEFAULT_INCLUDED_CONTAINER_TYPES;
|
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 Map<String, String> templates = DEFAULT_TEMPLATES;
|
||||||
|
|
||||||
private static final String JSON_MAXITEMS = "maxitems";
|
private static final String JSON_MAXITEMS = "maxitems";
|
||||||
|
Reference in New Issue
Block a user