Commit graph

121 commits

Author SHA1 Message Date
Jim Blake
b89dba1982 VIVO-862 add a filter to prevent Clickjacking. 2014-09-17 12:56:03 -04:00
Jim Blake
6e5bbaeef8 VIVO-848 Move the FileStorage system behind an interface
Add it to the Application framework, and do some cleanup.
2014-08-14 16:54:29 -04:00
Ted Lawless
6b72b39729 Change link to documentation for StartupManager. 2014-07-31 12:20:08 -04:00
Jim Blake
58148630ad VIVO-823 Replace RDFServiceSetup with RDFSetup
This introduces the RDFSource as a wrapper around an RDFServiceFactory and 2 ModelMakerFactorys.
This introduces ModelMakerUtils as a way to get the ModelMakers for context or for request.
Create implementations of RDFSource for SDB, TDB, and SPARQL.
The SDB implementation absorbs JenaPersistentDataSourceSetup and part of ConfigurationPropertiesSmokeTests,
which aren't needed unless we use SDB.

This is probably broken, without the subsequent changes.
2014-07-18 17:15:24 -04:00
Jim Blake
ea9d1e739d VIVO 746, at startup, remove obsolete Permissions from the user accounts model.
Also, get rid of UpdatePermissionSetUris, which supported the transition from 1.4 to 1.5.
2014-06-13 10:27:25 -04:00
Jim Blake
7cf03661d4 VIVO-773 guard against RDB data that has not been migrated. 2014-06-09 15:37:54 -04:00
Jim Blake
3a2930cdc6 VIVO-773 Update the JENA libraries and adjust to the changes
Replace the JAR files with more current ones.
Add a one-line change to BaseInfGraph (from the Jena source), so it will work with Pellet 2.3.1
Adjust all implementations of Graph to include new methods and remove old ones.
Add annotations and generics to reduce compiler warnings.
Remove all dependencies on RDB, which is no longer supported.
   This requires considerable refactoring of JenaIngestController, RDFUploadController, listModels.jsp
Refactor the ModelMaker uses
   Remove VitroJenaModelMaker,
   Revise VitroInterceptingModelMaker to be configurable for Config or Content models
Add debug logging code to ModelChangeImpl ChangeSetImpl, RDFServiceJena.
Add TDB support: RDFServiceFactoryTDB, RDFServiceTDB
   Refactor RDFServiceJena and RDFServiceSDB so much of the code can be reused by RDFServiceTDB
Accomodate two RDFService instances - one for Configuration models and one for Content models.
   Changes to RDFServiceUtils, RDFServiceSetup
   Configuration models use TDB directory in Vitro home directory
Handle bulk updating:
   Jena has deprecated bulk operations, and their models classes no longer use the bulk updaters
   Create a VitroModelFactory to use instead of the ModelFactory, when bulk updating is required.
   Create adapter classes: BulkUpdatingModel, BulkUpdatingOntModel, AbstractModelDecorator
Make the configuration model setup algorithms uniform
   Combine ApplicationModelSetup and UserModelSetup into ConfigurationModelsSetup
2014-06-01 18:23:21 -04:00
Jim Blake
1bb5153857 VIVO-742 Setup the Application properly, and guard against NPEs 2014-04-22 15:18:22 -04:00
Jim Blake
823848123f VIVO-742 Create SearchEngineSetup and SearchIndexerSetup 2014-04-22 15:18:15 -04:00
Jim Blake
8892da74b0 VIVO-731 Implement the SPARQL query API.
Create a base class for API controller servlets.
2014-04-15 13:36:47 -04:00
Jim Blake
de32d53791 VIVO-731 Replace SparqlQueryServlet with SparqlQueryController
SparqlQueryServlet was JSP-based, so delete the JSP also.
SparqlQueryController is Freemarker-based, and is a this shell around the SparqlQueryApiExecutor.
2014-04-14 12:19:48 -04:00
j2blake
245763e9e7 Make DeveloperSettings a singleton, and other improvements.
By making it a singleton, we do need an explicit Setup operation. However, it means that we can refer to the settings in client code that doesn’t have access to a request or to the ServletContext.

Other refactorings to simplify the logic or make it more scalable.
2014-01-04 14:22:29 -05:00
j2blake
03750cd669 VIVO-581 Add a diagnostic page 2013-12-10 11:37:47 -05:00
j2blake
60102fbf28 VIVO-530 Adjust SPARQL Update API 2013-11-26 16:02:52 -05:00
j2blake
0fce9f6a7b VIVO-541 First cut at the developer panel. 2013-11-17 11:52:18 -05:00
brianjlowe
aad1f023cc disabling knowledge base migration in plain vitro 2013-10-04 14:27:32 -04:00
hudajkhan
8d520895ac Merge branch 'develop' of https://github.com/vivo-project/Vitro into develop 2013-10-01 11:24:30 -04:00
hudajkhan
9fae5d7c3e updates for label management 2013-10-01 11:24:15 -04:00
Brian Caruso
dd2c9b8a7b Moving files to deal with vivo overrides. Adding permissions to pageList. VIVO-63 2013-09-30 16:30:41 -04:00
brianjlowe
500bb456c3 changing behavior of reasoning wrt migration 2013-09-20 15:41:45 -04:00
Brian Caruso
4c42128993 Merging with issue-vivo-101-sparqlupdate. Using develop licenser files that were in conflict. VIVO-255 VIVO-101 2013-08-28 11:37:50 -04:00
j2blake
d69bb824ac VIVO-274 move permission_config.n3 to rdf/auth/everytime
Get rid of the PermissionSetsLoader, keep the smoke tests.
2013-08-27 17:26:24 -04:00
Brian Caruso
19cf28da88 Fixing type with Sparql Update page permissions. VIVO-101 VIVO-63 2013-08-22 16:41:04 -04:00
Brian Caruso
e6c2596a35 Changing PageController to use permissions on pages. VIVO-63 Adding Permissions to display model. 2013-08-21 16:03:53 -04:00
Brian Caruso
7a431478cb Adding authorization to SparqlUpdate, changing name of SparqlUpdateTestDataGetter to SparqlUpdate. Adding AND to Actions 2013-08-21 13:01:13 -04:00
j2blake
f2312a4067 VIVO-248 Move more RDF files into the home directory
Files for initializing the display, displayTbox and displayDisplay models. Also restructure the RDFFilesLoader.
2013-08-21 11:27:29 -04:00
j2blake
2c5ce8c5ce VIVO-248 Move filegraph RDF files into the home directory 2013-08-20 15:25:57 -04:00
Brian Caruso
e6a7ad34d3 merging develop to issue-vivo-101-sparqlupdate 2013-08-19 16:21:16 -04:00
j2blake
3f061da006 VIVO-246 Re-implement the FreemarkerConfiguration
The Configuration must contain mutable information like the theme directory and the TemplateLoader. It must also be request-specific so it can have the correct Locale for language support. But we should only have one instance, so there is only one TemplateCache (alternatively, one TemplateCache per theme).

