Package org.apache.avalon.excalibur.source

Examples of org.apache.avalon.excalibur.source.SourceParameters


                    throw new ProcessingException("Transformer exception: " + local, local);
                }
            }
            if (user == null || node == null) {
                final Resource newUserResource = this.handler.getNewUserResource();
                final SourceParameters newUsersPars = newUserResource.getResourceParameters();
                if (parameters == null) parameters = new SourceParameters();
                parameters.add(newUsersPars);

                if (this.applicationName != null)
                    parameters.setSingleParameterValue("application", this.applicationName);
                parameters.setSingleParameterValue("type", "user");
View Full Code Here


        if (this.getLogger().isDebugEnabled() == true) {
            this.getLogger().debug("BEGIN deleteRole role="+name+", parameters="+parameters);
        }
        if (this.handler != null && this.handler.getDeleteRoleResource() != null) {
            final Resource deleteRoleResource = this.handler.getDeleteRoleResource();
            final SourceParameters handlerPars = deleteRoleResource.getResourceParameters();
            if (parameters == null) parameters = new SourceParameters();
            parameters.add(handlerPars);

            if (this.applicationName != null)
                parameters.setSingleParameterValue("application", this.applicationName);
            parameters.setSingleParameterValue("type", "role");
View Full Code Here

        if (this.getLogger().isDebugEnabled() == true) {
            this.getLogger().debug("BEGIN deleteUser role="+role+", ID="+name+", parameters="+parameters);
        }
        if (this.handler != null && this.handler.getDeleteUserResource() != null) {
            final Resource deleteUserResource = this.handler.getDeleteUserResource();
            final SourceParameters handlerPars = deleteUserResource.getResourceParameters();
            if (parameters == null) parameters = new SourceParameters();
            parameters.add(handlerPars);

            if (this.applicationName != null)
                parameters.setSingleParameterValue("application", this.applicationName);
            parameters.setSingleParameterValue("type", "user");
View Full Code Here

        if (this.getLogger().isDebugEnabled() == true) {
            this.getLogger().debug("BEGIN changeUser role="+role+", ID="+name+", parameters="+parameters);
        }
        if (this.handler != null && this.handler.getChangeUserResource() != null) {
            final Resource changeUserResource = this.handler.getChangeUserResource();
            final SourceParameters handlerPars = changeUserResource.getResourceParameters();
            if (parameters == null) parameters = new SourceParameters();
            parameters.add(handlerPars);

            if (this.applicationName != null)
                parameters.setSingleParameterValue("application", this.applicationName);
            parameters.setSingleParameterValue("type", "user");
View Full Code Here

            if (appHandler.getIsLoaded(context) == false) {

                final Resource loadResource     = appHandler.getLoadResource();
                final String   loadResourceName = loadResource.getResourceIdentifier();
                final int      loadResourceType = loadResource.getResourceType();
                SourceParameters parameters = loadResource.getResourceParameters();
                if (parameters != null) parameters = (SourceParameters)parameters.clone();
                parameters = this.createParameters(parameters,
                                                   appHandler.getHandler().getName(),
                                                   path,
                                                   appHandler.getName());
                DocumentFragment fragment;
View Full Code Here

     */
    public SourceParameters createParameters(String path)
    throws ProcessingException {
        // synchronized
        if (this.handler == null) {
            return new SourceParameters();
        }
        if (path == null) {
            SessionContext context = this.getSunRiseSessionContext(false);
            SourceParameters pars = (SourceParameters)context.getAttribute("cachedparameters_" + this.handler.getName());
            if (pars == null) {
                 pars = this.createParameters(null, this.handlerName, path, this.applicationName);
                 context.setAttribute("cachedparameters_" + this.handler.getName(), pars);
            }
            return pars;
View Full Code Here

                label = (String)stack.pop();
            }

        } else if (name.equals(CPARAMLIST_ELEMENT) == true
                 && this.state == SunShineConnectTransformer.STATE_CONNECTION) {
            callParams = new SourceParameters();
            // Now get the parameters off the stack
            String label = (String)stack.pop();
            String value="";
            while (!label.equals("PARAMEND")) {
                value = (String)stack.pop();
View Full Code Here

TOP

Related Classes of org.apache.avalon.excalibur.source.SourceParameters

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.