You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2014/12/21 18:28:55 UTC

svn commit: r1647181 - /manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp

Author: kwright
Date: Sun Dec 21 17:28:55 2014
New Revision: 1647181

URL: http://svn.apache.org/r1647181
Log:
Add notification connector tab output

Modified:
    manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp

Modified: manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp?rev=1647181&r1=1647180&r2=1647181&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp (original)
+++ manifoldcf/branches/CONNECTORS-1119/framework/crawler-ui/src/main/webapp/editjob.jsp Sun Dec 21 17:28:55 2014
@@ -698,6 +698,28 @@
 	
 %>
 
+<%
+	for (int j = 0; j < notificationConnectionNames.length; j++)
+	{
+		INotificationConnection notificationConnection = notificationMgr.load(notificationConnectionNames[j]);
+		if (notificationConnection != null)
+		{
+			INotificationConnector notificationConnector = notificationConnectorPool.grab(notificationConnection);
+			if (notificationConnector != null)
+			{
+				try
+				{
+					notificationConnector.outputSpecificationHeader(new org.apache.manifoldcf.ui.jsp.JspWrapper(out,adminprofile),pageContext.getRequest().getLocale(),notificationSpecifications[j],1+j,tabsArray);
+				}
+				finally
+				{
+					notificationConnectorPool.release(notificationConnection,notificationConnector);
+				}
+			}
+		}
+	}
+%>
+
 </head>
 
 <body class="standardbody">
@@ -1816,6 +1838,26 @@
 				}
 			}
 		}
+	}
+	
+	for (int j = 0; j < notificationConnectionNames.length; j++)
+	{
+		INotificationConnection notificationConnection = notificationMgr.load(notificationConnectionNames[j]);
+		if (notificationConnection != null)
+		{
+			INotificationConnector notificationConnector = notificationConnectorPool.grab(notificationConnection);
+			if (notificationConnector != null)
+			{
+				try
+				{
+					notificationConnector.outputSpecificationBody(new org.apache.manifoldcf.ui.jsp.JspWrapper(out,adminprofile),pageContext.getRequest().getLocale(),notificationSpecifications[j],1+pipelineConnectionNames.length+j,tabSequenceInt,tabName);
+				}
+				finally
+				{
+					notificationConnectorPool.release(notificationConnection,notificationConnector);
+				}
+			}
+		}
 	}
 
 %>