xploreraj / ytools Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
If two or more people are working on module information, and are saving it, then as per current basic implementation, the latest person's changes will be final, overwriting the previous saves.
We have to prevent that.
Probable solution:
A write buffer that merges different modules before final commit to file?
Presumptions:
Each user works on non-colliding submodules.
synchronizing read and write in DataService.
Issue 1: WRITE
Issue 2: READ
Multiple concurrent reads might lead to exception from file access.
Is there any chance of data file getting erased programmatically with Boon, as we are not accessing it with other means?
I think the contents got erased while reading empty file and mapping to ModulesData, or
with Module information present but Submodule name was null.
This will ensure that we no longer will need to manually run our App since it will reside on server.
Rather this project should be converted into REST with HATEOAS concept, so that creating or updating of data can also be done via REST clients.
And a super admin password ensures that we can manipulate normal admin/content creator password.
Creating new information on an empty file is leading to exceptions and not possible now. As of now, at least one module information has to be present in file, Else following problems occur:
Module.getSubModuleNames()
ModulesData.getModuleNames()
May 08, 2016 2:47:17 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [controller.AjaxController] in context with path [/theFaqApp] threw exception
java.lang.ClassCastException: org.boon.core.value.CharSequenceValue cannot be cast to data.ModulesData
at service.FAQReadWriteService.getModulesData(FAQReadWriteService.java:27)
at controller.AjaxController.doPost(AjaxController.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
should be part of submodules when its changed.
what about module name change?
\n
occurrences with <br>
in the info we display.Admin page (create_edit.jsp) should be moved into WEB-INF to prevent direct access and an authentication should be used.
/WEB-INF/admin/create-edit.jsp
To start with, a hard coded passkey.
To deliver files to client for read access and also prevent frequent file read access, we can store the contents on client side using localstorage (that can support up to 10 MB which will largely suffice).
This means the client requests will be served locally itself. An option to refresh the info will be added in JSP that should bring fresh data from server file and replace existing localstorage data.
While fetching data
java.lang.ClassCastException: org.boon.core.value.CharSequenceValue cannot be cast to data.ModulesData
at service.FAQReadWriteService.getModulesData(FAQReadWriteService.java:31)
In DataService::ModulesData getModulesData()
, we are returning modulesData
as null
if JSON file is empty and Boon
throws ClassCastException
while mapping with ModulesData.class
.
Q. What if we create an empty object and return. Then we also need to see dependencies of this method in AjaxController
where its being directly accessed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.