예제 #1
0
		public override void Transform(Engine engine, Package package)
		{
            this.Initialize(engine, package);
            //Initialize field processor from package variables
            FieldProcessor processor = new FieldProcessor();
            processor.Initialize(package);
            SearchData data = new SearchData(processor);
            if (this.IsPageTemplate)
            {
                UpdateFlaggedDcps(data.ProcessPage(this.GetPage()));
            }
            else
            {
                data.ProcessComponentPresentation(new Tridion.ContentManager.CommunicationManagement.ComponentPresentation(this.GetComponent(), this.GetComponentTemplate()),GetFlaggedDcps());    
            }
            SerializeAndPushToPackage(data);
		}
예제 #2
0
        public override void Transform(Engine engine, Package package)
        {
            this.Initialize(engine, package);
            //Initialize field processor from package variables
            FieldProcessor processor = new FieldProcessor();

            processor.Initialize(package);
            SearchData data = new SearchData(processor);

            if (this.IsPageTemplate)
            {
                UpdateFlaggedDcps(data.ProcessPage(this.GetPage()));
            }
            else
            {
                data.ProcessComponentPresentation(new Tridion.ContentManager.CommunicationManagement.ComponentPresentation(this.GetComponent(), this.GetComponentTemplate()), GetFlaggedDcps());
            }
            SerializeAndPushToPackage(data);
        }
예제 #3
0
 public SearchData()
 {
     _processor = new FieldProcessor();
 }
예제 #4
0
 public SearchData(FieldProcessor processor)
     : this()
 {
     _processor = processor;
 }
예제 #5
0
파일: SearchData.cs 프로젝트: jhorsman/SI4T
 public SearchData()
 {
     _processor = new FieldProcessor();
 }
예제 #6
0
파일: SearchData.cs 프로젝트: jhorsman/SI4T
 public SearchData(FieldProcessor processor)
     : this()
 {
     _processor = processor;
 }