Previously, this was addressed by intercepting the Template processing and adding the request-based info to the Environment. However, this interception code needed to appear each time a Template was processed. This was sometimes overlooked, and at best introduced a bunch of duplicated code.

Instead, I extended the freemarker Configuration class to include a ThreadLocal that holds request-specific information.
2013-08-08 13:22:16 -04:00
tworrall
98bb7236d1 replaced reference to the sirceforge wiki with a reference to the duraspace wiki 2013-08-06 14:31:26 -04:00
Brian Caruso
463453111d Adding proof of concept SPARQL update VIVO-101 2013-07-19 13:49:02 -04:00
Brian Caruso
54f79f2ea7 Normalize line endings VIVO-101 2013-07-18 15:19:53 -04:00
j2blake
8f336b3505 VIVO-213 smoke test to check JVM temp directory
If it isn't set, if it isn't a directory, if we can't access it, if we can't create a temp file, complain.
2013-07-17 13:01:08 -04:00
Brian Caruso
7905b80df4 Adding initial search web service for updating uris. VIVO-98 2013-07-15 14:14:15 -04:00
j2blake
ed95df1637 VIVO-82 Merge the filters that set up VitroRequest models
VitroRequestPrep and WebappDaoFactorySDBPrep merge to RequestModelsPrep. WebappDaoFactorySparqlPrep goes away.
2013-06-06 17:28:45 -04:00
j2blake
416e98f5ab VIVO-82 Split WebappDaoSetup into ContentModelSetup and ModelMaker setup. 2013-05-16 16:42:57 -04:00
j2blake
6123f41d95 VIVO-87 First attempt at a caching filter.
Appears to work with Firefox cache and Chrome cache, except for language-dependent stuff.

Is that because it isn't configured correctly, or is it because Firefox and Chrome aren't attempting to keep more than one version of a page in their caches? Even if they do see a "Vary: Accept-Language" header?
2013-05-14 16:37:29 -04:00
j2blake
efdfaa9c8f directDownloadUrl should appear as a data property in the vitroPublic ontology. 2013-04-15 12:20:48 -04:00
j2blake
665a666b7f Remove <servlet-mapping> that have no matching <servlet> 2013-04-10 15:51:03 -04:00
j2blake
c53e53c526 VIVO-2 Fix the URIs of the JSTL taglibs. 2013-03-08 17:48:27 -05:00
j2blake
7c2de3a6f2 Clean up web.xml and create a unit test to keep it clean.
VIVO-19
2013-02-04 17:22:29 -05:00
j2blake
bb6b2fa970 VIVO-12 NIHVIVO-4011 Provide config and GUI for selecting Locale 2013-01-24 16:21:36 -05:00
hudajkhan
f26d353b1c Adding EditRequestAJAXController to web.xml
Also updating .gitignore so .build items don't show up
2012-11-09 09:49:09 -05:00
stellamit
945243377b update for NIHVIVO-3998 2012-10-19 22:23:25 +00:00
hjkhjk54
52314c4640 Updates for adding a data getter that executes a solr query to retrieve individuals for a specific vclass and returns the results - the default template is a copy of the individual list controller template - some code refactoring also breaks out some of the individual controller methods into solr query utils for potential further reuse. 2012-10-16 20:40:02 +00:00
j2blake
b4796c649a NIHVIVO-3209 Create two controllers: one will show the status of all living instances of VitroBackgroundThread (for system monitoring); the other will wait until they are idle (for Selenium tests). 2012-10-15 19:23:05 +00:00
j2blake
f491a7c95c NIHVIVO-3988 Change the handling of multiple root user accounts, and remove the back-door login mechanism. 2012-10-08 16:46:31 +00:00
tworrall
72d2cafc2a merging 10098 to the trunk 2012-10-05 17:39:36 +00:00
hjkhjk54
0b3d14ebab Updates for enabling the association of sparql queries with OWL classes and allowing the individual response builder to retrieve data (using data getters) and make that data available to the templates. Additionally, I'm adding a new data post processor that allows 'duplicate' results (or results with the same object uri for the main subject uri) to be returned - this relates to work being done by Frances for Vitro. This post processor will need to be explicitly included for it to be used. 2012-09-24 16:14:51 +00:00
hjkhjk54
b0f4e7e820 updates for page management and adding rdfs prefix to menu.n3 2012-08-20 19:26:32 +00:00