Skip to content
Snippets Groups Projects
Commit a633c3a0 authored by cramakri's avatar cramakri
Browse files

LMS-1502 Adding extractors for CINA bundle files.

SVN: 16288
parent 4f19e91f
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2010 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.cina.dss.bundle;
import java.io.File;
import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.etlserver.IDataSetInfoExtractor;
import ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService;
import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation;
/**
* Extractor that process CINA bundle formats.
*
* @author Chandrasekhar Ramakrishnan
*/
public class CinaDataSetInfoExtractor implements IDataSetInfoExtractor
{
public DataSetInformation getDataSetInformation(File incomingDataSetPath,
IEncapsulatedOpenBISService openbisService) throws UserFailureException,
EnvironmentFailureException
{
return new DataSetInformation();
}
}
/*
* Copyright 2010 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.cina.dss.bundle;
import java.io.File;
import ch.systemsx.cisd.etlserver.ITypeExtractor;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.LocatorType;
/**
* @author Chandrasekhar Ramakrishnan
*/
public class CinaTypeExtractor implements ITypeExtractor
{
private static final String BUNDLE_DATA_SET_TYPE = "BUNDLE";
public DataSetType getDataSetType(File incomingDataSetPath)
{
return new DataSetType(BUNDLE_DATA_SET_TYPE);
}
public FileFormatType getFileFormatType(File incomingDataSetPath)
{
return new FileFormatType("PROPRIETARY");
}
public LocatorType getLocatorType(File incomingDataSetPath)
{
return new LocatorType("RELATIVE_LOCATION");
}
public String getProcessorType(File incomingDataSetPath)
{
return null;
}
public boolean isMeasuredData(File incomingDataSetPath)
{
return true;
}
}
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