@Override public boolean allowExpansionFromArchive(ArtifactContent content, ArchiveContext archiveContext) { if (content.getFilename().endsWith(TeiidModel.FILE_EXT)) { return true; } return super.allowExpansionFromArchive(content, archiveContext); }
@Override public ArtifactType detect(ArtifactContent content) { // VDB manifest if (VdbManifest.FILE_NAME.equals(content.getFilename())) { return ArtifactType.valueOf(TeiidArtifactType.VDB_MANIFEST.extendedType(), true); } // Teiid models if (content.getFilename().endsWith(TeiidModel.FILE_EXT)) { return ArtifactType.valueOf(TeiidArtifactType.MODEL.extendedType(), true); } // VDB configuration info def if (Vdb.CONFIGURATION_INFO_FILE_NAME.equals(content.getFilename())) { return ArtifactType.valueOf(Vdb.VdbExtendedType.CONFIG_INFO.extendedType(), true); } return null; }
@Override public boolean isArchive(ArtifactContent content) { if (content.getFilename().endsWith(".vdb")) { return true; } else { return super.isArchive(content); } }