Class ServerDirectoryPathAction
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.apache.cocoon.acting.AbstractAction
 - 
- org.apache.cocoon.acting.ServiceableAction
 - 
- org.ametys.plugins.serverdirectory.ServerDirectoryPathAction
 
 
 
 
 
- 
- All Implemented Interfaces:
 Component,LogEnabled,Serviceable,Action
public class ServerDirectoryPathAction extends ServiceableAction
Generate a subDirectories list from a query and a list of root paths from the configuration 
- 
- 
Field Summary
Fields Modifier and Type Field Description private SourceResolver_sourceResolverExcalibur's source resolver- 
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager 
- 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ServerDirectoryPathAction() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Set<Source>_getValidServerDirectories(String path)Look for valid directories inside of a path.Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidservice(ServiceManager smanager)- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_sourceResolver
private SourceResolver _sourceResolver
Excalibur's source resolver 
 - 
 
- 
Constructor Detail
- 
ServerDirectoryPathAction
public ServerDirectoryPathAction()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classServiceableAction- Throws:
 ServiceException
 
- 
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
 Exception
 
- 
_getValidServerDirectories
private Set<Source> _getValidServerDirectories(String path) throws ProcessingException
Look for valid directories inside of a path.- Parameters:
 path- The path. It can be incomplete and a partial path will be used to match multiple folders.- Returns:
 - a set of matching directories paths
 - Throws:
 ProcessingException- if an error occurs when retrieving the list of valid server directories
 
 - 
 
 -