mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM-5115 Changes following review
This commit is contained in:
@@ -29,7 +29,6 @@ package org.alfresco.rm.rest.api.impl;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -252,16 +251,6 @@ public class SearchTypesFactory
|
||||
return searchTypeQNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to build association types for categories endpoint
|
||||
* @return
|
||||
*/
|
||||
public Set<QName> buildAssocTypesCategoriesEndpoint()
|
||||
{
|
||||
Set<QName> assocTypeQNames = Collections.singleton(ContentModel.ASSOC_CONTAINS);
|
||||
return assocTypeQNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to build search types for transfer containers endpoint
|
||||
* @return
|
||||
|
@@ -30,15 +30,10 @@ package org.alfresco.rm.rest.api.recordcategories;
|
||||
import static org.alfresco.module.org_alfresco_module_rm.util.RMParameterCheck.checkNotBlank;
|
||||
import static org.alfresco.util.ParameterCheck.mandatory;
|
||||
|
||||
import java.util.AbstractList;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
import java.util.Collections;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel;
|
||||
import org.alfresco.query.PagingResults;
|
||||
import org.alfresco.repo.node.getchildren.FilterProp;
|
||||
@@ -114,7 +109,7 @@ public class RecordCategoryChildrenRelation implements RelationshipResourceActio
|
||||
|
||||
// list record categories and record folders
|
||||
Set<QName> searchTypeQNames = searchTypesFactory.buildSearchTypesCategoriesEndpoint(parameters, LIST_RECORD_CATEGORY_CHILDREN_EQUALS_QUERY_PROPERTIES);
|
||||
Set<QName> assocTypeQNames = searchTypesFactory.buildAssocTypesCategoriesEndpoint();
|
||||
Set<QName> assocTypeQNames = Collections.singleton(ContentModel.ASSOC_CONTAINS);
|
||||
List<FilterProp> filterProps = apiUtils.getListChildrenFilterProps(parameters, LIST_RECORD_CATEGORY_CHILDREN_EQUALS_QUERY_PROPERTIES);
|
||||
|
||||
final PagingResults<FileInfo> pagingResults = fileFolderService.list(parentNodeRef,
|
||||
|
Reference in New Issue
Block a user