|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.services.iterator.FolderResourceConf
public class FolderResourceConf
This class is a the Configurable part of the FolderResource service. It enable to configure the folder to be crawled by usageContext or to reset configurations. The PoK of configuration:
InterfacesMappingSingleton| Constructor Summary | |
|---|---|
FolderResourceConf(ConfigurationBean configuration)
The constructor that takes as parameter the same bean than the queue manager to be associated with. |
|
| Method Summary | |
|---|---|
static java.io.File |
checkFolder(java.lang.String path,
java.lang.String usageContext)
Checks that the given path denotes an existing readable folder. |
org.ow2.weblab.core.services.configurable.ConfigureReturn |
configure(org.ow2.weblab.core.services.configurable.ConfigureArgs args)
|
java.lang.String |
readConfigPoK(java.lang.String usageContext,
org.ow2.weblab.core.model.PieceOfKnowledge conf)
Reads the PieceOfKnowledge in parameter to retrieve path to the folder to be crawled. |
org.ow2.weblab.core.services.configurable.ResetConfigurationReturn |
resetConfiguration(org.ow2.weblab.core.services.configurable.ResetConfigurationArgs args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderResourceConf(ConfigurationBean configuration)
configuration - The configuration used here.| Method Detail |
|---|
public org.ow2.weblab.core.services.configurable.ConfigureReturn configure(org.ow2.weblab.core.services.configurable.ConfigureArgs args)
throws org.ow2.weblab.core.services.InvalidParameterException,
org.ow2.weblab.core.services.AccessDeniedException,
org.ow2.weblab.core.services.UnexpectedException
configure in interface org.ow2.weblab.core.services.Configurableorg.ow2.weblab.core.services.InvalidParameterException
org.ow2.weblab.core.services.AccessDeniedException
org.ow2.weblab.core.services.UnexpectedException
public org.ow2.weblab.core.services.configurable.ResetConfigurationReturn resetConfiguration(org.ow2.weblab.core.services.configurable.ResetConfigurationArgs args)
throws org.ow2.weblab.core.services.InvalidParameterException,
org.ow2.weblab.core.services.UnexpectedException
resetConfiguration in interface org.ow2.weblab.core.services.Configurableorg.ow2.weblab.core.services.InvalidParameterException
org.ow2.weblab.core.services.UnexpectedException
public java.lang.String readConfigPoK(java.lang.String usageContext,
org.ow2.weblab.core.model.PieceOfKnowledge conf)
throws org.ow2.weblab.core.services.InvalidParameterException
usageContext - The usageContext send as parameter of the configuration.conf - The PoK that should contain the configuration.
org.ow2.weblab.core.services.InvalidParameterException - If no configuration has been found (linked with the service Uri) or if no folder to crawl is provided in this configuration.
public static java.io.File checkFolder(java.lang.String path,
java.lang.String usageContext)
throws org.ow2.weblab.core.services.AccessDeniedException
path - The path to check validityusageContext - The usageContext, used only for logging purpose.
org.ow2.weblab.core.services.AccessDeniedException - If the path does not exist, or is not readable or is not a directory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||