/** * Called by the configuration system to register document types based on documentmanager.cfg. * * @param config the instance representing config in documentmanager.cfg. */ @Override public void configure(DocumentmanagerConfig config) { DocumentTypeManager manager = configureNewManager(config); int defaultTypeCount = new DocumentTypeManager().getDataTypes().size(); if (this.managerToConfigure.getDataTypes().size() != defaultTypeCount) { log.log(LogLevel.DEBUG, "Live document config overwritten with new config."); } managerToConfigure.assign(manager); }
public SDDocumentTypeOrderer(List<SDDocumentType> sdTypes, DeployLogger deployLogger) { this.deployLogger = deployLogger; for (SDDocumentType type : sdTypes) { createdSDTypes.put(type.getDocumentName(), type); } DocumentTypeManager dtm = new DocumentTypeManager(); for (DataType type : dtm.getDataTypes()) { seenTypes.add(type.getId()); } }