/** * Resets a users layout for all the users profiles * * @param personAttributes */ @BasePortalJpaDao.PortalTransactional public void resetUserLayoutAllProfiles(final IPersonAttributes personAttributes) { final IPerson person = PersonFactory.createRestrictedPerson(); person.setAttributes(personAttributes.getAttributes()); // get the integer uid into the person object without creating any new person data int uid = userIdentityStore.getPortalUID(person, false); person.setID(uid); final Hashtable<Integer, UserProfile> map = userLayoutStore.getUserProfileList(person); for (UserProfile profile : map.values()) { resetUserLayoutForProfileByName(person, profile); resetStylesheetUserPreferencesForProfile(person, profile); } }