class SearchDelegator extends BaseDelegator implements ISearchDelegator {

    @Override
    public List<String> searchJobs(
            final String words,
            final SearchJobsOptions opts) throws P4JavaException {

        Validate.notBlank(words, "Null or empty words passed to searchJobs method");

        List<Map<String, Object>> resultMaps = execMapCmdList(
                SEARCH,
                Parameters.processParameters(opts, null, new String[]{words}, server),
                null);

        List<String> jobIdList = new ArrayList<>();
        if (resultMaps != null) {
            for (Map<String, Object> map : resultMaps) {
                if (map != null) {
                    throwRequestExceptionIfErrorMessageFound(map);
                    jobIdList.add(getInfoStr(map));
                }
            }
        }

        return jobIdList;
    }

    public  SearchDelegator(IOptionsServer server);

}