GithubHelp home page GithubHelp logo

dantaframework / jahiadf Goto Github PK

View Code? Open in Web Editor NEW
6.0 9.0 4.0 182 KB

This package contained Danta Framwork's specific set of codes for Jahia Digital Factory.

License: GNU Affero General Public License v3.0

Java 100.00%
dantaframework jahia

jahiadf's People

Contributors

dhughes-xumak avatar jbarrera-xumak avatar jhernandez-xumak avatar nimsothea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jahiadf's Issues

Cleanup: JahiaConfigurationProviderImpl needs attention

  • Eliminate TODO comments.
  • Organize the code in more cohesive blocks: constants, fields, constructor, methods, inner classes.
  • It seems that this class is intended to support multiple modes, but this has lead to a large amount of duplicated checking and processing throughout the classes many methods. Consider abstracting mode-related behaviour out of the common behaviour, in order to separate types more cleanly.

See DantaFramework/AEM#11 for suggestions on that similar class.

There is a high degree of copied code between these two classed. Determine if it is possible to promote/abstract any common functionality to Core or another common project.

Context "list" not works properly

The last release 080917 the context "list" not works properly, actually we use this feature to create the Main Navigation component.

The following lines has the configuration for the xk-config-json file

{
"xk_componentCategory": [
"list",
"traversedList",
"pageDetails",
"getInternalExternalLink",
"jsonFormatProcess"
],
"xk_pathRefKeyName": "global.rootPath",
"depth": "2",
"xk_depthKeyName": "config.depth",
"xk_extraListPropertyNames": [
"hideInNav",
"subtitle"
],
"linkInternalExternalProperties": [
"global.socialLinkList"
],
"jsonFormatProperties": [
"list.pages",
"global.socialLinkList"
]
}

Lists context not working anymore

The lists CPs seem to stop working, at least in my instance. The method for converting weakreferences to URLs is not recognizing the workspace (edit, live) anymore so that the URLs generated by the traversed and curated CPs are just empty strings. The problem it is not in the lists CPs themselves, but in this method:

  • ResourceUtils.getResourceNodePath

which is used to translate weakreferences (resource IDs) to URLs. In edit mode, this method returns the URLs as if they were browsed from a page in live mode.

This is very weird because it works perfectly in LayerX version and the code looks the same. I am not sure if this is happening only in my instance or if it is a bug that resulted from the migration to Danta.

TemplatingSupportFilter is not used

Code has been commented out, and there are no usages of this class.

/*
LOG.info(LOG_PRE +"** Templating Suppport Filter BEGINS **: ");
ScriptEngineManager mgr = BundleScriptEngineManager.getInstance();
List<ScriptEngineFactory> factories = mgr.getEngineFactories();
for (ScriptEngineFactory factory : factories) {
LOG.info(LOG_PRE +"ScriptEngineFactory Info");
String engName = factory.getEngineName();
String engVersion = factory.getEngineVersion();
String langName = factory.getLanguageName();
String langVersion = factory.getLanguageVersion();
LOG.info(LOG_PRE +"\tScript Engine: {} ( {} )", engName, engVersion);
List<String> engNames = factory.getNames();
for(String name : engNames) {
LOG.info(LOG_PRE +"\tEngine Alias: {}", name);
}
LOG.info(LOG_PRE +"\tLanguage: {} ( {} )", langName, langVersion);
LOG.info(LOG_PRE + " Extensions: {} ", factory.getExtensions() );
}
LOG.info(LOG_PRE +"---- Templating Support Filter END ----");
*/

Update exported packages

Currently all packages in the danta.jahia (danta.jahia.) bundle are being exported, only the following packages should be exported:
danta.jahia.contextprocessors.
, danta.jahia.services and danta.jahia.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.