Search in sources :

Example 1 with RefactoringPathPageRow

use of org.kie.workbench.common.services.refactoring.model.query.RefactoringPathPageRow in project kie-wb-common by kiegroup.

the class FileDetailsResponseBuilder method buildResponse.

@Override
public List<RefactoringPageRow> buildResponse(final List<KObject> kObjects) {
    final List<RefactoringPageRow> result = new ArrayList<RefactoringPageRow>(kObjects.size());
    for (final KObject kObject : kObjects) {
        final Path path = Paths.convert(ioService.get(URI.create(kObject.getKey())));
        final RefactoringPathPageRow row = new RefactoringPathPageRow();
        row.setValue(path);
        result.add(row);
    }
    return result;
}
Also used : Path(org.uberfire.backend.vfs.Path) KObject(org.uberfire.ext.metadata.model.KObject) ArrayList(java.util.ArrayList) RefactoringPathPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPathPageRow) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)

Example 2 with RefactoringPathPageRow

use of org.kie.workbench.common.services.refactoring.model.query.RefactoringPathPageRow in project kie-wb-common by kiegroup.

the class DefaultResponseBuilder method buildResponse.

@Override
public List<RefactoringPageRow> buildResponse(final List<KObject> kObjects) {
    final List<RefactoringPageRow> result = new ArrayList<RefactoringPageRow>(kObjects.size());
    for (final KObject kObject : kObjects) {
        final Path path = Paths.convert(ioService.get(URI.create(kObject.getKey())));
        final RefactoringPathPageRow row = new RefactoringPathPageRow();
        row.setValue(path);
        result.add(row);
    }
    return result;
}
Also used : Path(org.uberfire.backend.vfs.Path) KObject(org.uberfire.ext.metadata.model.KObject) ArrayList(java.util.ArrayList) RefactoringPathPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPathPageRow) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)

Aggregations

ArrayList (java.util.ArrayList)2 RefactoringPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)2 RefactoringPathPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringPathPageRow)2 Path (org.uberfire.backend.vfs.Path)2 KObject (org.uberfire.ext.metadata.model.KObject)2