Package org.jitterbit.integration.data.project.path

Examples of org.jitterbit.integration.data.project.path.ProjectPathQuery


        this.filterString = filterString;
    }

    public Set<IntegrationEntity> apply(IntegrationProject project) {
        try {
            ProjectPathQuery query = new ProjectPathQuery(project);
            String path = getPathFromFilterString(filterString);
            return query.findItems(path);
        } catch (Exception e) {
            // HACK: The current implementation of ProjectPathQuery throws a RuntimeException
            // if the path has invalid format. Since the filter string comes directly from
            // user input we must catch this exception, and I can't see a reasonable way to
            // deal with it other than ignore it.
View Full Code Here


        return StringUtils.join(params, " ");
    }
   
    private Set<IntegrationEntity> findItems(String path, IntegrationProject project) throws CommandException {
        try {
            ProjectPathQuery query = new ProjectPathQuery(project);
            KSet<IntegrationEntity> matches = query.findItems(path);
            return matches.keepAll(filter);
        } catch (IllegalArgumentException pathSyntaxError) {
            throw new CommandException(pathSyntaxError.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.project.path.ProjectPathQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.