Publishing:

- Add latest gdata libs (1.45.0) with source code
 - cleaned the publishing context files out of the top-level application context
 - removed the notion of "content root" from publishing channels
 - added YouTube publishing channel with actions to publish and unpublish
 - added dummy channel types to ease UI development

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28575 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2011-06-24 14:40:10 +00:00
parent 6b987ab475
commit a6a4054f1e
26 changed files with 1356 additions and 106 deletions

View File

@@ -29,6 +29,7 @@ import org.alfresco.model.ContentModel;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.model.FileFolderService;
import org.alfresco.service.cmr.publishing.PublishingService;
import org.alfresco.service.cmr.publishing.channels.ChannelType;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
@@ -54,8 +55,6 @@ import org.springframework.transaction.annotation.Transactional;
@Transactional
public abstract class AbstractPublishingIntegrationTest
{
protected static final String environmentName = "live";
protected static final String channelTypeId = "MockChannelType";
@Resource(name="publishingObjectFactory")
@@ -83,12 +82,12 @@ public abstract class AbstractPublishingIntegrationTest
this.siteId = GUID.generate();
siteService.createSite("test", siteId,
"Test site created by ChannelServiceImplIntegratedTest",
"Test site created by ChannelServiceImplIntegratedTest",
"Site created by publishing test",
"Site created by publishing test",
SiteVisibility.PUBLIC);
this.docLib = siteService.createContainer(siteId, SiteService.DOCUMENT_LIBRARY, ContentModel.TYPE_FOLDER, null);
this.environment = (EnvironmentImpl) factory.createEnvironmentObject(siteId, environmentName);
this.environment = (EnvironmentImpl) factory.createEnvironmentObject(siteId, PublishingService.LIVE_ENVIRONMENT_NAME);
this.queue = (PublishingQueueImpl) environment.getPublishingQueue();
}
@@ -103,7 +102,6 @@ public abstract class AbstractPublishingIntegrationTest
ChannelType channelType = mock(ChannelType.class);
when(channelType.getId()).thenReturn(channelTypeId);
when(channelType.getChannelNodeType()).thenReturn(TYPE_DELIVERY_CHANNEL);
when(channelType.getContentRootNodeType()).thenReturn(ContentModel.TYPE_FOLDER);
return channelType;
}