Package com.adito.core

Examples of com.adito.core.CoreEvent.addAttribute()


        CoreServlet.getServlet().fireCoreEvent(coreEvent);
    }

    private void fireUnsuccessfulEvent(RoleForm roleForm, SessionInfo sessionInfo, int eventId, Exception ex) {
        CoreEvent coreEvent = new CoreEvent(this, eventId, null, sessionInfo, ex);
        coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_PRINCIPAL_ID, roleForm.getRolename());
        CoreServlet.getServlet().fireCoreEvent(coreEvent);
    }
   
    private String[] updateUserRoles(Role role, List<String> selectedUsers, Realm realm) throws Exception {
        UserDatabase userDatabase = UserDatabaseManager.getInstance().getUserDatabase(realm);
View Full Code Here


                    MessageResources mrResourceType = CoreUtil.getMessageResources(session.getHttpSession(), permission
                                    .getResourceType().getBundle());
                    String resourceTypeName = mrResourceType.getMessage("resourceType."
                                    + permission.getResourceType().getResourceTypeId() + ".title");

                    coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_PERMISSION + Integer.toString(j), permissionName
                                    + " " + resourceTypeName);
                }
            }
            coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_ACCESS_RIGHT, getAccessRightType(session, accessRights
                            .getAccessRightsClass()));
View Full Code Here

                    coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_PERMISSION + Integer.toString(j), permissionName
                                    + " " + resourceTypeName);
                }
            }
            coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_ACCESS_RIGHT, getAccessRightType(session, accessRights
                            .getAccessRightsClass()));
            CoreServlet.getServlet().fireCoreEvent(coreEvent);
        } catch (Exception e) {
            CoreServlet.getServlet().fireCoreEvent(
                new ResourceChangeEvent(this, CoreEventConstants.UPDATE_ACCESS_RIGHT, session, e));
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.