Class CmsImportUserThread

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsImportUserThread​(CmsObject cms, java.lang.String ou, java.util.List<CmsUser> userList, java.util.List<java.lang.String> groups, java.util.List<CmsRole> roles, boolean sendmail)
      public constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getReportUpdate()
      Returns the part of the report that is ready for output.
      protected boolean isAlreadyAvailable​(java.lang.String userName)
      Checks if the given user name is already available inside the current ou.
      void run()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmsImportUserThread

        protected CmsImportUserThread​(CmsObject cms,
                                      java.lang.String ou,
                                      java.util.List<CmsUser> userList,
                                      java.util.List<java.lang.String> groups,
                                      java.util.List<CmsRole> roles,
                                      boolean sendmail)
        public constructor.

        Parameters:
        cms - CmsObject
        ou - ou name
        userList - List of user to import
        groups - groups to add user to
        roles - roles to add user to
        sendmail - send mail to user?
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
        See Also:
        Thread.run()
      • isAlreadyAvailable

        protected boolean isAlreadyAvailable​(java.lang.String userName)
        Checks if the given user name is already available inside the current ou.

        Parameters:
        userName - the user name to check
        Returns:
        true if the user name is already available, otherwise return false