Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.trace()


                SessionUtils.removeList(session, Constants.PENDING_ROLES_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending roles list");
                SessionUtils.addToList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getAvailableRoles());
            } else if (spiderForm.isRemoveClicked()) {
                log.trace("removing from pending roles list");
                SessionUtils.removeFromList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getPendingRoles());
            }

            return forward;
        }
View Full Code Here


        Subject user = LookupUtil.getSubjectManager().getSubjectById(userId);
        if (user == null) {
            throw new NullPointerException("User [" + userId + "] is not known");
        }

        log.trace("getting pending role list");
        int[] pendingRoleIds = ArrayUtils.unwrapArray(SessionUtils.getList(request.getSession(),
            Constants.PENDING_ROLES_SES_ATTR));
        for (int i = 0; i < pendingRoleIds.length; i++) {
            log.trace("adding role [" + pendingRoleIds[i] + "] for user [" + userId + "]");
        }
View Full Code Here

        log.trace("getting pending role list");
        int[] pendingRoleIds = ArrayUtils.unwrapArray(SessionUtils.getList(request.getSession(),
            Constants.PENDING_ROLES_SES_ATTR));
        for (int i = 0; i < pendingRoleIds.length; i++) {
            log.trace("adding role [" + pendingRoleIds[i] + "] for user [" + userId + "]");
        }

        try {
            LookupUtil.getRoleManager().addRolesToSubject(RequestUtils.getSubject(request), user.getId(),
                pendingRoleIds);
View Full Code Here

                pendingRoleIds);
        } catch (PermissionException pe) {
            RequestUtils.setError(request, "admin.role.error.StaticRole");
            return returnFailure(request, mapping, Constants.USER_PARAM, userId);
        } finally {
            log.trace("removing pending user list");
            SessionUtils.removeList(session, Constants.PENDING_ROLES_SES_ATTR);
        }

        RequestUtils.setConfirmation(request, "admin.user.confirm.AddRoles");
        return returnSuccess(request, mapping, Constants.USER_PARAM, userId, false);
View Full Code Here

        //        Integer sessionId = RequestUtils.getSessionId(request);
        //        PageControl pc = RequestUtils.getPageControl(request);
        ServletContext ctx = getServlet().getServletContext();
        //        AuthzBoss boss = ContextUtils.getAuthzBoss(ctx);

        log.trace("getting all users");

        //        PageList allUsers = boss.getAllSubjects(sessionId, pc);
        //
        //        // remove the role's owner from the list of users
        //        ArrayList owner = new ArrayList();
View Full Code Here

    public ActionForward workflow(ComponentContext context, ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {
        Log log = LogFactory.getLog(ViewRolesAction.class.getName());
        Subject user = LookupUtil.getSubjectManager().getSubjectById(RequestUtils.getUserId(request));

        log.trace("getting roles for user [" + user + "]");

        PageControl pc = WebUtility.getPageControl(request);

        PageList<Role> roles = LookupUtil.getRoleManager().findRolesBySubject(user.getId(), pc);
        request.setAttribute(Constants.USER_ROLES_ATTR, roles);
View Full Code Here

        Subject subject = user.getSubject();
        ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();

        PageControl pcAvail = WebUtility.getPageControl(request, "a");
        PageControl pcPending = WebUtility.getPageControl(request, "p");
        log.trace("available page control: " + pcAvail);
        log.trace("pending page control: " + pcPending);

        // first, get the pending resources (those that have been added to the RHS
        // pending resources are those on the right side of the "add to list" widget that are awaiting association with the group when the form's "ok" button is clicked. */
        log.debug("check session if there are pending resources");
View Full Code Here

        ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();

        PageControl pcAvail = WebUtility.getPageControl(request, "a");
        PageControl pcPending = WebUtility.getPageControl(request, "p");
        log.trace("available page control: " + pcAvail);
        log.trace("pending page control: " + pcPending);

        // first, get the pending resources (those that have been added to the RHS
        // pending resources are those on the right side of the "add to list" widget that are awaiting association with the group when the form's "ok" button is clicked. */
        log.debug("check session if there are pending resources");
        List<String> pendingResourceList = new ArrayList<String>();
View Full Code Here

     * Retrieve different resource metrics and store them in various request attributes.
     */
    public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {
        Log log = LogFactory.getLog(GroupConfigMetricsFormPrepareAction.class.getName());
        log.trace("Preparing group resource metrics action.");

        ActionForward fwd = super.execute(context, mapping, form, request, response);

        if (fwd != null) {
            return null;
View Full Code Here

        Integer groupId = addForm.getGroupId();

        PageControl pcAvail = WebUtility.getPageControl(request, "a");
        PageControl pcPending = WebUtility.getPageControl(request, "p");

        log.trace("available page control: " + pcAvail);
        log.trace("pending page control: " + pcPending);
        log.trace("getting group [" + groupId + "]");

        /*
         * pending resources are those on the right side of the "add to list" widget that are awaiting association with
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.