Package org.codelibs.fess.auth.chain
Class CommandChain
- java.lang.Object
-
- org.codelibs.fess.auth.chain.CommandChain
-
- All Implemented Interfaces:
AuthenticationChain
public class CommandChain extends Object implements AuthenticationChain
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCommandChain.InputStreamThreadprotected static classCommandChain.MonitorThread
-
Field Summary
Fields Modifier and Type Field Description protected StringcommandOutputEncodingprotected String[]deleteCommandprotected longexecutionTimeoutprotected intmaxOutputLineprotected String[]targetUsersprotected String[]updateCommandprotected FileworkingDirectory
-
Constructor Summary
Constructors Constructor Description CommandChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangePassword(String username, String password)voiddelete(User user)protected intexecuteCommand(String[] commands, String username, String password)protected booleanisTargetUser(String username)Userload(User user)voidsetCommandOutputEncoding(String commandOutputEncoding)voidsetDeleteCommand(String[] deleteCommand)voidsetExecutionTimeout(long executionTimeout)voidsetMaxOutputLine(int maxOutputLine)voidsetTargetUsers(String[] targetUsers)voidsetUpdateCommand(String[] updateCommand)voidsetWorkingDirectory(File workingDirectory)voidupdate(User user)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
update
public void update(User user)
- Specified by:
updatein interfaceAuthenticationChain
-
delete
public void delete(User user)
- Specified by:
deletein interfaceAuthenticationChain
-
changePassword
public boolean changePassword(String username, String password)
- Specified by:
changePasswordin interfaceAuthenticationChain
-
load
public User load(User user)
- Specified by:
loadin interfaceAuthenticationChain
-
isTargetUser
protected boolean isTargetUser(String username)
-
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)
-
-