From 26aaf69dbef89b181e183fbd78d2007d921f9a48 Mon Sep 17 00:00:00 2001 From: jakubs <jakubs> Date: Wed, 31 Oct 2012 14:56:35 +0000 Subject: [PATCH] SP-365 BIS-245 search service should filter on calling user SVN: 27433 --- .../systemsx/cisd/common/action/IMapper.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 common/source/java/ch/systemsx/cisd/common/action/IMapper.java diff --git a/common/source/java/ch/systemsx/cisd/common/action/IMapper.java b/common/source/java/ch/systemsx/cisd/common/action/IMapper.java new file mode 100644 index 00000000000..40127dd7ebf --- /dev/null +++ b/common/source/java/ch/systemsx/cisd/common/action/IMapper.java @@ -0,0 +1,27 @@ +/* + * Copyright 2012 ETH Zuerich, CISD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package ch.systemsx.cisd.common.action; + +/** + * The interface for the map action - convert item of one type into another. + * + * @author Jakub Straszewski + */ +public interface IMapper<T, V> +{ + V map(T item); +} -- GitLab