Examples of IAuditID


Examples of org.ow2.util.auditreport.api.IAuditID

        EZBEventBeanInvocation event = null;
        long number = 0;

        // Invocation ID
        IAuditID previousID = null;
        // Compute and send begin event only if required
        if (enabledEvent) {
            if (getCurrentInvocationID() != null) {
                previousID = getCurrentInvocationID().newInvocation();
            }
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

        EventBeanInvocationBegin event = new EventBeanInvocationBegin(source, params, securityContext, runAsMode);
        event.setStackTraceElements(Thread.currentThread().getStackTrace());

        // If audit ID propagation enabled, add current ID to the event
        if (this.currentInvocationID != null) {
            IAuditID id = this.currentInvocationID.getAuditID();
            if (id != null) {
                // Store value in event
                event.setKeyID(id.getID());
            }
        }

        return event;
    }
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

        boolean enabledEvent = !localCallRequest.isCalledFromRemoteRequest();

        EZBEventBeanInvocation event = null;
        long number = 0;

        IAuditID previousID = null;
        // Compute and send begin event only if required
        if (enabledEvent) {
            // Invocation ID
            if (getCurrentInvocationID() != null) {
                previousID = getCurrentInvocationID().newInvocation();
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

    public void send_request(final JClientRequestInfo jClientRequestInfo) throws IOException {
        // Get current ID
        ICurrentInvocationID currentInvocationID = CurrentInvocationID.getInstance();

        // Existing ID ?
        IAuditID localID = currentInvocationID.getAuditID();

        // If there is an ID, propagate it
        if (localID != null) {
            localID.increment();

            // Sends the current audit id object
            jClientRequestInfo.add_request_service_context(new AuditServiceContext(localID));
        }
    }
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

        // Check if a security context was received
        AuditServiceContext auditServiceContext = (AuditServiceContext) jServerRequestInfo
                .get_request_service_context(AuditServiceContext.AUDIT_CTX_ID);
        if (auditServiceContext != null) {
            // Gets Audit ID received by client
            IAuditID clientID = auditServiceContext.getAuditID();

            // Get current object
            ICurrentInvocationID currentInvocationID = CurrentInvocationID.getInstance();

            // If client ID is null, it will be seen as a new invocation
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

        } finally {
            Thread.currentThread().setContextClassLoader(oldClassLoader);
        }

        // Invocation ID
        IAuditID previousID = null;
        if (getCurrentInvocationID() != null) {
            previousID = getCurrentInvocationID().newInvocation();
        }

        // Dispatch the bean invocation begin event.
View Full Code Here

Examples of org.ow2.util.auditreport.api.IAuditID

                    + "@Local";
        boolean enabledEvent = !localCallRequest.isCalledFromRemoteRequest();

        EZBEventBeanInvocation event = null;
        long number = 0;
        IAuditID previousID = null;

        // Compute and send begin event only if required
        if (enabledEvent) {
            // Invocation ID
            if (getCurrentInvocationID() != null) {
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.