Morten Christensen
fc3681a930
Fixes U4-1476 so null values are handled before the overload is determined.
2013-01-15 11:56:25 -01:00
Morten Christensen
35052c626a
Reordering properties in the ContentBase constructor
2013-01-15 10:21:24 -01:00
Morten Christensen
ef9b0b6433
Fixes U4-1429 - A name is now required for creating Content and Media.
2013-01-15 10:12:23 -01:00
Morten Christensen
014bebd38f
Fixes U4-1465 by ensuring that a ContentType alias does not contain invalid characters nor spaces.
2013-01-14 13:27:40 -01:00
Morten Christensen
0466a8ce13
Fixes U4-1394
2013-01-14 13:13:23 -01:00
Morten Christensen
749a872fec
Fixes U4-1444 so HttpPostedFiles are now properly accepted through the SetValue method.
...
Corrects an issue with the RootUrl in the PhysicalFileSystem.
2013-01-14 11:02:12 -01:00
Morten Christensen
6a6a95f7dc
Correcting MediaService so it also moves any children to the recycle bin when trashing an item.
2013-01-11 10:38:32 -01:00
Morten Christensen
ca2942fdd9
Refactoring ChangePublishedState to use an enum instead of a boolean.
2013-01-10 14:07:07 -01:00
Morten Christensen
9c792a7a5e
Fixes U4-1423 so PropertyTypes not in a group are also included in the list of a Content/MediaTypes PropertyTypes.
2013-01-09 18:48:44 -01:00
Sebastiaan Janssen
7b4ccf73c6
Merge
2013-01-08 11:48:04 -01:00
Morten Christensen
afb251d5b7
Fixes U4-1394 so the DefaultTemplate is not completely removed from the list of allowed templates when changed.
2013-01-08 11:38:35 -01:00
Sebastiaan Janssen
08c0da0226
MasterContentType column should not be in DTO, it gives errors querying
...
non-existing column in the database
2013-01-08 10:42:36 -01:00
Morten Christensen
7e060d665b
Renamed a few properties on the PropertyType object, as the original naming was confusing.
2013-01-08 07:38:54 -01:00
Morten Christensen
9520f2d570
Fixes how PropertyTypes are removed from a DocumentType or MediaType when using the backoffice.
2013-01-03 15:16:17 -01:00
Morten Christensen
c7e8143128
Adds IUmbracoEntity to the structure of interfaces for ContentBase, ContentTypeBase and DataTypeDefinition.
2013-01-03 08:30:38 -01:00
Morten Christensen
169db0c15f
Fixes U4-1368 so the FileHandlerData doesn't handle setting properties for Document and Media.
...
Properties using the UploadField will have its value as well as related values updated in a BeforeSave event.
2013-01-02 14:28:15 -01:00
Morten Christensen
f4706fcfb7
Fixes U4-1370 for ContentTypes thats loading using new api meaning that the fix only applies to Content and Media, but currently not Members.
...
For Members there is still an issue with MasterContentTypes, as the full structure is not loaded. Need to make the sql lookup recursive-
2012-12-30 18:26:08 -01:00
Morten Christensen
3955f78966
Removing the camel case enforcement on the Alias of ContentTypes and MediaTypes in the new api.
2012-12-29 11:12:29 -01:00
Morten Christensen
c98d906f36
Correcting a few formatting issues after importing patch.
2012-12-28 19:08:01 -01:00
Morten Christensen
e198f76356
Committing changes from randy.mccluer's pull request
2012-12-28 19:03:15 -01:00
Morten Christensen
5dbcfa57a8
Implements the new publish and unpublish events in the PublishingStrategy.
...
Making the PublishStrategy public, so that its possible to subscribe to the events.
Removing the old PublishingEventArgs, which is no longer used.
Correcting a few comments.
2012-12-28 14:47:09 -01:00
Morten Christensen
194d241b02
Adding Publish and UnPublish EventArgs
2012-12-28 14:15:12 -01:00
Morten Christensen
8338102944
Reverting use of DateTime.UtcNow to DateTime.Now in the new api.
2012-12-28 10:43:34 -01:00
Sebastiaan Janssen
1e4361ed2f
Merge with 6.0.0-LegacyApi-Refactor
2012-12-28 08:45:40 -01:00
Morten Christensen
64af0a610b
Refactoring migrations by adding an abstract class to all expressions that allow for processing prior to returning an sql statement.
...
Refactoring the current sql syntax providers to better work with sql ce, sql server and mysql.
Adding migrations for v4.8 and v6.0.
Adding test cases for upgrading from 4.7 to 6.0 for the 3 database providers - sql ce, sql server and mysql.
Adding product name to the MigrationAttribute, which adds more flexibility to the MigrationRunner.
Fixing schema creation for mysql, which broke during a previous refactor task.
2012-12-27 18:52:47 -01:00
Sebastiaan Janssen
2f8ac81fab
Fix a typo
2012-12-27 12:04:00 -01:00
Morten Christensen
dbce36b7a5
Adding migrations for v6 upgrades.
...
Updating and testing migrations.
2012-12-26 14:44:42 -01:00
Morten Christensen
39e2314102
Correcting merge issues.
...
Fixing reset of published state in ContentRepository.
Correcting Querying tests after spacing has changed a bit.
2012-12-21 09:45:34 -01:00
Morten Christensen
d816ac1125
Merge with 6.0.0
2012-12-21 08:38:43 -01:00
Shannon Deminick
18814d8dc6
Merge with 6.0.0
2012-12-21 04:42:22 +05:00
Morten Christensen
9d55fed6e7
Adding method to DataTypeService, which allows the retrievel of PreValues for a specific DataTypeDefinition.
...
Updaitng ContentExtension to use configured thumbnail sizes for Upload-DataTypes.
2012-12-20 09:06:08 -01:00
Morten Christensen
b368debfb4
Adding extension to IContent and IMedia that allows you to set a HttpPostedFile, HttpPostedFileBase or HttpPostedFileWrapper as the value for a property.
2012-12-20 08:53:28 -01:00
Morten Christensen
2952990ad4
Refactoring the legacy base ContentType class to better allow the usage of both new and old api.
...
A few of the shared properties are now saved by the new api for DocumentType and MediaType, whereas the MemberType still uses the old style.
2012-12-19 10:13:56 -01:00
Morten Christensen
3742a0b731
Refactoring legacy MediaType class to use new public api.
...
Adding remove Template method to new ContenType class.
2012-12-19 08:50:35 -01:00
Morten Christensen
bae4352e77
Refactoring the saving of properties, so that its consistent for Content, Media and Member that all use the ContentControl.
...
Adding a clear cache call in the MediaType and DocumentType Save method to ensure the correct loading of properties/propertytypes.
Adding IsPublishable method to ContentService, so we have a way to check if a content can be published depending on the state of the ancestors.
2012-12-18 11:46:05 -01:00
Morten Christensen
9420a858c8
Merge with 6.0.0
2012-12-17 14:03:42 -01:00
Morten Christensen
d9881a5530
Adding stubs for membership classes - keeping it internal for now as implementation will come at a later stage.
2012-12-17 14:01:29 -01:00
Morten Christensen
9bf45d6031
Updating MediaRepository to not create versions for Media, and ensuring that properties are properly updated.
2012-12-17 14:00:46 -01:00
Morten Christensen
30d7381ee3
Correcting all usages of getProperties to GenericProperties since its marked as Obsolete and shouldn't be used anymore.
...
Starting refactor of legacy Content class.
Refactoring DefaultData to use new datalayer.
Updating usages of the ServiceContext after as its no longer a singleton.
Correcting a few merge issues.
2012-12-17 11:16:09 -01:00
Morten Christensen
262e3440ce
Merge with 6.0.0
2012-12-17 07:21:59 -01:00
Shannon Deminick
dad5326281
re-added parameter check to ensure parent id is not 0. If adding hierarichal data, then use the
...
other overload accepting an entity. Converts over the Created/Creating events to the new structure for
ContentService and MediaService
2012-12-16 06:28:43 +05:00
Shannon Deminick
b765dffea7
Removed the need for the services to have IEnumerable<Lazy<T>> parameters for bulk inserting, instead we enable the ability
...
to pass in an entity reference as a parent to the object if we want to lazily create heirarchy. This has been changed for the
ContentService and ContentTypeService as well as the entities for Media, Content, ContentType, MediaType and more unit tests written for it.
2012-12-16 04:02:29 +05:00
Morten Christensen
f5bfb90b64
Manually merging a few changes to the ContentService, ContentFactory, ContentRepository and ContentExtensions to avoid a merge hell when pushing latest to the legacy refactor branch.
...
Current checkin has a few new failing tests due to recent changes, but a few should be resolved by adding a DataTypesResolver setup in the ContentServiceTests fixture.
2012-12-14 15:19:54 -01:00
Morten Christensen
0cce4a1a9e
Updating DefaultData and ContentControl to better support saving through the new api.
...
DataTypes doesn't save directly to the db, but keeps the value in-memory so the save can be handled by the new api.
Correcting the usage of versioning in the ContentRepository.
2012-12-14 11:43:16 -01:00
Morten Christensen
207c651743
Refactoring the Document class for publishing and unpublishing.
...
Bumped into an issue with nullable datetime and petapoco, which now has a workaround in our IMapper.
Fix a few issues around the Published state on previous versions.
2012-12-13 13:05:23 -01:00
Morten Christensen
6dd63aa0b3
Adding comment
2012-12-12 15:26:28 -01:00
Morten Christensen
3f35f1df00
Refactoring Document class to use new public api.
...
Adding Obsolete attributes to methods in Document class that has been updated.
Updating the PublishingStrategy to fire final event after content and xml has been properly updated in the db.
Adding a few new methods to the ContentService.
2012-12-12 15:17:48 -01:00
Morten Christensen
29762e227a
Refactoring the usage of Copy in the ContentService, so that it could be implemented in the Document class.
2012-12-12 10:22:58 -01:00
Shannon Deminick
1e41db6d69
Removed any manual instantiation of PetaPocoUnitOfWork as this should generally always
...
be done by the PetaPocoUnitOfWorkProvider to ensure that for a UOW it always uses a new database
instance, not a shared one.
2012-12-12 06:08:03 +05:00
Shannon Deminick
aa574ac32f
Merged with 6.0 and fixed a couple merge issues
2012-12-11 23:19:07 +05:00