mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9157 First cut of a Wiki Pages service which is lucene free
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29536 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
<import resource="classpath:alfresco/rendition-services-context.xml"/>
|
<import resource="classpath:alfresco/rendition-services-context.xml"/>
|
||||||
<import resource="classpath:alfresco/replication-services-context.xml"/>
|
<import resource="classpath:alfresco/replication-services-context.xml"/>
|
||||||
<import resource="classpath:alfresco/thumbnail-service-context.xml"/>
|
<import resource="classpath:alfresco/thumbnail-service-context.xml"/>
|
||||||
|
<import resource="classpath:alfresco/wiki-services-context.xml"/>
|
||||||
<import resource="classpath:alfresco/preference-service-context.xml"/>
|
<import resource="classpath:alfresco/preference-service-context.xml"/>
|
||||||
<import resource="classpath:alfresco/swf-transform-context.xml"/>
|
<import resource="classpath:alfresco/swf-transform-context.xml"/>
|
||||||
<import resource="classpath:alfresco/form-services-context.xml"/>
|
<import resource="classpath:alfresco/form-services-context.xml"/>
|
||||||
|
@@ -1030,6 +1030,33 @@
|
|||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ==================== -->
|
||||||
|
<!-- The Wiki Services -->
|
||||||
|
<!-- ==================== -->
|
||||||
|
|
||||||
|
<!-- The wiki page service itself does not require any security restrictions, -->
|
||||||
|
<!-- they are imposed by the node and site services it uses to do its work. -->
|
||||||
|
<bean id="WikiPageService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
|
<!-- The canned queries that the wiki services use do however need to check -->
|
||||||
|
<bean id="WikiPageService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
|
<property name="accessDecisionManager"><ref local="accessDecisionManager"/></property>
|
||||||
|
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|
||||||
|
<property name="objectDefinitionSource">
|
||||||
|
<value>
|
||||||
|
org.alfresco.service.cmr.wiki.WikiPageService.listWikiPages=ACL_ALLOW,AFTER_ACL_NODE.sys:base.ReadProperties
|
||||||
|
</value>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="WikiPageService_security_listWikiPages" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
||||||
|
<property name="methodSecurityInterceptor" ref="LinksService_CannedQuery_security" />
|
||||||
|
<property name="service" value="org.alfresco.service.cmr.wiki.WikiPageService" />
|
||||||
|
<property name="methodName" value="listWikiPages" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
<!-- ======================== -->
|
<!-- ======================== -->
|
||||||
<!-- Repository Admin Service -->
|
<!-- Repository Admin Service -->
|
||||||
<!-- ======================== -->
|
<!-- ======================== -->
|
||||||
|
63
config/alfresco/wiki-services-context.xml
Normal file
63
config/alfresco/wiki-services-context.xml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<!-- Wiki page Service -->
|
||||||
|
<bean id="WikiPageService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
|
<property name="proxyInterfaces">
|
||||||
|
<value>org.alfresco.service.cmr.wiki.WikiPageService</value>
|
||||||
|
</property>
|
||||||
|
<property name="target">
|
||||||
|
<ref bean="wikiPageService" />
|
||||||
|
</property>
|
||||||
|
<property name="interceptorNames">
|
||||||
|
<list>
|
||||||
|
<idref local="WikiPageService_transaction" />
|
||||||
|
<idref bean="AuditMethodInterceptor" />
|
||||||
|
<idref bean="exceptionTranslator" />
|
||||||
|
<idref bean="WikiPageService_security" />
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- Wiki Page service transaction bean -->
|
||||||
|
<bean id="WikiPageService_transaction"
|
||||||
|
class="org.springframework.transaction.interceptor.TransactionInterceptor">
|
||||||
|
<property name="transactionManager">
|
||||||
|
<ref bean="transactionManager" />
|
||||||
|
</property>
|
||||||
|
<property name="transactionAttributes">
|
||||||
|
<props>
|
||||||
|
<prop key="*">${server.transaction.mode.default}</prop>
|
||||||
|
</props>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- List of Wiki Canned queries -->
|
||||||
|
<bean id="wikiCannedQueryRegistry" class="org.alfresco.util.registry.NamedObjectRegistry">
|
||||||
|
<property name="storageType" value="org.alfresco.query.CannedQueryFactory"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- The regular GetChildren Auditable Canned Query Factory -->
|
||||||
|
<bean name="wikiGetChildrenCannedQueryFactory" class="org.alfresco.repo.node.getchildren.GetChildrenAuditableCannedQueryFactory">
|
||||||
|
<property name="registry" ref="wikiCannedQueryRegistry"/>
|
||||||
|
<property name="tenantService" ref="tenantService"/>
|
||||||
|
<property name="nodeDAO" ref="nodeDAO"/>
|
||||||
|
<property name="qnameDAO" ref="qnameDAO"/>
|
||||||
|
<property name="cannedQueryDAO" ref="cannedQueryDAO"/>
|
||||||
|
<property name="methodSecurity" ref="WikiPageService_security_listWikiPages"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<!-- Wiki Page Service base bean -->
|
||||||
|
<bean id="wikiPageService" class="org.alfresco.repo.wiki.WikiPageServiceImpl">
|
||||||
|
<property name="nodeService" ref="NodeService"/>
|
||||||
|
<property name="siteService" ref="SiteService"/>
|
||||||
|
<property name="contentService" ref="ContentService"/>
|
||||||
|
<property name="taggingService" ref="TaggingService"/>
|
||||||
|
<property name="fileFolderService" ref="FileFolderService"/>
|
||||||
|
<property name="transactionService" ref="transactionService" />
|
||||||
|
<property name="cannedQueryRegistry" ref="wikiCannedQueryRegistry" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
339
source/java/org/alfresco/repo/wiki/WikiPageServiceImpl.java
Normal file
339
source/java/org/alfresco/repo/wiki/WikiPageServiceImpl.java
Normal file
@@ -0,0 +1,339 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2005-2011 Alfresco Software Limited.
|
||||||
|
*
|
||||||
|
* This file is part of Alfresco
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* 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.repo.wiki;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.alfresco.error.AlfrescoRuntimeException;
|
||||||
|
import org.alfresco.model.ContentModel;
|
||||||
|
import org.alfresco.query.CannedQueryFactory;
|
||||||
|
import org.alfresco.query.CannedQueryResults;
|
||||||
|
import org.alfresco.query.EmptyPagingResults;
|
||||||
|
import org.alfresco.query.PagingRequest;
|
||||||
|
import org.alfresco.query.PagingResults;
|
||||||
|
import org.alfresco.repo.node.getchildren.GetChildrenAuditableCannedQuery;
|
||||||
|
import org.alfresco.repo.node.getchildren.GetChildrenAuditableCannedQueryFactory;
|
||||||
|
import org.alfresco.repo.query.NodeBackedEntity;
|
||||||
|
import org.alfresco.repo.site.SiteServiceImpl;
|
||||||
|
import org.alfresco.service.cmr.model.FileFolderService;
|
||||||
|
import org.alfresco.service.cmr.model.FileNotFoundException;
|
||||||
|
import org.alfresco.service.cmr.repository.ContentReader;
|
||||||
|
import org.alfresco.service.cmr.repository.ContentService;
|
||||||
|
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
|
import org.alfresco.service.cmr.site.SiteService;
|
||||||
|
import org.alfresco.service.cmr.tagging.TaggingService;
|
||||||
|
import org.alfresco.service.cmr.wiki.WikiPageInfo;
|
||||||
|
import org.alfresco.service.cmr.wiki.WikiPageService;
|
||||||
|
import org.alfresco.service.namespace.QName;
|
||||||
|
import org.alfresco.service.transaction.TransactionService;
|
||||||
|
import org.alfresco.util.Pair;
|
||||||
|
import org.alfresco.util.registry.NamedObjectRegistry;
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Nick Burch (based on existing webscript controllers in the REST API)
|
||||||
|
* @since 4.0
|
||||||
|
*/
|
||||||
|
public class WikiPageServiceImpl implements WikiPageService
|
||||||
|
{
|
||||||
|
public static final String WIKI_COMPONENT = "wiki";
|
||||||
|
|
||||||
|
protected static final String CANNED_QUERY_GET_CHILDREN = "linksGetChildrenCannedQueryFactory";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The logger
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
private static Log logger = LogFactory.getLog(WikiPageServiceImpl.class);
|
||||||
|
|
||||||
|
private NodeService nodeService;
|
||||||
|
private SiteService siteService;
|
||||||
|
private ContentService contentService;
|
||||||
|
private TaggingService taggingService;
|
||||||
|
private FileFolderService fileFolderService;
|
||||||
|
private TransactionService transactionService;
|
||||||
|
private NamedObjectRegistry<CannedQueryFactory<? extends Object>> cannedQueryRegistry;
|
||||||
|
|
||||||
|
public void setNodeService(NodeService nodeService)
|
||||||
|
{
|
||||||
|
this.nodeService = nodeService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSiteService(SiteService siteService)
|
||||||
|
{
|
||||||
|
this.siteService = siteService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContentService(ContentService contentService)
|
||||||
|
{
|
||||||
|
this.contentService = contentService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaggingService(TaggingService taggingService)
|
||||||
|
{
|
||||||
|
this.taggingService = taggingService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFileFolderService(FileFolderService fileFolderService)
|
||||||
|
{
|
||||||
|
this.fileFolderService = fileFolderService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransactionService(TransactionService transactionService)
|
||||||
|
{
|
||||||
|
this.transactionService = transactionService;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the registry of {@link CannedQueryFactory canned queries}
|
||||||
|
*/
|
||||||
|
public void setCannedQueryRegistry(NamedObjectRegistry<CannedQueryFactory<? extends Object>> cannedQueryRegistry)
|
||||||
|
{
|
||||||
|
this.cannedQueryRegistry = cannedQueryRegistry;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches the Wiki Container on a site, creating as required if requested.
|
||||||
|
*/
|
||||||
|
protected NodeRef getSiteWikiContainer(final String siteShortName, boolean create)
|
||||||
|
{
|
||||||
|
return SiteServiceImpl.getSiteContainer(
|
||||||
|
siteShortName, WIKI_COMPONENT, create,
|
||||||
|
siteService, transactionService, taggingService);
|
||||||
|
}
|
||||||
|
|
||||||
|
private WikiPageInfo buildPage(NodeRef nodeRef, NodeRef container, String name)
|
||||||
|
{
|
||||||
|
WikiPageInfoImpl page = new WikiPageInfoImpl(nodeRef, container, name);
|
||||||
|
|
||||||
|
// Grab all the properties, we need the bulk of them anyway
|
||||||
|
Map<QName,Serializable> props = nodeService.getProperties(nodeRef);
|
||||||
|
|
||||||
|
// Start with the auditable properties
|
||||||
|
page.setCreator((String)props.get(ContentModel.PROP_CREATOR));
|
||||||
|
page.setModifier((String)props.get(ContentModel.PROP_MODIFIED));
|
||||||
|
page.setCreatedAt((Date)props.get(ContentModel.PROP_CREATED));
|
||||||
|
page.setModifiedAt((Date)props.get(ContentModel.PROP_MODIFIED));
|
||||||
|
|
||||||
|
// Now the wiki ones
|
||||||
|
ContentReader reader = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
|
||||||
|
page.setContents(reader.getContentString());
|
||||||
|
|
||||||
|
// Finally tags
|
||||||
|
page.setTags(taggingService.getTags(nodeRef));
|
||||||
|
|
||||||
|
// All done
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WikiPageInfo getWikiPage(String siteShortName, String pageName)
|
||||||
|
{
|
||||||
|
NodeRef container = getSiteWikiContainer(siteShortName, false);
|
||||||
|
if(container == null)
|
||||||
|
{
|
||||||
|
// No links
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
NodeRef link = nodeService.getChildByName(container, ContentModel.ASSOC_CONTAINS, pageName);
|
||||||
|
if(link != null)
|
||||||
|
{
|
||||||
|
return buildPage(link, container, pageName);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WikiPageInfo createWikiPage(String siteShortName, String title,
|
||||||
|
String content)
|
||||||
|
{
|
||||||
|
// Grab the location to store in
|
||||||
|
NodeRef container = getSiteWikiContainer(siteShortName, true);
|
||||||
|
|
||||||
|
// Get the properties for the node
|
||||||
|
Map<QName, Serializable> props = new HashMap<QName, Serializable>();
|
||||||
|
props.put(ContentModel.PROP_NAME, title);
|
||||||
|
props.put(ContentModel.PROP_TITLE, title);
|
||||||
|
|
||||||
|
// Build the node
|
||||||
|
NodeRef nodeRef = nodeService.createNode(
|
||||||
|
container,
|
||||||
|
ContentModel.ASSOC_CONTAINS,
|
||||||
|
QName.createQName(title),
|
||||||
|
ContentModel.TYPE_CONTENT,
|
||||||
|
props
|
||||||
|
).getChildRef();
|
||||||
|
|
||||||
|
// Store the content
|
||||||
|
ContentWriter writer = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, false);
|
||||||
|
writer.setEncoding("UTF-8");
|
||||||
|
writer.putContent(content);
|
||||||
|
|
||||||
|
// Generate the wrapping object for it
|
||||||
|
// Build it that way, so creator and created date come through
|
||||||
|
return buildPage(nodeRef, container, title);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WikiPageInfo updateWikiPage(WikiPageInfo page)
|
||||||
|
{
|
||||||
|
// Sanity check what we were given
|
||||||
|
if(page.getNodeRef() == null)
|
||||||
|
{
|
||||||
|
throw new IllegalArgumentException("Can't update a page that was never persisted, call create instead");
|
||||||
|
}
|
||||||
|
|
||||||
|
NodeRef nodeRef = page.getNodeRef();
|
||||||
|
|
||||||
|
// Handle the rename case
|
||||||
|
if(! nodeService.getProperty(nodeRef, ContentModel.PROP_NAME).equals(page.getTitle()))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
fileFolderService.rename(nodeRef, page.getTitle());
|
||||||
|
}
|
||||||
|
catch(FileNotFoundException e)
|
||||||
|
{
|
||||||
|
throw new AlfrescoRuntimeException("Invalid node state - wiki page no longer found");
|
||||||
|
}
|
||||||
|
nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, page.getTitle());
|
||||||
|
nodeService.setProperty(nodeRef, ContentModel.PROP_TITLE, page.getTitle());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change the content
|
||||||
|
ContentWriter writer = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true);
|
||||||
|
writer.setEncoding("UTF-8");
|
||||||
|
writer.putContent(page.getContents());
|
||||||
|
|
||||||
|
// Now do the tags
|
||||||
|
taggingService.setTags(nodeRef, page.getTags());
|
||||||
|
|
||||||
|
// All done
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteWikiPage(WikiPageInfo page)
|
||||||
|
{
|
||||||
|
if(page.getNodeRef() == null)
|
||||||
|
{
|
||||||
|
throw new IllegalArgumentException("Can't delete a wiki page that was never persisted");
|
||||||
|
}
|
||||||
|
|
||||||
|
nodeService.deleteNode(page.getNodeRef());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PagingResults<WikiPageInfo> listWikiPages(String siteShortName, PagingRequest paging)
|
||||||
|
{
|
||||||
|
return listWikiPages(siteShortName, null, paging);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PagingResults<WikiPageInfo> listWikiPages(String siteShortName, String user,
|
||||||
|
PagingRequest paging)
|
||||||
|
{
|
||||||
|
return listWikiPages(siteShortName, user, null, null, null, null, paging);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PagingResults<WikiPageInfo> listWikiPagesByCreated(String siteShortName,
|
||||||
|
Date from, Date to, PagingRequest paging)
|
||||||
|
{
|
||||||
|
return listWikiPages(siteShortName, null, from, to, null, null, paging);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PagingResults<WikiPageInfo> listWikiPagesByModified(String siteShortName,
|
||||||
|
Date from, Date to, PagingRequest paging)
|
||||||
|
{
|
||||||
|
return listWikiPages(siteShortName, null, null, null, from, to, paging);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagingResults<WikiPageInfo> listWikiPages(String siteShortName, String username,
|
||||||
|
Date createdFrom, Date createdTo, Date modifiedFrom, Date modifiedTo, PagingRequest paging)
|
||||||
|
{
|
||||||
|
NodeRef container = getSiteWikiContainer(siteShortName, false);
|
||||||
|
if(container == null)
|
||||||
|
{
|
||||||
|
// No events
|
||||||
|
return new EmptyPagingResults<WikiPageInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Run the canned query
|
||||||
|
GetChildrenAuditableCannedQueryFactory getChildrenCannedQueryFactory = (GetChildrenAuditableCannedQueryFactory)cannedQueryRegistry.getNamedObject(CANNED_QUERY_GET_CHILDREN);
|
||||||
|
GetChildrenAuditableCannedQuery cq = (GetChildrenAuditableCannedQuery)getChildrenCannedQueryFactory.getCannedQuery(
|
||||||
|
container, ContentModel.TYPE_CONTENT, username, createdFrom, createdTo, null,
|
||||||
|
modifiedFrom, modifiedTo, getChildrenCannedQueryFactory.createDateDescendingCQSortDetails(), paging);
|
||||||
|
|
||||||
|
// Execute the canned query
|
||||||
|
CannedQueryResults<NodeBackedEntity> results = cq.execute();
|
||||||
|
|
||||||
|
// Convert to Link objects
|
||||||
|
return wrap(results, container);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Our class to wrap up paged results of NodeBackedEntities as
|
||||||
|
* WikiPageInfo instances
|
||||||
|
*/
|
||||||
|
private PagingResults<WikiPageInfo> wrap(final PagingResults<NodeBackedEntity> results, final NodeRef container)
|
||||||
|
{
|
||||||
|
return new PagingResults<WikiPageInfo>()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public String getQueryExecutionId()
|
||||||
|
{
|
||||||
|
return results.getQueryExecutionId();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public List<WikiPageInfo> getPage()
|
||||||
|
{
|
||||||
|
List<WikiPageInfo> pages = new ArrayList<WikiPageInfo>();
|
||||||
|
for(NodeBackedEntity node : results.getPage())
|
||||||
|
{
|
||||||
|
NodeRef nodeRef = node.getNodeRef();
|
||||||
|
String name = node.getName();
|
||||||
|
pages.add(buildPage(nodeRef, container, name));
|
||||||
|
}
|
||||||
|
return pages;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public boolean hasMoreItems()
|
||||||
|
{
|
||||||
|
return results.hasMoreItems();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public Pair<Integer, Integer> getTotalResultCount()
|
||||||
|
{
|
||||||
|
return results.getTotalResultCount();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user