72 Commits

Author SHA1 Message Date
Derek Hulley
9e7c10abd0 Fixed publishing tests to use public service beans ('ChannelService' and 'PublishingService')
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32275 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:52:52 +00:00
Gethin James
6b0b6187c6 FIXED : ALF-11051: publishing assets with comments not possible
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-17 11:29:58 +00:00
Gethin James
4c350ca0a0 FIXED : ALF-11400: Publishing - Incorrect behaviour of publishing permissions
Changed to a new publishedNode association


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31944 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-14 16:41:46 +00:00
Brian Remmington
7a03b10f26 Fixes ALF-9870: Improve publishing of content to SlideShare
- now uses only HTTPS to communicate with SlideShare.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-08 16:57:33 +00:00
Brian Remmington
b1b12be5eb Fixes ALF-10973: Failed to open 'Create Rule' page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-07 15:45:08 +00:00
Derek Hulley
80cce9c0f2 Merged DEV to HEAD
31489: Fix MT NodeRef translation in policy filter (ALF-10178)
   31452: Sync DEV branch with HEAD
      30312: Reintegrated HEAD
      30281: Comprehensive DEBUG logging to track behaviour enable/disable states for transactions
             - Part of ALF-10178: BehaviourFilter fails when nesting disable/enable calls
      30280: Fixed importer's use of behaviour filter
             - The change in the BehaviourFilter contract means that all disable calls must be matched
               with an equivalent enable call.  Enabling globally no longer wipes out vetos put in place
               by other code.
             - Part of ALF-10178: BehaviourFilter fails when nesting disable/enable calls
      30279: Removed unnecessary behaviour enablement checks is VersionService (ALF-10178)
      30278: Fixed behaviour re-enabling for StoreSelectorAspectContentStore (ALF-10178)
      30240: Fixed ALF-10178: BehaviourFilter fails when nesting disable/enable calls
             - Behaviour enable/disable now uses reference counting to check the state of different behaviour levels
             - Added unit test to test
             - Re-enabled test for ALF-10177: Test disabled: CheckOutCheckInServiceImplTest.testalfrescoCheckoutDoesntModifyNode
               but renamed to CheckOutCheckInServiceImplTest.testAlfrescoCheckoutDoesNotModifyNode
             - Going into DEV branch to run through tests
      30236: Branch for fixing BehaviourFilter nesting


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31619 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-01 16:07:11 +00:00
Brian Remmington
f9bd8d3405 Publishing: Hide "publish-content" from view in UI (at least until I can define a proper form for it)
Publishing: Improve "publish-content" action so it can handle folder nodes being actioned as well as content nodes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31368 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-10-20 07:28:50 +00:00
Brian Remmington
63e87a3388 Fixes ALF-10615: Channel names must be in correct case in Social Publishing UI
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-10-12 14:20:36 +00:00
Brian Remmington
b66a76f001 Publishing: Added "publish-content" action to provide easy access to the publishing service.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-10-07 17:13:47 +00:00
Brian Remmington
5514dd9bc2 Publishing: Corrected (or created) Javadoc comments for classes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30819 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-28 10:17:29 +00:00
Brian Remmington
2fd91d87c2 Fixed ALF-10333: Publishing: Multiple publishing events are processed sequentially rather than in parallel
Publishing: Remove some operations from the Channel and ChannelType interface that really shouldn't be exposed. Also removed the PublishingQueue interface - the two operations it had are now on the PublishingService.
WQS: Removed obsolete references to publishing channels.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30794 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-27 11:23:19 +00:00
Brian Remmington
646dd196af ALF-10402: PUB: Access tokens are not being stored in encrypted properties
- Corrected a previously missed a path through the code (used by SlideShare)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-22 16:41:39 +00:00
Brian Remmington
10abd069bc Fix ALF-10402: PUB: Access tokens are not being stored in encrypted properties
- NOTE: this fix means that any existing publishing channels in the repo will cease to work and will cause the publishing generally to have problems. If you have publishing channels in your repo then you must remove them following this fix. This can be done by either cleaning your repo out completely or deleting the node underneath "Data Dictionary/Publishing Root" (it has a UUID as its name).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-20 13:49:36 +00:00
Brian Remmington
2f08b645e6 ALF-10105: PUB: Improved handling of errors reported from Flickr service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30626 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-20 09:37:20 +00:00
Brian Remmington
c90ff1b526 Fix failing test: PublishingPackageSerializerTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30494 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-14 07:54:08 +00:00
Brian Remmington
b94e282177 Publishing: Tidied PublishingService and ChannelService interface to remove obsolete operations.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30437 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-12 15:38:47 +00:00
Gavin Cornwell
79093bd8ae Coding standards and consistency sweep across new services code in repository project.
Covers spacing, trailing {, @since tags, tabs and copyright headers.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30211 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-02 21:10:49 +00:00
Brian Remmington
999cdcb5bd Publishing: final config adjustments for each of the publishing channel types
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30100 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-26 14:55:36 +00:00
Frederik Heremans
578a58bbc8 ALF-9693: Social publishing now using the activiti process definition + fixed issue with activiti process without wait-state
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-26 07:52:20 +00:00
David Webster
41bf621c4d Social Publishing UI Updates:
- Adds 20px icons
   - AmericaniZes spellings
   - Adds extra messaging to publishing dialogue status update field.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29738 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-15 07:28:25 +00:00
N Smith
7b493bb3e6 Fixed unpublishing events.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29696 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-11 16:52:06 +00:00
N Smith
0b171e0f40 Implemented truncation of status update messages if they exceed the max status length for that channel.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-11 09:57:56 +00:00
N Smith
0dc8ed5929 Finished implementing Unpublishing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29625 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-09 11:01:23 +00:00
N Smith
9696a74002 Implemented Unpublishing of content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-07 15:42:23 +00:00
N Smith
ee66c4dab2 Fixed failing publishing tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29564 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-05 13:01:09 +00:00
Brian Remmington
7ceaf0a9b0 Merged BRANCHES/DEV/BRIAN/PUBLISHING to HEAD:
29482: Publishing:
   - Added support for LinkedIn status updates
 29486: Social Publishing UI Updates, including:
   - Dialogue: Complete UI rework
   - Publishing History: display of unpublish event support
   - Created Alfresco.util.toggleClass function
 29491: Publishing:
   - Added correct list of supported MIME types the the YouTube channel type
 29493: Publishing:
   - Added video/mp4 to YouTube supported MIME types
 29496: ChannelsGet now filters out channels that are not authorised. Added a space before the node URL on status updates. Extended unit tests to check behaviour for non-Admin users.
 29513: Adds specific http client libraries to prevent the mac falling back to it's buggy default implementation (which, e.g. doesn't send Content-Length headers if the content length is zero). Required for Flickr support (their publish API requires both a content length header and zero length content. It returns a 411 error using the default Mac libs).
 29534: Fixed PublishingEventsGet REST method. ChannelService getChannels() methods now support filtering by publish permissions.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-04 08:26:41 +00:00
