Examples of InvocationContextImpl


Examples of be.c4j.ee.security.view.InvocationContextImpl

            AbstractAccessDecisionVoter bean = getBean(voter.trim());

            if (bean == null) {
                return false;
            }
            InvocationContext ic = new InvocationContextImpl(secureComponentData
                    .getTargetComponent(), contextParameters);
            Set<SecurityViolation> securityViolations = bean.checkPermission(ic);

            partialResult = securityViolations.isEmpty();
            if (secureComponentData.isNot()) {
View Full Code Here

Examples of be.c4j.ee.security.view.InvocationContextImpl

        String[] voters = (String[]) mappedValue;

        BeanManager bm = BeanManagerProvider.getInstance().getBeanManager();

        String url = ((HttpServletRequest) request).getRequestURL().toString();
        InvocationContext ic = new InvocationContextImpl(url, new Object[]{request});

        boolean permitted = true;

        for (String voter : voters) {
            AbstractGenericVoter voterObj = CDIUtil.getContextualReferenceByName(bm, voter, AbstractGenericVoter.class);
View Full Code Here

Examples of edu.indiana.extreme.lead.workflow_tracking.impl.state.InvocationContextImpl

        // e.g. notifier.invokingServiceFailed().

        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator,
                    this.receiver);
        }

        logger.entering(new Object[] { message, e });
        logger.caught(e);
View Full Code Here

Examples of edu.indiana.extreme.lead.workflow_tracking.impl.state.InvocationContextImpl

    @Deprecated
    public void receivedFault(String message) {
        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator,
                    this.receiver);
        }

        if (message == null || "".equals(message)) {
            message = "Error";
View Full Code Here

Examples of edu.indiana.extreme.lead.workflow_tracking.impl.state.InvocationContextImpl

     */
    public void receivedFault(WSIFMessage fault) {
        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator,
                    this.receiver);
        }

        String message = "Received a fault message from the service";
        XmlObject header = null;
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

        WorkflowInvokedDocument activity = WorkflowInvokedDocument.Factory.newInstance();
        RequestReceiverType activityType = activity.addNewWorkflowInvoked();

        // create the invocation context; set the initiator to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), initiator);
        if (initiator != null) {
            activityType.addNewInitiator().set(initiator.toBaseIDType());
        } else {
            logger.warn("Possible Error in context that was passed. "
                    + "There was no remote invoker defined for workflow invoked (initiator=NULL)");
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

        InvokingServiceDocument activity = InvokingServiceDocument.Factory.newInstance();
        RequestInitiatorType activityType = activity.addNewInvokingService();

        // create the invocation context; set the receiver to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), receiver);
        activityType.addNewReceiver().set(receiver.toBaseIDType());

        // add header and body fields
        if (header != null || body != null) {
            InvocationMessageType request = activityType.addNewRequest();
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

        ServiceInvokedDocument activity = ServiceInvokedDocument.Factory.newInstance();
        RequestReceiverType activityType = activity.addNewServiceInvoked();

        // create the invocation context; set the initiator to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), initiator);
        if (initiator != null) {
            activityType.addNewInitiator().set(initiator.toBaseIDType());
        } else {
            logger.warn("Possible Error in context that was passed. "
                    + "There was no remote invoker defined (initiator=NULL)");
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

    public InvocationContext createInitialContext(WorkflowTrackingContext context) {
        if (context.getMyself() == null) {
            throw new RuntimeException("Local entity passed to createInitialContext was NULL");
        }
        return new InvocationContextImpl(context.getMyself(), null);
    }
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

        if (remoteEntity == null) {
            throw new RuntimeException("Remote entity passed to createInitialContext was NULL");
        }

        return new InvocationContextImpl(context.getMyself(), remoteEntity);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.