3093 Commits

Author SHA1 Message Date
Nick Burch
d0fa96a05e Tweak scheduling tests - only have quartz firing for the tests that need it, avoid it for the others so as not to confuse things (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22095 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 15:56:53 +00:00
Nick Burch
1136abdeac Start tracking when scheduled persisted actions run, so we can tweak the next run times at startup (ALF-4505)
Note - some tests broken, commit needed for Derek to investigate these


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 14:57:54 +00:00
Nick Burch
ef8bfe2f7c When an action is marked as pending, it shouldn't have a started execution at time yet (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 13:43:55 +00:00
Roy Wetherall
c3816c2493 Merge from BRANCHES/DEV/WCMQUICKSTART to HEAD
20956: Creating new branch from $FROM
   20957: Checked in WCM Quick start module project
   20958: Checked in WCM Quick Start share module
   20959: WCM quick start web app
   20961: Update module project to use Alfresco projects
   20972: WCM Quick Start:
			- build amp
			- Get resource by name (on section)
			- Get resource by path (on website)
   20980: WCM Quick Start:
			- Updated model
			- Updated behaviour to create section index page
			- Re exported ACP with updated sample data
			- Added method to get section index page to Section
			- getResourceByPath returns index page when section path given
			- getResource (on Section) returns index page when null resource name given
			- Updated unit tests
   21001: Test access
   21007: Modified API to support webscripts
   21014: JDK 1.6 required so changed project settings
   21015: Spring MVC and css/js code for initial home page work
   21016: Global components for home page
   21017: Config changes for home page
   21018: Page, template and components for home page
   21019: My classpath works so checking in
   21020: I can only get the home page working when the dtd error is there. Need to work out why...
   21023: ok this one works...
   21048: Fixed weird spring surf errors
   21049: Tweak to support M3
   21050: Fixed code styling to Alfresco standard and added Alfresco copyright notice
   21072: Content collections:
			- Content model
			- "collections" folder in each section
			- related model behaviours
   21074: Partially completed getCollection and added CMIS session pool and session interceptor for Spring controllers
   21091: Added skeleton of the API needed for the first search feature (F.26)
   21095: API changes post review 
   21103: Changes as a result of API design review
   21104: Fixed compilation error
   21107: Added getRelatedResource methods
   21113: Got code compiling after API changes
   21120: Fixed UI to work with new API
   21123: Remove unwanted, unlicensed images
   21140: Dynamic collection support.
   21143: Added image controller and view
   21144: Trunk of Spring Surf required for component properties defined at page level
   21148: Added section tracking to web assets.
   21149: Added object id encoder and tidied up names a bit
   21153: Skeleton of a couple of object factories
   21179: Added section factory
   21184: Fixed section fetching a bit
   21185: Allow title to be used for menu.
   21187: Added SectionFactoryTest
   21193: Added the beginnings of a search page
   21198: Moved dummy getCollection into CollectionFactory. Next the real thing...
   21214: Quite a large refactor of all things related to pages, assets, and resources in general.
   21215: Updated ACP file with corrected index pages.
   21228: Added 404 and 500 pages
   21229: Added 404 page
   21230: Removed files
   21231: Added missing file
   21232: Replaced port number
   21234: Check in changes merged with Brian's
   21241: Adding pages
   21245: Fixed code so that unit tests pass and fixed tests a bit too.
   21246: Fixed naming and wiring probs
   21251: Remove spurious file
   21252: Include relationships when retrieving assets over CMIS.
   21259: Added collection factory
   21260: Replaced deleted file. Will do rename after Roy's commit.
   21265: getRelationships works without join. Checking in before I replace this code with webscript call.
   21269: Save notes in svn for safety
   21270: Save notes in svn for safety
   21273: Completed first stab at the search API.
   21286: Initial attempt at collection web service client
   21287: Tidying up collection code a bit so the ui can run with some dummy data
   21288: Change to webscript due to java name changes
   21289: Check-in of omitted new classes.
   21291: WCM Quick start:
			- ws:pageIndex type added
			- ws:page aspect removed and is not longer applied
			- ACP updated
			- getTemplate() method added to section on client
			- getTemplate() method added to asset on client
			- data retrieved to support above methods
   21296: Added an article type and an image type to the model with appropriate Explorer client config.
   21299: Remove unnessesary SectionImpl class and rename SectionBaseImpl class.
   21311: Asset collection web script
   21334: Finished search ui and did a big tidy up of the Spring MVC config etc.
   21336: Renaming and splitting config file as it is now too big and messy
   21337: Checking in tidied up config file. Other beans are now defined in sister config files.
   21345: Replaced image and thumbnail getters with nasty map getter. Did try adapter pattern with a lazy loading map but freemarker clones maps so this didn't work. An alternative would be to use a freemarker class which wraps the asset to get the values.
   21348: Added menu ordering
   21349: Asset streaming classes given generic names
   21354: Prevent collection folders from being down cast as sections when copied
   21355: Check in test data
   21356: Fixed collection code
   21360: WCM Quick Start Share AMP
			  - share AMP project created
			  - ant tasks added
			  - form config for wcm quick start model available
   21378: Check in changes for generating URLs
   21385: Added article1 text
   21386: Added article template
   21401: Tidy up brackets and comments
   21409: Changed Spring MVC code to work better with Surf. The code now prevents Surf responding to page template urls entered in the browser. An attempt to retrieve asset by path is not now made in the case of short URLs. Where a short URL is entered for an asset with a template a 301 to the full url is performed. index.html 301s to the section/ path to avoid duplicate urls. 404 is returned sooner within the request processing.
   21411: End / needed
   21413: Added site title and description for meta data
   21414: Started sorting out page head section
   21424: Added related articles box
   21427: Split out footer
   21433: Added news section page
   21438: Added first stab at API to post and retrieve feedback on web content.
   21446: Improved collection queries and added logo
   21448: Added More News, ability to get logo from repository and tidied up pages and templates
   21449: Fixed title that I just broke
   21450: Fixed site query to include title and desc
   21451: Moved style into head where it belongs
   21452: Changed search to operate across whole site
   21453: Clear search field on focus
   21454: Fixed 404 status
   21456: Fixed 404 page
   21457: Added 404 page article under webroot
   21466: Added start of blog list and blog detail pages
   21473: View latest 10 news items
   21474: Added start of comments display section
   21475: Tidied up setting of model properties
   21476: Tidied up setting of model
   21481: Put date format etc in property file
   21483: Fixing test....
   21484: Added processing of feedback so that assets are periodically updated with their comment count and average rating.
   21491: Updated bean name
   21493: Changed published date into published time and added an availability processor that automatically sets / resets a flag as an asset becaomes available and expires.
   21497: Fixed up blog test data
   21498: Small fix to published time
   21515: Added support for tags on assets.
   21521: Visitor feedback now comes back with the time it was created.
   21526: WCM QS rendition support
   21527: WCM QS: Remove order field from web root form
   21540: Added comment form and changed display of comments to show post date/time.
   21544: Added comment count display and links
   21550: Added display of tags on article
   21551: Added beginnings of moderation
   21552: Feedback is now placed in a data list which is created if it doesn't already exist.
   21559: WCM QS collection support:
		  - error handling
		  - isDynamic property
		  - lucene support
		  - dynamic query place holders
   21561: Fixed tests
   21564: WCM QS:
		  - added module global properties
		  - changes to feedback behaviours
   21576: Added author aspect to the webasset aspect and "exclude from navigation" flaf on a section.
   21595: Added "excludeFromNavigation" flag on form for ws:section
   21599: Use asterisk for mandatory field
   21600: Made email address mandatory
   21601: Improve url validation
   21602: Added email address message
   21604: Exclude sections from nav if flagged
   21605: Added pagination to blog list
   21610: Added some debug messages
   21612: Added expire header to streamed images.
   21618: Avoid re-sending streamed images if unchanged.
   21632: Updates to web app notes
   21636: Use modification date for 304 check
   21638: Added support for renditions in website API.
          Added support for tag-based queries in website API		  
   21639: Added dist to the ignore list
   21640: Fixed error in spring config for the Feedback Processor
   21642: Removed unused images
   21643: Changed war file name and hence context
   21647: WCMQS: First checkpoint of code and config to deal with publishing.
   21654: A few little bits of tidy-up made during review.
   21656: Added publication details
   21657: Surf and Open CMIS now provided within lib folder of webapp
   21667: Corrected code that calculates a web asset's parent sections.
          Corrected FeedbackProcessor so that "runAs" wraps around the transaction rather than vice versa.
          More work on the publishing logic (not complete)
   21692: WCM QS:
		  - added web app context to web root type
		  - updated ACP (web app context and web root name)
		  - text content in section automatically specialised to article
		  - fixed issue with redition config not working in Share
		  - added rendition definitions for mediumThumbnail and flashPreview
		  - added share config for specialise types
		  - added share i18n property file
   21693: WCM QS: added web script to load test web site data into a specified site's docLib
   21701: Added a test on content update to check that the node exists.
   21704: WCM QS - make sure checked out documents are not auto renditioned
   21723: WCM QS:
		  - site dashlet to load web site test data into a site
		  - fixes to rendition bootstrap (incremental bootstrap, correct type conversion)
   21745: Checkpoint for Quick Start publishing. Still more to do, but basics working.
   21768: Second checkpoint for publishing. Nearly complete. Just publishing of deletes left to go.
   21778: - Removed recursion from SiteIdQueryParser#getSite
		  - Improved reliability and reduced size of Section and VisitorFeedback behaviours
		  - Pre-compile the regex used in the Asset Collection queryPattern
		  - Fixed up all the tests in the Alfresco module
   21779: WCM QS:  added ant task to build web app
   21780: WCM QS: Correct "provided" dependencies to be "system" dependencies, specifying the systePath to the provided jar's
   21781: WCM QS:  revert changes to POM
   21793: WCMQS
		- Publish of deletes now working. Note that, due to a fault the transfer service in 3.3c, 3.3.0, and 3.3.1 (ALF-4333), there is a workaround in here that is applied only if running on these versions.  
   21794: Added "assemble" folder to svn:ignore list
   21796: Correction to last commit
   21797: Changed OpenCMIS version to 0.1.0
   21798: Added support for specifying a type for a given piece of visitor feedback.
   21805: 
   21806: 
   21817: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21818: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21819: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21820: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21821: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21822: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21823: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21824: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21825: Added some improvements to error handling and beginnings of publications and publication details pages. All unfinished.
   21826: Remove test code
   21841: More work on publications and contact form
   21848: WCM QS:
		  - refactored context parsers to be reusable (was query parsers)
		  - Office documents placed within a section are renditioned to PDF and the rendition is made the web asset
   21849: WCM QS:
		  - readContact process definition
		  - workflow started when a feedback object or type "contact request" is created
		  - NOTE: currently assignes task to admin, todo change this to configuration on web root
   21850: Completed contact us page
   21857: Added license files
   21858: Web previewer working but needing a little tidying up
   21859: Remove unused files
   21860: Added AWE jars to web app project
   21861: WCM QS:
		  - addded feedback config property to website
		  - when feedback created, user to route workflow to comes from feedback config
		  - context parser added for ${siteowner} which can be used in feedback config
		  - consolidation of repeated code in site helper
		  - form config for image type
		  - unit test updates
   21862: WCM QS:
		  - added support for composite rendition definitions to be bootstraped from Spring 
		  - bootstraped rendition definitions are now cleared rather than updated on restart
		  - mediumThumbnail defintion changed to composite one
		  - units test to prove jpeg->jpeg, pdf->jpeg, doc->autopdf->jpeg all work with appropraite rendition config on section
   21865: Replace deleted file
   21866: Move files modified in wrong place
   21867: Not needed here
   21868: Removed changes made in wrong place
   21870: Finished thumbnail and preview pages
   21871: Fix to html
   21872: Preview images as a scaled image
   21875: Added error handling, removed max button etc.
   21876: Some tidying up of code
   21877: Some tidying up of code
   21884: WCM QS:
		  - Added required rendition definitions for root, news and publications.
		  - Ensure that types mapped to renditions worked correctly (includes picking up subtypes and dealing with multiple type and subtype matches)
		  - Ignore zero length content when renditioning (was causing failure and roll back since index pages are created with zero content)
		  - Unit tests
		  - Update test structure and reexport ACP with redition configuration placed on root, news and publications
		  - Fall out from integration testing using Share
   21885: Added example pdfs and an image to the publications section and a content.html to the root
   21886: Changed image properties
   21894: Updated license file
   21915: Checking in web editor code so far and some code tidying
   21917: Added publication sub-pages
   21936: Web editor
   21937: Removed server name
   21947: Fix to web editor compilation problem
   21948: Added collection for news sub-section related articles. Also changed dynamic queries to use sectionid parameter in the query instead of a hard-coded node reference.
   21949: Added home page featured section data
   21950: WCM QS: Dashlet shows link to help when test data has been loaded
   21951: WCM QS: featuredNewsThumbnail added
   21952: WCM QS:
     		  - Refactor of renditioning behaviour to allow its easier reuse
			  - Addition of web script that updates all the renditions configured within a website, clearing and regenerating on all webassets
			  - Update of web site data ACP with renditions added
   r2956: Added featured boxes at bottom of home page, tidied up url handling and added an rss controller
   21957: Added tags to wide list used on publication sub-section pages
   21962: Added code to report feedback
   21964: WCM QS:  Updated help URL
   r2966: Added link from tag to search within section
   21967: Fixed search link
   21969: Checked in web editor war file matching jars used
   21971: Tidied up freemarker code
   21972: Replaced with two-block
   21975: Check in images for ben
   21977: Check in export taken from correct folder
   21978: Changed freemarker to use rendition images
   21997: WCMQS: implement getTags for site section
			- addition of List<Tag> getTags on Section (for retrieving top tags ordered by popularity)
			- performance improvement in TaggingService.getTagScope(NodeRef nodeRef)
			- TODO: tests, when I work out how to test web site model
   22003: A few small changes to the data
   22004: Initial attempt at tidying css
   22005: Fix d:number in webSiteModel.xml.
   22008: Fixed class cast exception
   22010: Added tag list component and did a bit more work on the exception handling
   22012: Removed dotted border from menu
   22022: Corrected tag counts
   22024: Checked in tag corrections
   22032: Some small improvements
   22045: Fixed unit tests
   22050: Added descriptions to pages
   22051: Corrected typo
   22057: Removed Surf, CMIS and dependencies from WEB-INF/lib and added just Surf and CMIS to project repo
   22060: WCM QS:
			- contactUs workflow fixes
			- action added to preview web asset
   22061: WCM QS:
			- Added a couple of missing template overrides for creation of content
			- Checked in ground work for "New Article" button, but it's not wired in yet



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 05:14:49 +00:00
Derek Hulley
49e20b142d Fixed ALF-4512: MLText and NULL storage problems
- Synchronizing the cached values with the low-level DB keys had problems for some use-cases
   - Switching from null ML value in default locale (real null) to null value in a specific locale
   - Switching from d:any empty array to d:any empty array of empty arrays
   - other odd cases
 - Refactored the differencing code to do high-level differences
   - This makes it easier to take care of the switches between properties states
   - Sacrifices on performance when dealing with 100K multivalued properties


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-29 20:38:39 +00:00
Derek Hulley
8651121fce Removed unused SQL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-29 20:32:24 +00:00
Nick Burch
0c0d440329 ALF-4476 - Make transfer definitions for replication execution read only (locked)
Also improve the testing of cancelling running replication jobs, and the debug output of the action tracking service


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22055 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 16:52:52 +00:00
Neil McErlean
3c2d037b01 Merge from DEV/SITE_CONFIGURABILITY to HEAD
22049: ALF-3786 Partial implementation of Configurable Site Creation Group.
         Site configuration groups can be configured via permissions management in the usual way.
         This check-in adds hasCreateSitePermissions() to various SiteService layers to better support
         client code when site creation restrictions have been imposed.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22053 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 15:29:32 +00:00
Nick Burch
8fcd36b71e ALF-4347 - Further scheduled action unit tests, and document the remaining outstanding unit tests to be written
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22048 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 15:08:29 +00:00
Neil McErlean
f51d8ac5c8 Merged DEV/SITE_CONFIGURABILITY to HEAD
22041: ALF-3785 Configurable site public group.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22043 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 13:08:31 +00:00
Andrew Hind
0a41dd2c72 Fix for ALF-3142: CLONE - patch.updateDmPermissions takes too long to complete
- final improvements and fix progress report

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 11:35:38 +00:00
Derek Hulley
7703a41412 Part of ALF-4512: MLText and NULL storage problems
- Moved problems from SQL constraint violations to MLText conversion problems
 - TODO: Somehow single d:text when switching over to d:mltext


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22037 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 05:45:01 +00:00
Derek Hulley
c4559338a4 Minor annotations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22036 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 05:42:10 +00:00
Nick Burch
baf2876ffc ALF-4348 - Fix up scheduled replication execution, and stub out the unit tests for this
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 16:17:37 +00:00
Nick Burch
61583adef0 ALF-4346 & ALF-4348 - More work on schedulable actions, and start to expose this through to the replication service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:36:37 +00:00
Derek Hulley
68a681dcfe Added extra checks on MLText and null values
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 12:17:34 +00:00
Derek Hulley
8bfd2bdd97 Follow-up on 21966: Removed special Enum persistence and did early target-type conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 12:16:58 +00:00
Derek Hulley
a4a51473de Fixed ALF-4490: VersionModel.versionType is not declared in the model
- Was being used as a residual property (d:any)
 - To avoid storage as a serializable, the property is now d:text
 - Added conversion from String back to VersionType enum


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 10:05:19 +00:00
Gavin Cornwell
56ce66ac47 Another couple of workflow fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22001 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 22:35:28 +00:00
Derek Hulley
b4a5b665a6 Persist Enum properties as first-class STRING values
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21996 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 15:50:14 +00:00
Gavin Cornwell
cbd452fd7d ALF-3102 & FORM-36: Allow the starting point to be defined for the association control also required to implement ALF-4070: F20 Selectable resources are limited to the current site (if appropriate)
The association control now accepts a 'startLocation' parameter, this can be set to any of the following:

{companyhome}
{userhome}
{siteshome}
{doclib}
{self}
{parent}
A NodeRef
An XPath

The NodeRef and XPath options can also be used for the category form control to start the category picker in a particular category.

The XPath option is already used by the replication job UI and an example of {doclib} is in the FDK.

Example config would be as follows:

<form>
   ....
   <appearance>
      <field id="fdk:images">
         <control>
            <control-param name="startLocation">{doclib}</control-param>
         </control>
      </field>
      <field id="fdk:reviews">
         <control>
            <control-param name="startLocation">/app:company_home/app:dictionary/app:transfers/app:transfer_groups/cm:default</control-param>
         </control>
      </field>
   </appearance>
</form>

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:37:43 +00:00
Nick Burch
e7439974f2 Mark out which bits need to be changed to support ALF-4476
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:36:31 +00:00
Derek Hulley
a82a04c9a6 Possible fix for ALF-4409: Locale-independent properties can be given different locales
- 3.4 de-Hibernate problem
 - The DAO was not *ever* persisting '.default' so could give back different IDs for getOrCreateDefaultLocale().
 - Obviously, the NodeService (and all other clients) would expect the same ID for the default locale.
 - No need to change the NodeService property code - it's behaving correctly.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21985 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 08:41:22 +00:00
Mark Rogers
4d5229bccd ALF-4351 - alien invasion - copy behaviour.
implementation copy alien + unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 13:42:59 +00:00
Derek Hulley
39e25da30c Fixed ALF-2854: User Usage Queries use read-write methods on QNameDAO
- Was fixed on 3.3, but problem crept into de-Hibernate porting again for 3.4


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 10:17:49 +00:00
Derek Hulley
26eb271ff9 Fixed ALF-4117: NodeDAO: Allow cm:auditable to be set
- Prevents regression of ALF-2565: Allow cm:auditable values to be set programmatically
 - Prevents regression of ALF-3569: Alfresco repository CIFS driver not setting timestamps


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 14:55:07 +00:00
Derek Hulley
88317ea7ab Merged BRANCHES/DEV/V3.3-BUG-FIX to HEAD:
21761: Latest SpringSurf libs: Fix for IE6 XSS issue ALF-4307
   21832: Fix ALF-3569: Alfresco repository CIFS driver not setting timestamps


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 14:53:16 +00:00
Andrew Hind
b4aa44c2f7 ALF-3142: patch.updateDmPermissions takes too long to complete
- first upgrade test 100k set permissions/20 minutes (worst case each node has an ACL)
- single threaded

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21934 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 13:26:16 +00:00
Derek Hulley
1745a5a116 Unit test attempting to reproduce ALF-4409: Locale-independent properties can be given different locales
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 12:49:01 +00:00
David Caruana
94520df08a ALF-4346: Scheduled Persistent Actions CRUD
- complete tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 11:36:22 +00:00
Gavin Cornwell
7ba57ef649 Fixed issue in TaskFormProcessor where transitioning a task would not persist the comment (or any other property change) supplied along with the transition.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 11:27:24 +00:00
Gavin Cornwell
96b61bae8c Added task update protection to the task form processor and changed the check in TaskInstancePut to use the new isTaskEditable method on the WorkflowService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 07:24:12 +00:00
David Caruana
4cad8ab1fd ALF-4346: Scheduled Persistent Actions CRUD
- implement persistence of scheduled actions
- tests
- TODO: further tests e.g. various updates of associated action

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21916 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 17:51:56 +00:00
Mark Rogers
dd65fccd7b ALF-4351 - copy behaviour for transferred nodes.
part1: the trx:transferred aspect is removed on copy.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 16:30:07 +00:00
Gavin Cornwell
c9edde9a84 Fixed potential NPE in WorkflowService when the user that initiated a workflow has been deleted from the system.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 16:13:40 +00:00
Derek Hulley
a22fdceccd Upgrade overhaul: Retiring ancient patches and fixing de-Hibernate problems
- Moved setting of txn isolation level to ControlDAO
 - Retired patches where target schema is < 100
  - Removed unreferenced patch implementations
  - Removed unreferenced DB scripts
 - Moved patch-specific queries (ACL upgrade counts) into patch-common-SqlMap.xml
 - Fixed count query result processing (max of nothing is NULL) leading to unboxing NPEs
 - All DM-modifying patches depend on DmPermissionsPatch i.e. it will normally run immediately after SQL scripts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21908 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 14:45:18 +00:00
Derek Hulley
bda714b422 Check for null Long to prevent vague unboxing NPE
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 11:55:28 +00:00
Derek Hulley
a11e5505ca Prevent server startup if rollbacks cause patch entry recording to fail
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 11:39:41 +00:00
Derek Hulley
a0e426f85c More NodeService.getChildAssocsByPropertyValue (incl. PostgreSQL fix)
- Boolean *must* be passed as a parameter (PostgreSQL only accepts 'TRUE' or 'FALSE')
 - Moved code next to ChildAssoc-related code
 - Tested on MySQL and PostgreSQL


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:51:52 +00:00
Derek Hulley
1fb2270a24 Moved variable declarations, statics and setters
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:44:10 +00:00
Gavin Cornwell
93a7f84624 - Added isTaskEditable, isTaskReassignable, isTaskClaimable and isTaskReleasable to WorkflowService
- Added isEditable, isReassignable, isClaimable and isReleasable flags to task model in REST API
- Added outcome property to task model in REST API (label instead of raw value)
- Change "definitionTypeTitle" property to "type" and fixed up fallout
- Changed UI to use the isXXX flags above rather than copious amount of repeated checks
- Updated workflow details page to use outcome label, isEditable flag and some changes following discussion with Linton
- Added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:07:02 +00:00
Mark Rogers
127100a4a1 Unit test for NodeService.getChildAssocsByPropertyValue
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 17:10:20 +00:00
David Caruana
2d6fd30803 Replication - record target transfer report in replication definition
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 16:18:53 +00:00
Mark Rogers
68ba2c044a ALF-4352 : F99 alien invasion - node service call for selecting children where a property = value
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21855 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-18 15:39:05 +00:00
Nick Burch
f4d3f870f5 Scheduled action executor - Unit tests for most execution cases, persistance still TODO (ALF-4346)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 16:53:57 +00:00
Nick Burch
177d2f46da Allow Context Aware quartz jobs, and start to implement scheduled persisted actions using this (ALF-4346)
Also update ScheduledPersistedActionService to fetch the persisted folder in a cleaner way, and start on tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21844 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 15:13:56 +00:00
Mark Rogers
e0372702d3 ALF-4127 - F86 Provide target log to source repository
implemented with unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:16:54 +00:00
Nick Burch
f3ce6ac130 Have the scheduled actions persister startup at the correct point, and start to make use of the new Quartz triggers (for ALF-4346)
Also update the documentation at the top of bootstrap-context.xml to reflect using AbstractLifecycleBean, rather than the raw spring interfaces


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21835 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:02:17 +00:00
Derek Hulley
637495973d Removed repo-based 'init-method' from scheduled job (stops repo startup if patch hasn't been run)
- Init methods are for parameter checking; use an AbstractLifecycleBean-derived bean in bootstrap-context.xml.
 - Reformatted ScheduledPersistedActionServiceImpl.java; dev-env has Eclipse settings that can be imported


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 18:56:42 +00:00
Derek Hulley
b55d27f553 Fixed ALF-4190: fixNameCrcValues-2 fails on 3.4
- Finished implementation: Missing bean injection, update parameters wrong way around, etc
 - Improved performance (negative name crc values can be left as is)
 - Tested 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 18:28:34 +00:00