Package org.apache.slide.projector

Examples of org.apache.slide.projector.Result


        if ( vetoable ) {
            Projector.getRepository().fireVetoableEvent(information, context.getCredentials());
        } else {
            Projector.getRepository().fireEvent(information, context.getCredentials());
        }
        return new Result(StateDescriptor.OK);
    }
View Full Code Here


                  Processor processor = ProcessorManager.getInstance().getProcessor((URI)processorUri);
                  Value processorParameters = (Value)columnMap.get(PARAMETERS);
                  if ( processorParameters instanceof MapValue ) {
                    columnParameters.putAll(((MapValue)processorParameters).getMap());
                  }
                Result processorResult = ProcessorManager.process(processor, columnParameters, context);
                String resultKey = columnMap.get(RESULT).toString();
                Value resultEntry = (Value)processorResult.getResultEntries().get(resultKey);
                if ( resultEntry instanceof PrintableValue ) {
                  if ( replaceColumn ) {
                    ((PrintableValue)resultEntry).print(columnsBuffer);
                  } else {
                    StringBuffer resultBuffer = new StringBuffer();
View Full Code Here

    public Result process(Map parameter, Context context) throws Exception {
        Map map = ((MapValue)parameter.get(MAP)).getMap();
        String key = ((StringValue)parameter.get(KEY)).toString();
        Value entry = (Value)map.get(key);
        if ( entry == null ) return new Result(KEY_NOT_FOUND);
        return new Result(StateDescriptor.OK, SimpleProcessor.OUTPUT, entry);
    }
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.Result

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.