code: public void setStartView(String userName, String view) throws CmsException {
  
          try {
  
              CmsUser user = m_cms.readUser(userName);
              user.getAdditionalInfo().put(
                  CmsUserSettings.PREFERENCES
                      + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS
                      + CmsWorkplaceConfiguration.N_WORKPLACEVIEW,
                  view);
              m_cms.writeUser(user);
          } catch (CmsException e) {
              e.printStackTrace(System.err);
              throw e;
          }
      }
docs: Sets the start view for the given user.<p>
  
  @param userName the name of the user
  @param view the start view path
  
  @throws CmsException if something goes wrong