N Smith
874a165cbb PublishingQueue.scheduleNewEvent() now includes a permission check to ensure user has 'Add CHild' access to the relevant Channels.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-28 16:15:42 +00:00
N Smith
a59ce355c4 Added permission checking to the various ChannelService.getChannel() methods. Only users who have 'Add Children' access to a channel node may see that channel.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29432 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-28 13:26:38 +00:00
N Smith
ed739a5b7e Refactored AbstractOAuth1ChannelType. Partially implemented LinkedInChannelType.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29425 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-28 10:30:06 +00:00
Brian Remmington
2baa73cf31 Publishing:
- Corrected error in Flickr channel authorisation following previous refactor.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-27 20:12:20 +00:00
David Webster
f1cac570e0 Latest channel icons from Linton (LinkedIn there in anticipation of channelType being created)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29410 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-27 16:29:46 +00:00
N Smith
a4127cc99f Updated the Javadoc on the Publishing Foundation API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-27 14:56:27 +00:00
Brian Remmington
1111cb6155 Publishing:
- Corrected content model for Twitter publishing channel type

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29384 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-27 10:16:05 +00:00
Brian Remmington
d5fe95520e Publishing:
- Added reauthorisation API for publishing channels
- Refactored OAuth1 channels to share common functionality (Twitter and Flickr)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-26 15:42:57 +00:00
N Smith
4be0baaeb3 Implemented channel.put Rest method for renaming channels. Also renamed publishing-events-for-node.get to publishing-events.get.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-25 15:06:14 +00:00
N Smith
a6d7fef35a Removed all references to Site from publishing REST API. Replaced publishing-events-query.post with publishing-events-for-node.get.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29301 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-25 09:30:08 +00:00
Brian Remmington
1546669ade Publishing:
- Return JSON status in response to authform.post
- Remove authstatus webscript 
- Add icon URL to channel type data on REST API
- Add authorise status to channel data on REST API
- Add delete channel to REST API
- Altered get icon operation on channel type so the required size can be specified freely (previously limited to known sizes)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29275 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-22 10:44:32 +00:00
N Smith
2c3c17229b Removed the siteId from all PublishingService and ChannelService methods. These services are no longer tied to a Share site.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-21 16:10:17 +00:00
Brian Remmington
e16e19e2c5 Publishing:
- Added initial icons to each of the supported channel types along with API (foundation and REST) to access them.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29249 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-21 12:39:18 +00:00
Brian Remmington
78d5cb0f42 Publishing:
- channels.post webscript now returns authCallbackUrl in addition to previous data

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29230 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-20 15:54:43 +00:00
Brian Remmington
9ac2599e9d Publishing:
- Flickr support for publish and unpublish

Fix ALF-9425: xml-apis.jar duplicates some classes from core JDK 1.6



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29216 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-20 11:35:27 +00:00
N Smith
b544f0effe Removed the Environment from the publishing implementation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-19 11:39:11 +00:00
Brian Remmington
83ed26170b Publishing: publishing a photo to Flickr now basically works.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-19 07:08:59 +00:00
Brian Remmington
628df31d04 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
2011-07-18 08:43:03 +00:00
Brian Remmington
bf72b07d8e Oh dear. Fixed the compilation error in a couple of tests from my last commit. Sorry.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-17 16:04:29 +00:00
Brian Remmington
dfa3e42072 Publishing:
- Finish support for posting status updates to Facebook

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-17 15:24:58 +00:00
Brian Remmington
aeb467a3d8 Publishing:
- Added start of the Flickr channel. Channel creation and authorisation is complete (written as a new Spring Social module). API not currently working.
- Fixed a problem with SlideShare API: it relies on the file extension to determine the type of the file, so needed to alter the way the files are sent.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29085 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-15 15:47:26 +00:00
N Smith
6bbd3b1684 Changed PublishEventProcessor so that it correctly updates the Publishing Status on the PublishingEvent node.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29042 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 15:41:11 +00:00
N Smith
812398be66 Fixing URL issues on publishing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 13:39:07 +00:00
N Smith
68956f2c48 Added UrlShortener interface/implementation. Included support for shortening of Urls generated through publishing of content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29014 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 09:11:04 +00:00