likely viewing page " + stripProtocol(originalReferer) );
- msgBuf.append("likely viewing page " + originalReferer );
- }
-
- msgBuf.append(lineSeparator + "
Comments:
" + lineSeparator );
- if (comments==null || comments.equals("")) {
- msgBuf.append("BLANK MESSAGE
");
- } else {
- msgBuf.append(""+comments+"
");
- }
- msgBuf.append("" + lineSeparator );
- msgBuf.append("" + lineSeparator );
-
- return msgBuf.toString();
-
- }
-
- private void writeBackupCopy(PrintWriter outFile, String msgText,
- String spamReason) {
- Calendar cal = Calendar.getInstance();
- outFile.println("
");
- outFile.println();
- outFile.println(""+cal.getTime()+"
");
- outFile.println();
- if (spamReason != null) {
- outFile.println("REJECTED - SPAM
");
- outFile.println(""+spamReason+"
");
- outFile.println();
- }
- outFile.print( msgText );
- outFile.println();
- outFile.println();
- outFile.flush();
- // outFile.close();
- }
-
- private void sendMessage(Session s, String webuseremail,
- String[] deliverToArray, String deliveryfrom, int recipientCount,
- String msgText)
- throws AddressException, SendFailedException, MessagingException {
- // Construct the message
- MimeMessage msg = new MimeMessage( s );
- //System.out.println("trying to send message from servlet");
-
- // Set the from address
- msg.setFrom( new InternetAddress( webuseremail ));
-
- // Set the recipient address
-
- if (recipientCount>0){
- InternetAddress[] address=new InternetAddress[recipientCount];
- for (int i=0; i -1
- || comments.indexOf("[/URL]") > -1
- || comments.indexOf("[url=") > -1
- || comments.indexOf("[URL=") > -1)) {
- return "The message contained blog link markup.";
- }
-
- /* if message is absurdly short, treat as blog spam */
- if (comments.length()<15) {
- return "The message was too short.";
- }
-
- return null;
-
- }
-}
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/NameStatementTemplateModel.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/NameStatementTemplateModel.java
index d00e5041f..f9d9480eb 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/NameStatementTemplateModel.java
+++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/NameStatementTemplateModel.java
@@ -2,26 +2,19 @@
package edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual;
-import java.util.List;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openrdf.model.URI;
import org.openrdf.model.impl.URIImpl;
-import com.hp.hpl.jena.rdf.model.Literal;
-
import edu.cornell.mannlib.vitro.webapp.auth.requestedAction.ifaces.RequestedAction;
-import edu.cornell.mannlib.vitro.webapp.auth.requestedAction.propstmt.DropDataPropStmt;
import edu.cornell.mannlib.vitro.webapp.auth.requestedAction.propstmt.EditDataPropStmt;
import edu.cornell.mannlib.vitro.webapp.beans.DataPropertyStatement;
import edu.cornell.mannlib.vitro.webapp.beans.DataPropertyStatementImpl;
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
-import edu.cornell.mannlib.vitro.webapp.dao.DataPropertyStatementDao;
import edu.cornell.mannlib.vitro.webapp.dao.IndividualDao;
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory;
-import edu.cornell.mannlib.vitro.webapp.dao.jena.WebappDaoFactoryJena;
import edu.cornell.mannlib.vitro.webapp.edit.EditLiteral;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.processEdit.RdfLiteralHash;