mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -90,8 +90,6 @@ public class PublishingModelBuilder
|
||||
model.put(URL, getUrl(type));
|
||||
|
||||
model.put(CHANNEL_NODE_TYPE, type.getChannelNodeType().toString());
|
||||
model.put(CONTENT_ROOT_NODE_TYPE, type.getContentRootNodeType().toString());
|
||||
|
||||
model.put(SUPPORTED_CONTENT_TYPES, toListOfStrings(type.getSupportedContentTypes()));
|
||||
model.put(SUPPORTED_MIME_TYPES, type.getSupportedMimetypes());
|
||||
|
||||
|
@@ -231,7 +231,6 @@ public class PublishingRestApiTest extends BaseWebScriptTest
|
||||
String expUrl = "api/publishing/channelTypes/"+URLEncoder.encode(channelType.getId());
|
||||
check(URL, jsonType, expUrl);
|
||||
check(CHANNEL_NODE_TYPE, jsonType, channelType.getChannelNodeType().toString());
|
||||
check(CONTENT_ROOT_NODE_TYPE, jsonType, channelType.getContentRootNodeType().toString());
|
||||
|
||||
List<String> contentTypes = CollectionUtils.toListOfStrings(channelType.getSupportedContentTypes());
|
||||
checkStrings(jsonType.getJSONArray(SUPPORTED_CONTENT_TYPES), contentTypes);
|
||||
@@ -327,7 +326,6 @@ public class PublishingRestApiTest extends BaseWebScriptTest
|
||||
channelType = mock(ChannelType.class);
|
||||
when(channelType.getId()).thenReturn(channelTypeId);
|
||||
when(channelType.getChannelNodeType()).thenReturn(TYPE_DELIVERY_CHANNEL);
|
||||
when(channelType.getContentRootNodeType()).thenReturn(ContentModel.TYPE_FOLDER);
|
||||
channelService.register(channelType);
|
||||
return channelType;
|
||||
}
|
||||
|
Reference in New Issue
Block a user