Class ProfileUpdater


  • public class ProfileUpdater
    extends Object
    Created by alfonsovasquez on 14/6/16.
    • Field Detail

      • profile

        protected Profile profile
      • updateHelper

        protected org.craftercms.commons.mongo.UpdateHelper updateHelper
    • Constructor Detail

      • ProfileUpdater

        public ProfileUpdater​(Profile profile,
                              org.craftercms.commons.mongo.UpdateHelper updateHelper,
                              ProfileRepository profileRepository)
    • Method Detail

      • getProfile

        public Profile getProfile()
      • setUsername

        public void setUsername​(String username)
      • setPassword

        public void setPassword​(String password)
      • setEmail

        public void setEmail​(String email)
      • setVerified

        public void setVerified​(boolean verified)
      • setEnabled

        public void setEnabled​(boolean enabled)
      • setLastModified

        public void setLastModified​(Date lastModified)
      • setRoles

        public void setRoles​(Set<String> roles)
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
      • addAttributes

        public void addAttributes​(Map<String,​Object> attributes)
      • removeAttributes

        public void removeAttributes​(Collection<String> attributeNames)
      • setFailedLoginAttempts

        public void setFailedLoginAttempts​(int failedLoginAttempts)
      • setLastFailedLogin

        public void setLastFailedLogin​(Date lastFailedLogin)
      • update

        public void update()
                    throws org.craftercms.commons.mongo.MongoDataException
        Throws:
        org.craftercms.commons.mongo.MongoDataException