Package org.danann.cernunnos.runtime

Examples of org.danann.cernunnos.runtime.RuntimeRequestResponse


                log.warn("no match found on layout for user '"+ layoutOwnerUsername
                            + "' for the specified dlmNoderef:  " + dlmNoderef);
            }
        } else {
            ReturnValueImpl rvi = new ReturnValueImpl();
            RuntimeRequestResponse tr = new RuntimeRequestResponse();
            tr.setAttribute(Attributes.RETURN_VALUE, rvi);
            tr.setAttribute("USER_NAME", layoutOwnerUsername);
            tr.setAttribute("DLM_NODEREF", dlmNoderef);
            // The 'layoutStoreProvider' attribute could use some rework; 
            // adding it like this to avoid circular dependency issues
            final RDBMDistributedLayoutStore layoutStore = this;
            tr.setAttribute("layoutStoreProvider", new LayoutStoreProvider() {
                @Override
                public RDBMDistributedLayoutStore getLayoutStore() {
                    return layoutStore;
                }
            });
            this.lookupNoderefTask.perform(tr, new RuntimeRequestResponse());
           
            rslt = (String[]) rvi.getValue();
        }
       
        return rslt;
View Full Code Here


                            + layoutOwner + "'");
                }
            }
        } else {
            ReturnValueImpl rvi = new ReturnValueImpl();
            RuntimeRequestResponse tr = new RuntimeRequestResponse();
            tr.setAttribute(Attributes.RETURN_VALUE, rvi);
            tr.setAttribute("USER_NAME", layoutOwner);
            tr.setAttribute("DLM_PATHREF", pathref);
            if (fname != null) {
                tr.setAttribute("FNAME", fname);
            }
            if (isStructRef) {
                tr.setAttribute("IS_STRUCT_REF", Boolean.TRUE);
            }
            // The 'layoutStoreProvider' attribute could use some rework; 
            // adding it like this to avoid circular dependency issues
            final RDBMDistributedLayoutStore layoutStore = this;
            tr.setAttribute("layoutStoreProvider", new LayoutStoreProvider() {
                @Override
                public RDBMDistributedLayoutStore getLayoutStore() {
                    return layoutStore;
                }
            });
            this.lookupPathrefTask.perform(tr, new RuntimeRequestResponse());
           
            String val = (String) rvi.getValue();
            if (val != null) {
                rslt = val;
            }
View Full Code Here

        Map<String,List<String>> new_parents = Collections.synchronizedMap(new HashMap<String,List<String>>());
        Map<String,List<String>> new_children = Collections.synchronizedMap(new HashMap<String,List<String>>());
        Map<String,List<String>> new_keysByUpperCaseName = Collections.synchronizedMap(new HashMap<String,List<String>>());

        // Gather IEntityGroup objects from LDAP...
        RuntimeRequestResponse req = new RuntimeRequestResponse();
        Set<LdapRecord> set = new HashSet<LdapRecord>();
        req.setAttribute("GROUPS", set);
        for (String name : spring_context.getBeanDefinitionNames()) {
            req.setAttribute(name, spring_context.getBean(name));
        }
        runner.run(initTask, req);
       
        if (log.isInfoEnabled()) {
            String msg = "init() found " + set.size() + " records.";
View Full Code Here

        this.fileNameFunction = fileNameFunction;
    }

    @Override
    protected Element exportDataElement(String id) {
        final RuntimeRequestResponse request = new RuntimeRequestResponse();
        request.setAttribute(this.idAttributeName, id);

        final ReturnValueImpl result = new ReturnValueImpl();
        final TaskResponse response = new RuntimeRequestResponse(
                Collections.<String, Object> singletonMap("Attributes.RETURN_VALUE", result));
       
        task.perform(request, response);
       
        return (Element)result.getValue();
View Full Code Here

    /* (non-Javadoc)
     * @see org.jasig.portal.io.xml.crn.AbstractDom4jImporter#importDataNode(org.jasig.portal.utils.Tuple)
     */
    @Override
    protected void importDataElement(Tuple<String, Element> data) {
        final RuntimeRequestResponse request = new RuntimeRequestResponse();
        request.setAttribute(Attributes.NODE, data.second);
        request.setAttribute(Attributes.LOCATION, StringUtils.trimToEmpty(data.first));

        final ReturnValueImpl result = new ReturnValueImpl();
        final TaskResponse response = new RuntimeRequestResponse(
                Collections.<String, Object> singletonMap("Attributes.RETURN_VALUE", result));
       
        this.task.perform(request, response);
    }
View Full Code Here

        Map<String,List<String>> new_parents = Collections.synchronizedMap(new HashMap<String,List<String>>());
        Map<String,List<String>> new_children = Collections.synchronizedMap(new HashMap<String,List<String>>());
        Map<String,List<String>> new_keysByUpperCaseName = Collections.synchronizedMap(new HashMap<String,List<String>>());

        // Gather IEntityGroup objects from LDAP...
        RuntimeRequestResponse req = new RuntimeRequestResponse();
        Set<LdapRecord> set = new HashSet<LdapRecord>();
        req.setAttribute("GROUPS", set);
        req.setAttribute("smartLdapGroupStore", this);
        SubQueryCounter queryCounter = new SubQueryCounter();
        req.setAttribute("queryCounter", queryCounter);
        req.setAttribute("baseFilter", spring_context.getBean("filter"));
        for (String name : spring_context.getBeanDefinitionNames()) {
            req.setAttribute(name, spring_context.getBean(name));
        }
        runner.run(initTask, req);
       
        if (log.isInfoEnabled()) {
            String msg = "init() found " + set.size() + " records.";
View Full Code Here

TOP

Related Classes of org.danann.cernunnos.runtime.RuntimeRequestResponse

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.