@Transactional(readOnly = true) public Object doWork(SqlAction sql) { return isInRepo(sql, id); } });
public Boolean call() throws ServerError { if (scripts.isInRepo(scriptID)) { return true; } // currently assuming that if we have the scriptID then // it will have to be visible to the user/group and // therefore those are the values we should ask the // processor about. ProcessorCallbackI callback = new ProcessorCallbackI(factory); callback.setApplicationContext(factory.context); callback.setHolder(factory.holder); ProcessorPrx server = callback.activateAndWait(__current); return server != null; }
private String loadText(final OriginalFile file, final Ice.Current current) throws ServerError { if (scripts.isInRepo(file.getId())) { try { return scripts.read(file.getPath() + file.getName());