Package aim.domain.logging

Examples of aim.domain.logging.BlankPolicyAction


    @After("Pointcuts.blankPolicyOperationPointcut()")
    public void logBlankPolicyOperation(JoinPoint joinPoint) {
        final String userName = ((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername();
        final Object[] methodArgs = joinPoint.getArgs();
        final PolicySeries policySeries = (PolicySeries) methodArgs[FIRST_PARAMETR];
        final BlankPolicyAction action = new BlankPolicyAction(PosibleOperations.getMethod(joinPoint.getSignature().getName()), userName, policySeries.getPolicyType().getTitle(),
                policySeries.getSeries(), (Long) methodArgs[SECOND_PARAMETR], (Long) methodArgs[THIRD_PARAMETR]);
        logService.addLog(action);
    }
View Full Code Here


        final String userName = ((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername();

        final PosibleOperations method = PosibleOperations.getMethod(joinPoint.getSignature().getName());
        final Collection<BlankPolicyDTO> methodArgs = (Collection<BlankPolicyDTO>) joinPoint.getArgs()[FIRST_PARAMETR];
        for (BlankPolicyDTO blankPolicyDTO : methodArgs) {
            final BlankPolicyAction action = new BlankPolicyAction(method, userName, blankPolicyDTO.getPolicySeries().getPolicyType().getTitle(),
                    blankPolicyDTO.getPolicySeries().getSeries(), blankPolicyDTO.getFrom(), blankPolicyDTO.getTo());
            logService.addLog(action);
        }
    }
View Full Code Here

TOP

Related Classes of aim.domain.logging.BlankPolicyAction

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.