This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private def deployFiles(rootfile:File,filePath:String,progressLog: mutable.Buffer[String]):Unit={ | |
val sardine:Sardine = SardineFactory.begin() | |
if(rootfile.isDirectory)rootfile.listFiles().foreach{file:File => deployFiles(file,filePath,progressLog)} | |
else{ | |
val path = parentPath + rootfile.getPath.replace(filePath,"").replace("\\","/") | |
progressLog += s"Deploying file @ $path<br>" | |
try{ | |
if(MigrationProcessor.is_file(rootfile) && sardine.exists(s"http://${authorInfo.username}:${authorInfo.password}@${authorInfo.authorUrl.replaceFirst("http://", "")}${CRX_ROOT}$path")){ | |
sardine.put(s"http://${authorInfo.username}:${authorInfo.password}@${authorInfo.authorUrl.replaceFirst("http://", "")}${CRX_ROOT}$path",FileUtils.readFileToByteArray(rootfile)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pennwell.wcm.migrator.configuration | |
import org.springframework.context.annotation._ | |
import akka.actor.{ActorRef, ActorSystem} | |
import com.pennwell.wcm.migrator.service.{DirectorySyncActor, FolderReOrgActor,MigrationTracker, MigrationProcessingActor} | |
import javax.sql.DataSource | |
import org.springframework.jndi.JndiObjectFactoryBean | |
import java.lang.RuntimeException | |
import javax.naming.NamingException | |
import org.springframework.scala.jdbc.core.JdbcTemplate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pennwell.wcm.migrator.service | |
import com.pennwell.wcm.migrator.model.AuthorInfo | |
import org.slf4j.LoggerFactory | |
import java.io._ | |
import java.net.URL | |
import java.sql.DriverManager | |
import scala.collection.mutable | |
import java.util.Arrays | |
import com.google.common.io.Files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pennwell.wcm.migrator.service | |
import com.pennwell.wcm.migrator.model.AuthorInfo | |
import org.slf4j.LoggerFactory | |
import java.io._ | |
import java.net.URL | |
import java.sql.DriverManager | |
import scala.collection.mutable | |
import java.util.Arrays | |
import com.google.common.io.Files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pennwell.wcm.services.rss; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="f0a6a0fca8ea4a93a30681fe1d46cad7"><object type="application/x-shockwave-flash" data="http://c.brightcove.com/services/viewer/federated_f9?&width=480&height=270&flashID=myExperience_f0a6a0fca8ea4a93a30681fe1d46cad7&bgcolor=%23FFFFFF&playerID=2660322760001&playerKey=AQ~~%2CAAACa0igRDk~%2C4HJ74hz_HgvXniUNCLOWSn5VlVR-mmah&isVid=true&isUI=true&dynamicStreaming=true&%40videoPlayer=&templateLoadHandler=onPlayerLoaded&templateReadyHandler=brightcove%5B%22templateReadyHandlermyExperience_f0a6a0fca8ea4a93a30681fe1d46cad7%22%5D&templateErrorHandler=onPlayerError&includeAPI=true&wmode=transparent&htmlFallback=true&autoStart=&debuggerID=&originalTemplateReadyHandler=onPlayerReady&startTime=1379704890584" id="myExperience_f0a6a0fca8ea4a93a30681fe1d46cad7" width="480" height="270" class="BrightcoveExperience" seamlesstabbing="undefined"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="image"> | |
<a data-modal-title="${properties.imageTitle}" data-behavior="modal" href="${resource.path}.modal.html"><div class="contain"><div class="magnify"></div></div><img src="${imageProps.fileReference}" ${imageSize}/></a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BCLplayer; | |
var BCLexperienceModule; | |
var BCLvideoPlayer; | |
var BCLcurrentVideo; | |
//listener for player error | |
function onPlayerError(event) { | |
/* */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
//delete these --> | |
import actors.ApplicationActor | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.concurrent.Execution.Implicits._ | |
import play.api.libs.json.{JsValue, Json} | |
import akka.actor.{ActorRef, Actor, Props} | |
import play.api.libs.ws.WS |