diff --git a/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DetailRequestHandler.java b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DetailRequestHandler.java new file mode 100644 index 0000000000000000000000000000000000000000..21f077bdd44f80b805ff6e0cd82cab9979d98eb0 --- /dev/null +++ b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DetailRequestHandler.java @@ -0,0 +1,46 @@ +/* + * Copyright 2013 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.openbis.ipad.v2.server; + +import java.util.Arrays; +import java.util.Map; + +import ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISearchService; +import ch.systemsx.cisd.openbis.generic.shared.managed_property.api.ISimpleTableModelBuilderAdaptor; + +/** + * @author cramakri + */ +public class DetailRequestHandler extends AbstractRequestHandler +{ + + /** + * Abstract Handler for the DETAIL request. + * + * @param parameters + * @param builder + * @param searchService + * @param optionalHeaders + */ + protected DetailRequestHandler(Map<String, Object> parameters, + ISimpleTableModelBuilderAdaptor builder, ISearchService searchService) + { + super(parameters, builder, searchService, Arrays.asList("CATEGORY", "SUMMARY_HEADER", + "SUMMARY", "IDENTIFIER", "IMAGES", "PROPERTIES")); + } + +} diff --git a/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DrillRequestHandler.java b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DrillRequestHandler.java new file mode 100644 index 0000000000000000000000000000000000000000..218856df0fbf1545ff300b5bb170354fe3cbc238 --- /dev/null +++ b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/DrillRequestHandler.java @@ -0,0 +1,46 @@ +/* + * Copyright 2013 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.openbis.ipad.v2.server; + +import java.util.Arrays; +import java.util.Map; + +import ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISearchService; +import ch.systemsx.cisd.openbis.generic.shared.managed_property.api.ISimpleTableModelBuilderAdaptor; + +/** + * @author cramakri + */ +public class DrillRequestHandler extends AbstractRequestHandler +{ + + /** + * Abstract Handler for the DRILL request. + * + * @param parameters + * @param builder + * @param searchService + * @param optionalHeaders + */ + protected DrillRequestHandler(Map<String, Object> parameters, + ISimpleTableModelBuilderAdaptor builder, ISearchService searchService) + { + super(parameters, builder, searchService, Arrays.asList("CATEGORY", "SUMMARY_HEADER", + "SUMMARY", "CHILDREN")); + } + +} diff --git a/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/NavigationRequestHandler.java b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/NavigationRequestHandler.java new file mode 100644 index 0000000000000000000000000000000000000000..242c13a1f81793cbe4e68c3dc5c0ad21b77f55e6 --- /dev/null +++ b/openbis-ipad/source/java/ch/systemsx/cisd/openbis/ipad/v2/server/NavigationRequestHandler.java @@ -0,0 +1,45 @@ +/* + * Copyright 2013 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.openbis.ipad.v2.server; + +import java.util.Arrays; +import java.util.Map; + +import ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISearchService; +import ch.systemsx.cisd.openbis.generic.shared.managed_property.api.ISimpleTableModelBuilderAdaptor; + +/** + * @author cramakri + */ +public class NavigationRequestHandler extends AbstractRequestHandler +{ + + /** + * Abstract Handler for the NAVIGATION request. + * + * @param parameters + * @param builder + * @param searchService + * @param optionalHeaders + */ + protected NavigationRequestHandler(Map<String, Object> parameters, + ISimpleTableModelBuilderAdaptor builder, ISearchService searchService) + { + super(parameters, builder, searchService, Arrays.asList("CATEGORY", "SUMMARY_HEADER", + "SUMMARY", "ROOT_LEVEL")); + } +}