ACS-3198: Folder rules v1 REST API - List rules for node (#1193)

ACS-3198: Rules v1 REST API - List rules for a folder node
This commit is contained in:
krdabrowski
2022-07-07 19:40:47 +02:00
committed by GitHub
parent 9e7b8fcdce
commit 101eb1843d
20 changed files with 1226 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2011 Alfresco Software Limited.
* Copyright (C) 2005-2022 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.query;
import java.util.Collections;
@@ -55,7 +56,7 @@ public class ListBackedPagingResults<R> implements PagingResults<R>
}
this.results = Collections.unmodifiableList(
list.subList(start, end));
list.subList(Math.min(start, end), end));
this.size = list.size();
this.hasMore = ! (list.size() == end);
}