Commit Graph

3382 Commits

Author SHA1 Message Date
Morten Christensen
9f2d41286c Fixing MasterContentType for DocumentTypes.
Adding ParentId "listener" to the repositories that uses ParentId, so we can ensure that the path is updated correctly.
Fixing how AllowedTemplates are saved upon creation of a new DocumentType.
Ensuring DocumentType.Save is called when creting a new DocumentType.
Fixing Publish/RePublish of Content with previously published children.
Removing UpdateDocumentCache in the save event of editContent.aspx.cs as its now handled in the new api.
Rewiring template methods on DocumentType class to use the new api.
2012-12-20 14:29:08 -01:00
Sebastiaan Janssen
6a05c4d968 Merge with 6.0.0 2012-12-20 09:49:39 -01:00
Sebastiaan Janssen
ea35ac570e Merge with 4.11.2 2012-12-20 09:43:09 -01:00
Sebastiaan Janssen
c5e7c81c19 Notification and tree refresh when unpublishing content 2012-12-20 09:25:50 -01:00
Morten Christensen
1b465ca709 Merge with 6.0.0 2012-12-19 12:15:34 -01:00
Morten Christensen
9af1f5842c Updating ApplicationTreeRegistrar to check for table before looping through it.
Updating schema creation to not include the umbracoApp and umbracoAppTree tables.
2012-12-19 12:14:49 -01:00
Morten Christensen
271794ca40 Updates the Database step in the installer to not use the legacy sql install utility. 2012-12-19 10:35:01 -01:00
Sebastiaan Janssen
97f759b658 Forgot to add the new image file, oops! 2012-12-19 10:34:06 -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
Sebastiaan Janssen
47d1fe7082 Fixed U4-703 - Updating or re-installing package causes duplicate trees 2012-12-19 09:05:23 -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
2535438978 Starting refactor of DocumentType, MediaType and the base ContentType class. 2012-12-18 14:50:26 -01:00
Morten Christensen
d8da990080 Refactoring legacy Media to use new Public API. 2012-12-18 13:55:19 -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
Emil Christiansen
a87304a55d Fixed so the css paths is relative 2012-12-17 18:11:08 -01:00
Morten Christensen
806c2a7ea4 Refactoring legacy Content, Property and propertytype though still a WIP. 2012-12-17 15:07:08 -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
4d5d556e64 Refactoring ContentRepository and MediaRepository to have a common base for getting and deleting versions.
Adding VersionableRepositoryBase implementation.
2012-12-17 13:37:36 -01:00
Sebastiaan Janssen
735bd574ff Didn't mean to commit test code, sorry! 2012-12-17 12:29:43 -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
Emil Christiansen
8c9aa8f3e8 Changed editContent.aspx.cs so the 'access-denied' error messages look more Umbraco'ish
Added access-denied.png picture
Updated Umbraco.Web.UI.csproj so it includes the picture
2012-12-17 10:00:36 -01:00
Morten Christensen
32ea6e0bc0 Correcting wrong placement of uow.commit in SaveAndPublish method. 2012-12-19 07:19:04 -01:00
Sebastiaan Janssen
5c0d9785e0 Don't check log comment length if it is null.. helped with a broken recycle bin
not deleting content because sometimes the title of the content would be null
2012-12-17 09:25:55 -01:00
Morten Christensen
262e3440ce Merge with 6.0.0 2012-12-17 07:21:59 -01:00
Morten Christensen
c20387496b Correcting an issue with the repository cache as it would never be able to retrieve the cached item, because get by and save by Ids were different. 2012-12-15 11:30:48 -01:00
Morten Christensen
fabe5f83a7 Rearranging using statements in MediaService to ensure events are fired before after using, and that the AuditTrail writes after the uow has been disposed.
Adding GetById overload in MediaService to allow lookup by UniqueId guid.
2012-12-15 11:17:32 -01:00
Morten Christensen
fcda8cc7ca Reordering using statements in ContentService to ensure that Events and Audit Trails exists outside the using. 2012-12-15 11:04:03 -01:00
Morten Christensen
5334ec3ff8 Minor adjustment to the ctor's of DefaultDatabaseFactory and PetaPocoUnitOfWorkProvider that clarifies the use of either ConnectionStringName or a custom ConnectionString+ProviderName. 2012-12-15 10:12:17 -01:00
Shannon Deminick
41e3471f2e Moves event args classes to separate files 2012-12-15 10:44:09 +05:00
Shannon Deminick
2035f2d77f Moved Event Args, etc... for persistence/services to Umbraco.Core.Events namespace 2012-12-15 10:43:03 +05:00
Shannon Deminick
1d259b711c Changed IsAllRepublished on PublishingEventArgs to be readonly (pretty sure it supposed to be like that) 2012-12-15 10:38:57 +05:00
Shannon Deminick
b73efd16dc Fixes ServiceContext to ensure the repo's are lazy instantiated because their ctor's rely on the
RepositoryResolver.Current being initialized which normally doesn't occur until after the ServiceContext
is constructed. Adds instance level caching for the GetRecursiveValue method in case this is called more than
one time for a property in one view. Reverts PetaPocoUnitOfWork to allow more than one call to Commit().. this
isn't 'best practices' per se but it is more for performance reasons because otherwise we'd have to create a new
repo object + uow for any bulk saving operations... The end result is the same, bulk operations in the Services
cannot be processed in one transaction. Fixing up the ContentServiceTests by ensuring that the shared and always open sqlce
connection with the legacy SqlCeContextGuardian is closed on TearDown.
2012-12-15 10:33:29 +05:00
Shannon Deminick
ad7aa66b0b Changes PetaPocoUnitOfWorkFactory to accept an IDatabaseFactory as ctor. Changes PetaPocoUnitOfWork to not dispose of the Database since
it will be shared with the current thread in order to support nested transactions and changes how the Transaction object is created
and used and then disposed of. Changes PetaPocoUnitOfWorkFactory to ensure that the UOW is
created with the shared Database instance. Fixes a method in UserService to ensure that the UOW is disposed since it wasn't using a repository.
2012-12-15 08:41:46 +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
Sebastiaan Janssen
db14868324 attributes["macroalias"] would YSOD instead of give back a null 2012-12-14 13:51:01 -01:00
Morten Christensen
6bc5ba2b4c Merge with 6.0.0-Repository-Resolvers-refactor 2012-12-14 13:50:56 -01:00
Morten Christensen
3d68106f47 Correcting a few unit tests that needed to have the ApplicationContext set in the SetUp of the fixture. 2012-12-14 13:49:20 -01:00
Morten Christensen
4c256986da Adding a few constructor options to the services to ease use when newing the services instead of using the ServiceContext. 2012-12-14 13:27:10 -01:00
Morten Christensen
3d2ca1f823 Refactoring MacroService and UserService to use the new and clean uow/repo approach. 2012-12-14 13:15:33 -01:00
Morten Christensen
0bf061751e Refactoring LocalizationService to use the new and clean uow/repo approach. 2012-12-14 13:06:58 -01:00
Morten Christensen
2956bdcc06 Refactoring FileService to use the new and clean uow/repo approach. 2012-12-14 12:59:47 -01:00
Morten Christensen
431e346622 Refactoring DataTypeService to use the new and clean uow/repo approach. 2012-12-14 12:43:05 -01:00
Morten Christensen
c711ed8542 Updating ContentTypeService to new uow/repo approach.
Removing ServiceFactory as it won't be used.
Correcting constructors on ContentService for consistency.
2012-12-14 12:33:14 -01:00
Morten Christensen
f9cffdd910 Merge with 6.0.0 2012-12-14 11:51:03 -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
22c15bc0ba Merge with 6.0.0 2012-12-14 07:27:42 -01:00
Shannon Deminick
547dab0761 Fixes: #U4-1274, U4-1304 2012-12-14 10:40:11 +05:00
Shannon Deminick
5fba1a775e Fixes: #U4-1300 2012-12-14 09:22:28 +05:00