Search in sources :

Example 16 with ProjectSchemaReference

use of com.twinsoft.convertigo.beans.references.ProjectSchemaReference in project convertigo by convertigo.

the class ReferencedProjectManager method check.

private boolean check(Project project, Map<String, ProjectUrlParser> refs) {
    project.getReferenceList().forEach(r -> {
        if (r instanceof ProjectSchemaReference) {
            ProjectSchemaReference ref = (ProjectSchemaReference) r;
            String url = ref.getProjectName();
            ProjectUrlParser parser = new ProjectUrlParser(url);
            if (parser.isValid()) {
                refs.put(parser.getProjectName(), parser);
            }
        }
    });
    return check(refs);
}
Also used : ProjectUrlParser(com.twinsoft.convertigo.engine.util.ProjectUrlParser) ProjectSchemaReference(com.twinsoft.convertigo.beans.references.ProjectSchemaReference)

Aggregations

ProjectSchemaReference (com.twinsoft.convertigo.beans.references.ProjectSchemaReference)16 DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)9 Reference (com.twinsoft.convertigo.beans.core.Reference)9 Project (com.twinsoft.convertigo.beans.core.Project)8 RequestableStep (com.twinsoft.convertigo.beans.core.RequestableStep)4 Sequence (com.twinsoft.convertigo.beans.core.Sequence)4 Transaction (com.twinsoft.convertigo.beans.core.Transaction)4 ArrayList (java.util.ArrayList)4 Step (com.twinsoft.convertigo.beans.core.Step)3 SequenceStep (com.twinsoft.convertigo.beans.steps.SequenceStep)3 TransactionStep (com.twinsoft.convertigo.beans.steps.TransactionStep)3 EngineException (com.twinsoft.convertigo.engine.EngineException)3 CouchDbConnector (com.twinsoft.convertigo.beans.connectors.CouchDbConnector)2 Connector (com.twinsoft.convertigo.beans.core.Connector)2 ISchemaGenerator (com.twinsoft.convertigo.beans.core.ISchemaGenerator)2 ISchemaImportGenerator (com.twinsoft.convertigo.beans.core.ISchemaImportGenerator)2 XMLCopyStep (com.twinsoft.convertigo.beans.steps.XMLCopyStep)2 ConvertigoException (com.twinsoft.convertigo.engine.ConvertigoException)2 ProjectUrlParser (com.twinsoft.convertigo.engine.util.ProjectUrlParser)2 Iterator (java.util.Iterator)2