mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Publishing:
- abstracted asset id and url into a parent aspect (PublishingModel.ASPECT_ASSET) - Tidied Flickr service provider (coding standards) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29115 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,7 @@ import java.util.List;
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
|
||||
import org.alfresco.repo.publishing.PublishingModel;
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ParameterDefinition;
|
||||
import org.alfresco.service.cmr.repository.ContentReader;
|
||||
@@ -135,8 +136,9 @@ public class SlideSharePublishAction extends ActionExecuterAbstractBase
|
||||
{
|
||||
log.info("File " + name + " has been published to SlideShare with id " + assetId + " at URL " + url);
|
||||
}
|
||||
nodeService.setProperty(nodeRef, SlideSharePublishingModel.PROP_ASSET_ID, assetId);
|
||||
nodeService.setProperty(nodeRef, SlideSharePublishingModel.PROP_ASSET_URL, url);
|
||||
nodeService.addAspect(nodeRef, SlideSharePublishingModel.ASPECT_ASSET, null);
|
||||
nodeService.setProperty(nodeRef, PublishingModel.PROP_ASSET_ID, assetId);
|
||||
nodeService.setProperty(nodeRef, PublishingModel.PROP_ASSET_URL, url);
|
||||
|
||||
if (deleteContentFileOnCompletion)
|
||||
{
|
||||
|
Reference in New Issue
Block a user