text
stringlengths 0
2.2M
|
---|
{
|
logger << ("Skipping controller extension mapping as it contains */regex function") << std::endl;
|
to = "";
|
}
|
if(to.find(".")==0)
|
{
|
logger << ("Skipping controller provide 'to' file extension without dot(.)") << std::endl;
|
to = "";
|
}
|
if(from.find("*")!=std::string::npos || from.find("regex(")!=std::string::npos)
|
{
|
logger << ("Skipping controller extension mapping as it contains */regex function") << std::endl;
|
from = "";
|
}
|
if(from.find(".")==0)
|
{
|
logger << ("Skipping controller provide 'from' file extension without dot(.)") << std::endl;
|
to = "";
|
}
|
if(from!="" && to!="")
|
{
|
ConfigurationData::getInstance()->mappingextObjectMap[name][from] = to;
|
logger << ("Adding Extension Mapping for " + from + " :: " + to) << std::endl;
|
}
|
}
|
}
|
}
|
}
|
/*else if(eles.at(apps).getTagName()=="authhandlers")
|
{
|
ElementList cntrls = eles.at(apps).getChildElements();
|
for (unsigned int cntn = 0; cntn < cntrls.size(); cntn++)
|
{
|
if(cntrls.at(cntn).getTagName()=="authhandler")
|
{
|
std::string url = cntrls.at(cntn).getAttribute("url");
|
StringUtil::trim(url);
|
std::string provider = cntrls.at(cntn).getAttribute("provider");
|
StringUtil::trim(provider);
|
std::string scope = cntrls.at(cntn).getAttribute("scope");
|
StringUtil::trim(scope);
|
if(url.find("*")!=std::string::npos || url.find("regex(")!=std::string::npos)
|
{
|
logger << ("Skipping authhandler as login url contains *regex function") << std::endl;
|
url = "";
|
}
|
if(url!="" && provider!="")
|
{
|
ConfigurationData::getInstance()->authHandlerObjectMap[name][url] = provider;
|
if(provider!="" && provider.find("class:")!=std::string::npos)
|
{
|
std::string clas = provider.substr(provider.find(":")+1);
|
Bean bean(name+clas,"",clas,scope,false,name);
|
ConfigurationData::getInstance()->ffeadContext.addBean(bean);
|
}
|
logger << ("Adding Authhandler for " + (name + url) + " :: " + provider) << std::endl;
|
}
|
}
|
}
|
}*/
|
else if(eles.at(apps).getTagName()=="filters")
|
{
|
ElementList cntrls = eles.at(apps).getChildElements();
|
for (unsigned int cntn = 0; cntn < cntrls.size(); cntn++)
|
{
|
if(cntrls.at(cntn).getTagName()=="filter")
|
{
|
std::string url = cntrls.at(cntn).getAttribute("path");
|
StringUtil::trim(url);
|
std::string clas = cntrls.at(cntn).getAttribute("class");
|
StringUtil::trim(clas);
|
std::string type = cntrls.at(cntn).getAttribute("type");
|
StringUtil::trim(type);
|
std::string scope = cntrls.at(cntn).getAttribute("scope");
|
StringUtil::trim(scope);
|
if(clas!="" && (type=="in" || type=="out" || type=="handle"))
|
{
|
normalizeUrl(name, url);
|
if(url=="")url="*.*";
|
ConfigurationData::getInstance()->filterObjectMap[name][url+type].push_back(clas);
|
if(clas!="")
|
{
|
Bean bean(clas,"",clas,scope,false,false,name);
|
ConfigurationData::getInstance()->ffeadContext.addBean(bean);
|
}
|
logger << ("Adding Filter for " + (name + url + type) + " :: " + clas) << std::endl;
|
}
|
}
|
}
|
}
|
else if(eles.at(apps).getTagName()=="templates")
|
{
|
ElementList tmplts = eles.at(apps).getChildElements();
|
for (unsigned int tmpn = 0; tmpn < tmplts.size(); tmpn++)
|
{
|
if(tmplts.at(tmpn).getTagName()=="template")
|
{
|
std::string clas = StringUtil::trimCopy(tmplts.at(tmpn).getAttribute("class"));
|
std::string url = StringUtil::trimCopy(tmplts.at(tmpn).getAttribute("path"));
|
std::string file = StringUtil::trimCopy(tmplts.at(tmpn).getAttribute("file"));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.