Class CommandChain

java.lang.Object
org.codelibs.fess.auth.chain.CommandChain
All Implemented Interfaces:
AuthenticationChain

public class CommandChain extends Object implements AuthenticationChain
  • Field Details

    • workingDirectory

      protected File workingDirectory
    • maxOutputLine

      protected int maxOutputLine
    • executionTimeout

      protected long executionTimeout
    • commandOutputEncoding

      protected String commandOutputEncoding
    • updateCommand

      protected String[] updateCommand
    • deleteCommand

      protected String[] deleteCommand
    • targetUsers

      protected String[] targetUsers
  • Constructor Details

    • CommandChain

      public CommandChain()
  • Method Details

    • update

      public void update(User user)
      Specified by:
      update in interface AuthenticationChain
    • delete

      public void delete(User user)
      Specified by:
      delete in interface AuthenticationChain
    • changePassword

      public boolean changePassword(String username, String password)
      Specified by:
      changePassword in interface AuthenticationChain
    • load

      public User load(User user)
      Specified by:
      load in interface AuthenticationChain
    • isTargetUser

      protected boolean isTargetUser(String username)
    • executeCommand

      protected int executeCommand(String[] commands, String username, String password)
    • setWorkingDirectory

      public void setWorkingDirectory(File workingDirectory)
    • setMaxOutputLine

      public void setMaxOutputLine(int maxOutputLine)
    • setExecutionTimeout

      public void setExecutionTimeout(long executionTimeout)
    • setCommandOutputEncoding

      public void setCommandOutputEncoding(String commandOutputEncoding)
    • setUpdateCommand

      public void setUpdateCommand(String[] updateCommand)
    • setDeleteCommand

      public void setDeleteCommand(String[] deleteCommand)
    • setTargetUsers

      public void setTargetUsers(String[] targetUsers)