Examples of disableAttributes()


Examples of org.entando.entando.aps.system.services.userprofile.model.IUserProfile.disableAttributes()

        IUserProfile userProfile = (IUserProfile) this.getUserProfileManager().getProfileType(profileTypeCode);
        if (userProfile != null) {
          if (userProfile.getAttributeByRole(SystemConstants.USER_PROFILE_ATTRIBUTE_ROLE_MAIL) == null) {// Verifica che contenga l'attributo della mail
            ApsSystemUtils.getLogger().warn("Registration attempt with profile " + profileTypeCode + " missing email address");
          } else {
            userProfile.disableAttributes(JpUserRegSystemConstants.ATTRIBUTE_DISABLING_CODE_ON_REGISTRATION);
            this.setUserProfile(userProfile);
            this.checkTypeLabels(userProfile);
            allowed = true;
          }
        }
View Full Code Here

Examples of org.entando.entando.aps.system.services.userprofile.model.IUserProfile.disableAttributes()

 
  @Override
  public List<AttributeInterface> getSearcheableAttributes() {
    List<AttributeInterface> searcheableAttributes = new ArrayList<AttributeInterface>();
    IUserProfile defaultProfile = this.getUserProfileManager().getDefaultProfileType();
    defaultProfile.disableAttributes(JpaddressbookSystemConstants.ATTRIBUTE_DISABLING_CODE_ON_MANAGE_CONTACT);
    List<AttributeInterface> contentAttributes = defaultProfile.getAttributeList();
    for (int i=0; i<contentAttributes.size(); i++) {
      AttributeInterface attribute = contentAttributes.get(i);
      if (attribute.isActive() && attribute.isSearcheable()) {
        searcheableAttributes.add(attribute);
View Full Code Here

Examples of org.entando.entando.aps.system.services.userprofile.model.IUserProfile.disableAttributes()

 
  @Override
  public String createNew() {
    try {
      IUserProfile defaultProfile = this.getUserProfileManager().getDefaultProfileType();
      defaultProfile.disableAttributes(JpaddressbookSystemConstants.ATTRIBUTE_DISABLING_CODE_ON_MANAGE_CONTACT);
      Contact contact = new Contact(defaultProfile);
      contact.setOwner(this.getCurrentUser().getUsername());
      this.getRequest().getSession().setAttribute(SESSION_PARAM_NAME_CURRENT_CONTACT, contact);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "createNew");
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.