mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
[SEARCH-1643]
Code style fixes
This commit is contained in:
@@ -28,25 +28,30 @@ import org.slf4j.LoggerFactory;
|
||||
*
|
||||
* @author Elia
|
||||
*/
|
||||
public class LastRegisteredShardRouter implements DocRouter {
|
||||
public class LastRegisteredShardRouter implements DocRouter
|
||||
{
|
||||
|
||||
protected final static Logger log = LoggerFactory.getLogger(ExplicitRouter.class);
|
||||
|
||||
public LastRegisteredShardRouter() {
|
||||
public LastRegisteredShardRouter()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean routeAcl(int shardCount, int shardInstance, Acl acl) {
|
||||
public boolean routeAcl(int shardCount, int shardInstance, Acl acl)
|
||||
{
|
||||
//all acls go to all shards.
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean routeNode(int shardCount, int shardInstance, Node node) {
|
||||
public boolean routeNode(int shardCount, int shardInstance, Node node)
|
||||
{
|
||||
|
||||
Integer explicitShardId = node.getExplicitShardId();
|
||||
|
||||
if (explicitShardId == null) {
|
||||
if (explicitShardId == null)
|
||||
{
|
||||
log.error("explicitShardId is not set for node " + node.getNodeRef());
|
||||
return false;
|
||||
}
|
||||
|
@@ -1,28 +1,28 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Solr Client
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* 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/>.
|
||||
* #L%
|
||||
*/
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Solr Client
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* 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/>.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco.solr.client;
|
||||
|
||||
import java.util.List;
|
||||
@@ -48,11 +48,11 @@ public class GetNodesParameters
|
||||
private Set<QName> excludeNodeTypes;
|
||||
|
||||
private Set<QName> includeAspects;
|
||||
private Set<QName> excludeAspects;
|
||||
private Set<QName> excludeAspects;
|
||||
|
||||
private QName shardProperty;
|
||||
private String coreName;
|
||||
|
||||
private QName shardProperty;
|
||||
private String coreName;
|
||||
|
||||
public boolean getStoreFilter()
|
||||
{
|
||||
return (storeProtocol != null || storeIdentifier != null);
|
||||
@@ -146,25 +146,27 @@ public class GetNodesParameters
|
||||
public void setExcludeAspects(Set<QName> excludeAspects)
|
||||
{
|
||||
this.excludeAspects = excludeAspects;
|
||||
}
|
||||
|
||||
public QName getShardProperty()
|
||||
{
|
||||
return this.shardProperty;
|
||||
}
|
||||
|
||||
public void setShardProperty(QName shardProperty)
|
||||
{
|
||||
this.shardProperty = shardProperty;
|
||||
}
|
||||
|
||||
public String getCoreName() {
|
||||
return this.coreName;
|
||||
}
|
||||
|
||||
public void setCoreName(String coreName){
|
||||
this.coreName = coreName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public QName getShardProperty()
|
||||
{
|
||||
return this.shardProperty;
|
||||
}
|
||||
|
||||
public void setShardProperty(QName shardProperty)
|
||||
{
|
||||
this.shardProperty = shardProperty;
|
||||
}
|
||||
|
||||
public String getCoreName()
|
||||
{
|
||||
return this.coreName;
|
||||
}
|
||||
|
||||
public void setCoreName(String coreName)
|
||||
{
|
||||
this.coreName = coreName;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user