Skip to content
Snippets Groups Projects
Commit 9a790b94 authored by fedoreno's avatar fedoreno
Browse files

SSDM-3511: reformatted

SVN: 36339
parent 9ba9faa4
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 51 deletions
...@@ -54,11 +54,12 @@ public class ApplicationServerApiJsonServer extends AbstractApiJsonServiceExport ...@@ -54,11 +54,12 @@ public class ApplicationServerApiJsonServer extends AbstractApiJsonServiceExport
} }
@RequestMapping( @RequestMapping(
{ IApplicationServerApi.JSON_SERVICE_URL, "/openbis" + IApplicationServerApi.JSON_SERVICE_URL }) { IApplicationServerApi.JSON_SERVICE_URL, "/openbis" + IApplicationServerApi.JSON_SERVICE_URL })
@Override @Override
public void handleRequest(HttpServletRequest request, HttpServletResponse response) public void handleRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, throws ServletException,
IOException { IOException
{
super.handleRequest(request, response); super.handleRequest(request, response);
} }
} }
...@@ -47,10 +47,11 @@ public class ApplicationServerApiServer extends AbstractApiServiceExporter ...@@ -47,10 +47,11 @@ public class ApplicationServerApiServer extends AbstractApiServiceExporter
} }
@RequestMapping( @RequestMapping(
{ IApplicationServerApi.SERVICE_URL, "/openbis" + IApplicationServerApi.SERVICE_URL, "/openbis/openbis" + IApplicationServerApi.SERVICE_URL }) { IApplicationServerApi.SERVICE_URL, "/openbis" + IApplicationServerApi.SERVICE_URL, "/openbis/openbis" + IApplicationServerApi.SERVICE_URL })
@Override @Override
public void handleRequest(HttpServletRequest request, HttpServletResponse response) public void handleRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { throws ServletException, IOException
{
super.handleRequest(request, response); super.handleRequest(request, response);
} }
} }
...@@ -38,19 +38,18 @@ public class SearchCache<CRITERIA, FETCH_OPTIONS, OBJECT> implements ISearchCach ...@@ -38,19 +38,18 @@ public class SearchCache<CRITERIA, FETCH_OPTIONS, OBJECT> implements ISearchCach
@Autowired @Autowired
private CacheManager cacheManager; private CacheManager cacheManager;
private RuntimeCache<SearchCacheKey<CRITERIA, FETCH_OPTIONS>, SearchCacheEntry<OBJECT>> runtimeCache; private RuntimeCache<SearchCacheKey<CRITERIA, FETCH_OPTIONS>, SearchCacheEntry<OBJECT>> runtimeCache;
public SearchCache() public SearchCache()
{ {
} }
public SearchCache(RuntimeCache<SearchCacheKey<CRITERIA, FETCH_OPTIONS>, SearchCacheEntry<OBJECT>> runtimeCache) public SearchCache(RuntimeCache<SearchCacheKey<CRITERIA, FETCH_OPTIONS>, SearchCacheEntry<OBJECT>> runtimeCache)
{ {
this.runtimeCache = runtimeCache; this.runtimeCache = runtimeCache;
} }
@Override @Override
public SearchCacheEntry<OBJECT> get(SearchCacheKey<CRITERIA, FETCH_OPTIONS> key) public SearchCacheEntry<OBJECT> get(SearchCacheKey<CRITERIA, FETCH_OPTIONS> key)
{ {
......
...@@ -19,8 +19,6 @@ package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common; ...@@ -19,8 +19,6 @@ package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common;
import ch.systemsx.cisd.openbis.generic.shared.basic.ICodeHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.ICodeHolder;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public class CodeMatcher<OBJECT extends ICodeHolder> extends StringFieldMatcher<OBJECT> public class CodeMatcher<OBJECT extends ICodeHolder> extends StringFieldMatcher<OBJECT>
......
...@@ -17,12 +17,11 @@ ...@@ -17,12 +17,11 @@
package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common; package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public class TechIdStringIdentifierRecord public class TechIdStringIdentifierRecord
{ {
public Long id; public Long id;
public String identifier; public String identifier;
} }
...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject ...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject
import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetTypePE; import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetTypePE;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface ISearchDataSetTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, DataSetTypePE> public interface ISearchDataSetTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, DataSetTypePE>
......
...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetTypePE; ...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
@Component @Component
......
...@@ -29,8 +29,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.EntityTypePE; ...@@ -29,8 +29,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.EntityTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public abstract class AbstractSearchEntityTypeExecutor<ENTITY_TYPE_PE extends EntityTypePE> public abstract class AbstractSearchEntityTypeExecutor<ENTITY_TYPE_PE extends EntityTypePE>
...@@ -42,7 +40,7 @@ public abstract class AbstractSearchEntityTypeExecutor<ENTITY_TYPE_PE extends En ...@@ -42,7 +40,7 @@ public abstract class AbstractSearchEntityTypeExecutor<ENTITY_TYPE_PE extends En
{ {
this.entityKind = entityKind; this.entityKind = entityKind;
} }
@Override @Override
protected List<ENTITY_TYPE_PE> listAll() protected List<ENTITY_TYPE_PE> listAll()
{ {
......
...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject ...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject
import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentTypePE; import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentTypePE;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface ISearchExperimentTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, ExperimentTypePE> public interface ISearchExperimentTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, ExperimentTypePE>
......
...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentTypePE; ...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
@Component @Component
......
...@@ -19,10 +19,7 @@ package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.material; ...@@ -19,10 +19,7 @@ package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.material;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.material.id.IMaterialId; import ch.ethz.sis.openbis.generic.asapi.v3.dto.material.id.IMaterialId;
import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.IMapObjectByIdExecutor; import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.IMapObjectByIdExecutor;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface IMapMaterialTechIdByIdExecutor extends IMapObjectByIdExecutor<IMaterialId, Long> public interface IMapMaterialTechIdByIdExecutor extends IMapObjectByIdExecutor<IMaterialId, Long>
......
...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject ...@@ -21,8 +21,6 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject
import ch.systemsx.cisd.openbis.generic.shared.dto.MaterialTypePE; import ch.systemsx.cisd.openbis.generic.shared.dto.MaterialTypePE;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface ISearchMaterialTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, MaterialTypePE> public interface ISearchMaterialTypeExecutor extends ISearchObjectExecutor<EntityTypeSearchCriteria, MaterialTypePE>
......
...@@ -31,11 +31,9 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.helper.common.AbstractListTec ...@@ -31,11 +31,9 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.helper.common.AbstractListTec
import ch.systemsx.cisd.openbis.generic.shared.basic.CodeConverter; import ch.systemsx.cisd.openbis.generic.shared.basic.CodeConverter;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public class ListMaterialsTechIdByPermId extends AbstractListTechIdById<MaterialPermId> public class ListMaterialsTechIdByPermId extends AbstractListTechIdById<MaterialPermId>
{ {
@Override @Override
......
...@@ -26,15 +26,13 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.translator.entity.common.Obje ...@@ -26,15 +26,13 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.translator.entity.common.Obje
import ch.systemsx.cisd.common.db.mapper.StringArrayMapper; import ch.systemsx.cisd.common.db.mapper.StringArrayMapper;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface MaterialQuery extends ObjectQuery public interface MaterialQuery extends ObjectQuery
{ {
@Select(sql = "select m.id, m.code as identifier from materials m join material_types t on m.maty_id = t.id " @Select(sql = "select m.id, m.code as identifier from materials m join material_types t on m.maty_id = t.id "
+ "where t.code = ?{1} and m.code = any(?{2})", parameterBindings = + "where t.code = ?{1} and m.code = any(?{2})", parameterBindings =
{ TypeMapper.class, StringArrayMapper.class }, fetchSize = FETCH_SIZE) { TypeMapper.class, StringArrayMapper.class }, fetchSize = FETCH_SIZE)
public List<TechIdStringIdentifierRecord> listMaterialTechIdsByCodes(String typeCode, String[] codes); public List<TechIdStringIdentifierRecord> listMaterialTechIdsByCodes(String typeCode, String[] codes);
} }
...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.MaterialTypePE; ...@@ -23,8 +23,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.MaterialTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
@Component @Component
......
...@@ -37,7 +37,8 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind; ...@@ -37,7 +37,8 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
* @author Jakub Straszewski * @author Jakub Straszewski
*/ */
@Component @Component
public class SetMaterialTypeExecutor extends AbstractSetEntityToOneRelationExecutor<MaterialCreation, MaterialPE, IEntityTypeId, EntityTypePE> implements public class SetMaterialTypeExecutor extends AbstractSetEntityToOneRelationExecutor<MaterialCreation, MaterialPE, IEntityTypeId, EntityTypePE>
implements
ISetMaterialTypeExecutor ISetMaterialTypeExecutor
{ {
......
...@@ -26,12 +26,9 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject ...@@ -26,12 +26,9 @@ import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.ISearchObject
import ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public abstract class AbstractIdSearchMethodExecutor<OBJECT, OBJECT_PE extends IIdHolder, public abstract class AbstractIdSearchMethodExecutor<OBJECT, OBJECT_PE extends IIdHolder, CRITERIA extends AbstractSearchCriteria, FETCH_OPTIONS extends FetchOptions<OBJECT>>
CRITERIA extends AbstractSearchCriteria, FETCH_OPTIONS extends FetchOptions<OBJECT>>
extends AbstractSearchMethodExecutor<OBJECT, Long, CRITERIA, FETCH_OPTIONS> extends AbstractSearchMethodExecutor<OBJECT, Long, CRITERIA, FETCH_OPTIONS>
{ {
...@@ -53,7 +50,7 @@ public abstract class AbstractIdSearchMethodExecutor<OBJECT, OBJECT_PE extends I ...@@ -53,7 +50,7 @@ public abstract class AbstractIdSearchMethodExecutor<OBJECT, OBJECT_PE extends I
} }
}; };
} }
protected abstract List<OBJECT_PE> searchPEs(IOperationContext context, CRITERIA criteria); protected abstract List<OBJECT_PE> searchPEs(IOperationContext context, CRITERIA criteria);
} }
...@@ -28,8 +28,6 @@ import ch.ethz.sis.openbis.generic.asapi.v3.plugin.service.ICustomASServiceExecu ...@@ -28,8 +28,6 @@ import ch.ethz.sis.openbis.generic.asapi.v3.plugin.service.ICustomASServiceExecu
import ch.ethz.sis.openbis.generic.asapi.v3.plugin.service.context.CustomASServiceContext; import ch.ethz.sis.openbis.generic.asapi.v3.plugin.service.context.CustomASServiceContext;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
@Component @Component
......
...@@ -20,8 +20,6 @@ import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.CustomASServiceExecution ...@@ -20,8 +20,6 @@ import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.CustomASServiceExecution
import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.id.ICustomASServiceId; import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.id.ICustomASServiceId;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface IExecuteCustomASServiceMethodExecutor public interface IExecuteCustomASServiceMethodExecutor
......
...@@ -21,11 +21,10 @@ import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.fetchoptions.CustomASSer ...@@ -21,11 +21,10 @@ import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.fetchoptions.CustomASSer
import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.search.CustomASServiceSearchCriteria; import ch.ethz.sis.openbis.generic.asapi.v3.dto.service.search.CustomASServiceSearchCriteria;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public interface ISearchCustomASServiceMethodExecutor extends ISearchMethodExecutor<CustomASService, CustomASServiceSearchCriteria, CustomASServiceFetchOptions> public interface ISearchCustomASServiceMethodExecutor extends
ISearchMethodExecutor<CustomASService, CustomASServiceSearchCriteria, CustomASServiceFetchOptions>
{ {
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment