Examples of searchId()


Examples of org.entando.entando.aps.system.services.userprofile.IUserProfileManager.searchId()

        AttributeInterface eMailAttr = prototype.getAttributeByRole(SystemConstants.USER_PROFILE_ATTRIBUTE_ROLE_MAIL);
        if (eMailAttr!=null) {
          EntitySearchFilter[] filters = {
              new EntitySearchFilter(IEntityManager.ENTITY_TYPE_CODE_FILTER_KEY, false, prototype.getTypeCode(), false),
              new EntitySearchFilter(eMailAttr.getName(), true, email, false) };
          usernames.addAll(profileManager.searchId(filters));
        }
      }
      return usernames;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getUsernamesFromEmail");
View Full Code Here

Examples of org.entando.entando.aps.system.services.userprofile.IUserProfileManager.searchId()

    List<Role> rolesWithSupervisor = ((IRoleManager) this.getRoleManager()).getRolesWithPermission(Permission.SUPERVISOR);
    List<String> roleNamesWithSupervisor = this.getRolesNames(rolesWithSupervisor);
    List<Role> rolesWithEditors = ((IRoleManager) this.getRoleManager()).getRolesWithPermission("editContents");
    List<String> roleNamesWithEditor = this.getRolesNames(rolesWithEditors);
    IUserProfileManager profileManager = (IUserProfileManager) super.getBeanFactory().getBean(SystemConstants.USER_PROFILE_MANAGER);
    List<String> usernames = profileManager.searchId(null);
    for (int i = 0; i < usernames.size(); i++) {
      String extractedUsername = usernames.get(i);
      List<IApsAuthority> userRoles = this.getRoleManager().getAuthorizationsByUser(extractedUsername);
      if (null == userRoles) {
        continue;
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.