I am doing migration from 2011 sp1 HR1 to 2013 sp1. In 2011 Sp1 HR1 version I have developed the custom deplorer by extending "ComponentPresentationDeployBase" class provided by Tridion. In the custom deplorer we are fetching components Meta information using below code.
Included Java file:
package com.*.*.deployer.extensions;
import com.tridion.broker.HomeFactory;
import com.tridion.broker.components.meta.ComponentMetaHome;
import com.tridion.meta.ComponentMeta;
static ComponentMetaHome componentHome = null;
static
{
componentHome = (ComponentMetaHome) HomeFactory.findHome("ComponentMeta");
}
public void postProcessComponentPresentation(ComponentPresentation
componentPresentation, File comPresentationFile)
{
//get the component metadata using the Broker API
componentMeta = componentHome.findByPrimaryKey(getPublicationId(),getComponentItemId());
}
When try to build same code using new tridion 2013 SP1 jar's provided by tridion, Getting below error. However same code working fine for 2011 sp1 JAR's.
The import com.tridion.broker.HomeFactory cannot be resolved The import com.tridion.broker.components.meta.ComponentMetaHome cannot be resolved The import com.tridion.meta.ComponentMeta cannot be resolved
According to the 2013 SP1 upgrade manual, some classes have moved to different jars.
So how can I get the respective jars or solve this error for below classes?
- Import com.tridion.broker.HomeFactory;
- import com.tridion.broker.components.meta.ComponentMetaHome;
- import com.tridion.meta.ComponentMeta;