mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-22 15:12:38 +00:00
Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127088 jvonka: FileFolderService / GetChildrenCannedQuery - optional support for filtering by isPrimary child assoc (true/false) - eg. as required by new V1 REST API - RA-1053 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127588 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2014 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2016 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -24,6 +24,7 @@ import java.util.Set;
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.query.PagingRequest;
|
||||
import org.alfresco.query.PagingResults;
|
||||
import org.alfresco.repo.node.getchildren.FilterProp;
|
||||
import org.alfresco.service.Auditable;
|
||||
import org.alfresco.service.cmr.repository.ContentReader;
|
||||
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||
@@ -441,8 +442,21 @@ public interface FileFolderService
|
||||
*/
|
||||
@Auditable(parameters = {"rootNodeRef"})
|
||||
public PagingResults<FileInfo> list(NodeRef rootNodeRef, Set<QName> searchTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName, Boolean>> sortProps, PagingRequest pagingRequest);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Lists page of immediate child objects of the given context node
|
||||
* with specification of which types to list and optional filtering (exclusion of certain child file/folder subtypes) and sorting
|
||||
* @param rootNodeRef NodeRef
|
||||
* @param searchTypeQNames QNames of types to list
|
||||
* @param ignoreAspectQNames Set<QName>
|
||||
* @param sortProps List<Pair<QName, Boolean>>
|
||||
* @param pagingRequest PagingRequest
|
||||
* @return list of node refs, never null
|
||||
*/
|
||||
@Auditable(parameters = {"rootNodeRef"})
|
||||
public PagingResults<FileInfo> list(NodeRef rootNodeRef, Set<QName> searchTypeQNames, Set<QName> ignoreAspectQNames, List<Pair<QName, Boolean>> sortProps, List<FilterProp> filterProps, PagingRequest pagingRequest);
|
||||
|
||||
|
||||
/**
|
||||
* Helper method to transform a list of {@link NodeRef} to a list of {@link FileInfo}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user