<%@ page import="java.util.*" %> <%@ page import="revize.data.*,revize.db.*,revize.publish.*,revize.store.*,revize.request.*,revize.publish.request.*" %> <%@ page errorPage="/admincenter/error.jsp" %> <%@ include file="cacheControl.jsp" %> <%@ include file="/admincenter/authenticationCheck.jsp" %> Publish Engine Control <% String onoff = request.getParameter("onoff"); String webspace = request.getParameter("webspace"); boolean onoffValue = false; boolean isPublishing = false; DataStore store = null; if ( onoff != null && webspace != null ) { if(onoff.equalsIgnoreCase("reprofile")) { store = DataStoreFactory.createDefault(webspace); List stages = store.readStagesMapped(); Iterator itr= stages.iterator(); ReferenceFileProfiles refProf = new ReferenceFileProfiles(webspace); refProf.clear(); while (itr.hasNext()) { Stage stage=(Stage)itr.next(); System.out.println("stage="+stage.getID()); PublishChannelRequest req = new PublishChannelRequest(stage,8,webspace,false,false,true); req.processAny(); } %> Reference File Reprofiles for webspace "<%= webspace %>" is completed succesfully....... <% } else { onoffValue = Boolean.valueOf(onoff).booleanValue(); PublishingEngine.getInstance(webspace).setAcceptingPublishEvents(onoffValue); isPublishing = PublishingEngine.getInstance(webspace).isAcceptingPublishEvents(); %> Publishing for webspace "<%= webspace %>" is set to "<%=isPublishing%>" <% } %>

Run Again

<% } else { store = DataStoreFactory.createDefault(); List webSpaces = (List)store.readWebSpaces(); %>
WebSpace Name:
Publishing:
On
Off
Reprofile Reference Files
<% } %>