Class DirectoryChecker
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.core.impl.checker.DirectoryChecker
-
- All Implemented Interfaces:
ItemChecker
,Configurable
,LogEnabled
,Serviceable
public class DirectoryChecker extends AbstractLogEnabled implements Configurable, ItemChecker, Serviceable
Checks if the specified repository exists and optionally if the user has the writing rights
-
-
Constructor Summary
Constructors Constructor Description DirectoryChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(List<String> values)
Checks the validity of the parameters.void
configure(Configuration configuration)
void
service(ServiceManager sManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
DirectoryChecker
public DirectoryChecker()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
service
public void service(ServiceManager sManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
check
public void check(List<String> values) throws ItemCheckerTestFailureException
Description copied from interface:ItemChecker
Checks the validity of the parameters.- Specified by:
check
in interfaceItemChecker
- Parameters:
values
- the values to test- Throws:
ItemCheckerTestFailureException
- if the test failed
-
-