use of com.emc.metalnx.core.domain.entity.DataGridRule in project metalnx-web by irods-contrib.
the class RuleServiceImpl method execManifestFileRule.
@Override
public void execManifestFileRule(String host, String targetPath, String objPath, String filePath) throws DataGridRuleException, DataGridConnectionRefusedException, FileNotFoundException, JargonException {
if (!DataGridCoreUtils.isPrideXMLManifestFile(objPath))
return;
logger.info("Get Manifest Rule called");
DataGridRule rule = new DataGridRule(DataGridRule.XML_MANIFEST_RULE, host);
List<DataGridCollectionAndDataObject> objs = cs.getSubCollectionsAndDataObjectsUnderPath(targetPath);
for (DataGridCollectionAndDataObject obj : objs) {
logger.info("Extracting metadata from [{}] and applying on [{}]", filePath, obj.getPath());
rule.setInputRuleParams(obj.getPath(), filePath, filePath);
executeRule(rule.toString());
}
}
Aggregations