Datastar cleanup release - including changes to access permissions review and editing as well as fedora utilities.
This commit is contained in:
parent
e402b03ac9
commit
73172f4f40
9 changed files with 15 additions and 9 deletions
|
@ -195,7 +195,7 @@ public class ConfigurationProperties {
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* If the path fails to locate a file or a resource.
|
* If the path fails to locate a file or a resource.
|
||||||
*/
|
*/
|
||||||
private static InputStream getConfigurationInputStream(String configPath) {
|
public static InputStream getConfigurationInputStream(String configPath) {
|
||||||
InputStream inStream = null;
|
InputStream inStream = null;
|
||||||
|
|
||||||
// Try to find this as a file.
|
// Try to find this as a file.
|
||||||
|
|
|
@ -630,7 +630,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setup(OntModel model, ServletContext context) {
|
public void setup(OntModel model, ServletContext context) {
|
||||||
this.configurationStatus = "";
|
this.configurationStatus = "";
|
||||||
StringBuffer status = new StringBuffer("");
|
StringBuffer status = new StringBuffer("");
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,6 @@ public class MailUsersServlet extends VitroHttpServlet {
|
||||||
private String getSmtpHostFromProperties() {
|
private String getSmtpHostFromProperties() {
|
||||||
String host = ConfigurationProperties.getProperty("Vitro.smtpHost");
|
String host = ConfigurationProperties.getProperty("Vitro.smtpHost");
|
||||||
if (host != null && !host.equals("")) {
|
if (host != null && !host.equals("")) {
|
||||||
System.out.println("Found Vitro.smtpHost value is " + host);
|
|
||||||
//LOG.info("Found Vitro.smtpHost value of " + host);
|
//LOG.info("Found Vitro.smtpHost value of " + host);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("No Vitro.smtpHost specified");
|
System.out.println("No Vitro.smtpHost specified");
|
||||||
|
|
|
@ -57,12 +57,14 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
||||||
Map<String, ObjectProperty> uriToObjectProperty = new HashMap<String,ObjectProperty>();
|
Map<String, ObjectProperty> uriToObjectProperty = new HashMap<String,ObjectProperty>();
|
||||||
|
|
||||||
ObjectPropertyDaoJena opDaoJena = new ObjectPropertyDaoJena(getWebappDaoFactory());
|
ObjectPropertyDaoJena opDaoJena = new ObjectPropertyDaoJena(getWebappDaoFactory());
|
||||||
|
|
||||||
Resource ind = getOntModel().getResource(entity.getURI());
|
Resource ind = getOntModel().getResource(entity.getURI());
|
||||||
List<ObjectPropertyStatement> objPropertyStmtList = new ArrayList<ObjectPropertyStatement>();
|
List<ObjectPropertyStatement> objPropertyStmtList = new ArrayList<ObjectPropertyStatement>();
|
||||||
ClosableIterator propIt = ind.listProperties();
|
ClosableIterator propIt = ind.listProperties();
|
||||||
try {
|
try {
|
||||||
while (propIt.hasNext()) {
|
while (propIt.hasNext()) {
|
||||||
Statement st = (Statement) propIt.next();
|
Statement st = (Statement) propIt.next();
|
||||||
|
|
||||||
if (st.getObject().isResource() && !(NONUSER_NAMESPACES.contains(st.getPredicate().getNameSpace()))) {
|
if (st.getObject().isResource() && !(NONUSER_NAMESPACES.contains(st.getPredicate().getNameSpace()))) {
|
||||||
try {
|
try {
|
||||||
ObjectPropertyStatement objPropertyStmt = new ObjectPropertyStatementImpl();
|
ObjectPropertyStatement objPropertyStmt = new ObjectPropertyStatementImpl();
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class FedoraConfiguration {
|
||||||
|
|
||||||
private static String FEDORA_PROPERTIES = "/WEB-INF/fedora.properties";
|
private static String FEDORA_PROPERTIES = "/WEB-INF/fedora.properties";
|
||||||
|
|
||||||
private String fedoraUrl = null;
|
public String fedoraUrl = null;
|
||||||
private String adminUser = null;
|
private String adminUser = null;
|
||||||
private String adminPassword = null;
|
private String adminPassword = null;
|
||||||
private String pidNamespace = null;
|
private String pidNamespace = null;
|
||||||
|
@ -118,7 +118,7 @@ public class FedoraConfiguration {
|
||||||
this.configurationStatus += status.toString();
|
this.configurationStatus += status.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean canConnectToFedoraServer( ){
|
public boolean canConnectToFedoraServer( ){
|
||||||
try{
|
try{
|
||||||
FedoraClient fc = new FedoraClient(fedoraUrl,adminUser, adminPassword);
|
FedoraClient fc = new FedoraClient(fedoraUrl,adminUser, adminPassword);
|
||||||
String fedoraVersion = fc.getServerVersion();
|
String fedoraVersion = fc.getServerVersion();
|
||||||
|
|
|
@ -230,7 +230,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
//case where a form was passed as a http parameter
|
//case where a form was passed as a http parameter
|
||||||
form = formParam;
|
form = formParam;
|
||||||
}
|
}
|
||||||
|
System.out.println("Edit request dispatch - forwarding to form is " + form);
|
||||||
request.setAttribute("form", form);
|
request.setAttribute("form", form);
|
||||||
%>
|
%>
|
||||||
<jsp:forward page="/edit/forms/${form}" />
|
<jsp:forward page="/edit/forms/${form}" />
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
<%@page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
<%@page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
||||||
<%@page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.ModelChangePreprocessor"%>
|
<%@page import="edu.cornell.mannlib.vitro.webapp.edit.n3editing.ModelChangePreprocessor"%>
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
|
||||||
|
<%@ page import="java.net.URLDecoder" %>
|
||||||
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||||
|
|
||||||
<%-- 2nd prototype of processing.
|
<%-- 2nd prototype of processing.
|
||||||
|
@ -73,7 +75,7 @@ are well formed.
|
||||||
* we have to make a copy. */
|
* we have to make a copy. */
|
||||||
Map <String,String[]> queryParameters = null;
|
Map <String,String[]> queryParameters = null;
|
||||||
queryParameters = vreq.getParameterMap();
|
queryParameters = vreq.getParameterMap();
|
||||||
|
|
||||||
List<String> errorMessages = new ArrayList<String>();
|
List<String> errorMessages = new ArrayList<String>();
|
||||||
|
|
||||||
EditConfiguration editConfig = EditConfiguration.getConfigFromSession(session,vreq,queryParameters);
|
EditConfiguration editConfig = EditConfiguration.getConfigFromSession(session,vreq,queryParameters);
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginFormBean" %>
|
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginFormBean" %>
|
||||||
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
|
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
|
||||||
|
ENTITY merged props list
|
||||||
<%!
|
<%!
|
||||||
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.entity.entityMergedPropsList.jsp");
|
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.entity.entityMergedPropsList.jsp");
|
||||||
%>
|
%>
|
||||||
|
@ -59,6 +60,8 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
throw new Error("Subject individual must be in request scope for entityMergedPropsList.jsp");
|
throw new Error("Subject individual must be in request scope for entityMergedPropsList.jsp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("Entity Merged Props list for " + subject.getURI());
|
||||||
|
|
||||||
// Nick wants not to use explicit parameters to trigger visibility of a div, but for now we don't just want to always show the 1st one
|
// Nick wants not to use explicit parameters to trigger visibility of a div, but for now we don't just want to always show the 1st one
|
||||||
String openingGroupLocalName = (String) request.getParameter("curgroup");
|
String openingGroupLocalName = (String) request.getParameter("curgroup");
|
||||||
VitroRequest vreq = new VitroRequest(request);
|
VitroRequest vreq = new VitroRequest(request);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<%@ page import="org.apache.commons.logging.Log" %>
|
<%@ page import="org.apache.commons.logging.Log" %>
|
||||||
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
||||||
|
ENTITY merged props list ungrouped
|
||||||
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
|
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
|
||||||
<%!
|
<%!
|
||||||
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.entity.entityMergedPropsList.jsp");
|
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.entity.entityMergedPropsList.jsp");
|
||||||
|
@ -58,7 +58,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
if (subject==null) {
|
if (subject==null) {
|
||||||
throw new Error("Subject individual must be in request scope for dashboardPropsList.jsp");
|
throw new Error("Subject individual must be in request scope for dashboardPropsList.jsp");
|
||||||
}
|
}
|
||||||
|
System.out.println("Entity merged props list ungrouped for " + subject.getURI());
|
||||||
// Nick wants not to use explicit parameters to trigger visibility of a div, but for now we don't just want to always show the 1st one
|
// Nick wants not to use explicit parameters to trigger visibility of a div, but for now we don't just want to always show the 1st one
|
||||||
String openingGroupLocalName = (String) request.getParameter("curgroup");
|
String openingGroupLocalName = (String) request.getParameter("curgroup");
|
||||||
VitroRequest vreq = new VitroRequest(request);
|
VitroRequest vreq = new VitroRequest(request);
|
||||||
|
|
Loading…
Add table
Reference in a new issue