private CannedQueryResults<NodeRef> listImpl(NodeRef contextNodeRef, Set<QName> searchTypeQNames) { return listImpl(contextNodeRef, null, searchTypeQNames, null, null, new PagingRequest(defaultListMaxResults, null)); }
private CannedQueryResults<NodeRef> listImpl(NodeRef contextNodeRef, Set<QName> searchTypeQNames) { return listImpl(contextNodeRef, null, searchTypeQNames, null, null, new PagingRequest(defaultListMaxResults, null)); }
/** * {@inheritDoc} */ // see getAuthorities (paged) public Set<String> getAllAuthorities(AuthorityType type) { List<String> auths = getAuthorities(type, null, null, false, false, new PagingRequest(0, Integer.MAX_VALUE, null)).getPage(); Set<String> authorities = new HashSet<String>(auths.size()); authorities.addAll(auths); return authorities; }
/** * {@inheritDoc} */ // see getAuthorities (paged) public Set<String> getAllAuthorities(AuthorityType type) { List<String> auths = getAuthorities(type, null, null, false, false, new PagingRequest(0, Integer.MAX_VALUE, null)).getPage(); Set<String> authorities = new HashSet<String>(auths.size()); authorities.addAll(auths); return authorities; }
public Set<String> getAllAuthoritiesInZone(String zoneName, AuthorityType type) { NodeRef zoneRef = getZone(zoneName); if (zoneRef == null) { return Collections.emptySet(); } return new HashSet<String>(getAuthoritiesImpl(type, zoneRef, null, null, false, new PagingRequest(0, Integer.MAX_VALUE, null), new PagingResultsString()).getPage()); }
public Set<String> getAllAuthoritiesInZone(String zoneName, AuthorityType type) { NodeRef zoneRef = getZone(zoneName); if (zoneRef == null) { return Collections.emptySet(); } return new HashSet<String>(getAuthoritiesImpl(type, zoneRef, null, null, false, new PagingRequest(0, Integer.MAX_VALUE, null), new PagingResultsString()).getPage()); }
/** * @param remoteSystemId String */ @Override public List<OAuth1CredentialsInfo> listSharedOAuth1Credentials(String remoteSystemId) throws NoSuchSystemException { PagingRequest paging = new PagingRequest(CannedQueryPageDetails.DEFAULT_PAGE_SIZE); @SuppressWarnings("unchecked") PagingResults<OAuth1CredentialsInfo> pagingResults = (PagingResults<OAuth1CredentialsInfo>) remoteCredentialsService .listSharedCredentials(remoteSystemId, RemoteCredentialsModel.TYPE_OAUTH1_CREDENTIALS, paging); return pagingResults.getPage(); }
public PagingFollowingResults execute() throws Throwable { return subscriptionsDAO.selectFollowers(userId, new PagingRequest(100000, null)); } };
public PagingSubscriptionResults execute() throws Throwable { return subscriptionsDAO.selectSubscriptions(userId, SubscriptionItemTypeEnum.USER, new PagingRequest( 100000, null)); } };
public PagingFollowingResults execute() throws Throwable { return subscriptionsDAO.selectFollowing(userId, new PagingRequest(100000, null)); } };
public PagingRequest getPagingRequest() { PagingRequest pr = new PagingRequest(this.pagingRequest.getSkipCount(), this.pagingRequest.getMaxItems(), this.pagingRequest.getQueryExecutionId()); pr.setRequestTotalCountMax(this.pagingRequest.getRequestTotalCountMax()); return pr; }
public PagingRequest getPagingRequest() { PagingRequest pr = new PagingRequest(this.pagingRequest.getSkipCount(), this.pagingRequest.getMaxItems(), this.pagingRequest.getQueryExecutionId()); pr.setRequestTotalCountMax(this.pagingRequest.getRequestTotalCountMax()); return pr; }
protected List<FileInfo> getFolders(NodeRef parent, String pattern) { PagingResults<FileInfo> page = fileFolderService.list(parent, false, true, pattern, null, null, new PagingRequest(CannedQueryPageDetails.DEFAULT_PAGE_SIZE)); List<FileInfo> folders = page.getPage(); return folders; }
protected List<FileInfo> getFiles(NodeRef parent, String pattern) { PagingResults<FileInfo> page = fileFolderService.list(parent, true, false, pattern, null, null, new PagingRequest(CannedQueryPageDetails.DEFAULT_PAGE_SIZE)); List<FileInfo> files = page.getPage(); return files; }
/** * Returns the list of authorities according the authority type and authority short name * @param type authority type * @param shortName authority short name * @return List of String authorities */ private List<String> getAuthorityByTypeAndShortName(AuthorityType type, String shortName) { return pubAuthorityService.getAuthorities(type, null, shortName, false, true, new PagingRequest(0, Integer.MAX_VALUE, null)).getPage(); }
private List<String> getAllAuthorities(AuthorityType type) { return pubAuthorityService.getAuthorities(type, null, null, false, true, new PagingRequest(0, Integer.MAX_VALUE, null)).getPage(); } }
public Void execute() throws Throwable { PagingResults<SiteInfo> sites = SITE_SERVICE.listSites(null, null, new PagingRequest(0, 1024)); Map<String, SiteInfo> sitesByName = new HashMap<String, SiteInfo>(); for (SiteInfo site : sites.getPage()) { sitesByName.put(site.getShortName(), site); } assertNotNull("st:site missing.", sitesByName.get(TEST_SITE_NAME)); assertNotNull("subtype of st:site missing.", sitesByName.get(TEST_SUB_SITE_NAME)); return null; } });
public ArchivedNodesCannedQueryBuilder(Builder builder) { ParameterCheck.mandatory("storeRef", (this.archiveRootNodeRef = builder.archiveRootNodeRef)); ParameterCheck.mandatory("pagingRequest", builder.pagingRequest); // Defensive copy PagingRequest pr = new PagingRequest(builder.pagingRequest.getSkipCount(), builder.pagingRequest.getMaxItems(), builder.pagingRequest.getQueryExecutionId()); pr.setRequestTotalCountMax(builder.pagingRequest.getRequestTotalCountMax()); this.pagingRequest = pr; this.filter = builder.filter; this.sortOrderAscending = builder.sortOrderAscending; }
public ArchivedNodesCannedQueryBuilder(Builder builder) { ParameterCheck.mandatory("storeRef", (this.archiveRootNodeRef = builder.archiveRootNodeRef)); ParameterCheck.mandatory("pagingRequest", builder.pagingRequest); // Defensive copy PagingRequest pr = new PagingRequest(builder.pagingRequest.getSkipCount(), builder.pagingRequest.getMaxItems(), builder.pagingRequest.getQueryExecutionId()); pr.setRequestTotalCountMax(builder.pagingRequest.getRequestTotalCountMax()); this.pagingRequest = pr; this.filter = builder.filter; this.sortOrderAscending = builder.sortOrderAscending; }
public void testALF12758() { // test that the FileFolderService returns only cm:contains children PagingRequest pagingRequest = new PagingRequest(0, Integer.MAX_VALUE); PagingResults<FileInfo> pagingResults = fileFolderService.list(workingRootNodeRef1, true, true, null, null, null, pagingRequest); assertNotNull(pagingResults); assertNotNull(pagingResults.getPage()); assertEquals(1, pagingResults.getPage().size()); }