Shannon
33ca761441
Updated all to use the ref parameter, tests are passing - now to see if they run any faster :)
2016-06-21 20:43:02 +02:00
Shannon
b5411a5402
Initial commit of refactor of better/more efficient in terms of mem and performance properpty selectors for our models, this also yields a much cleaner syntax. I have discovered one issue now which is that the PropertyChanged event now fires before the property value is actually set, this is why the lambda syntax existed before. Instead we can use a ref property for the SetPropertyValueAndDetectChanges methods which will work much nicer - and also potentially have less allocations.
2016-06-21 18:11:03 +02:00
Claus
63635ec9fb
Merge branch 'cyfer13-dev-v7' into dev-v7
...
Edited: No need to convert to string before passing on the value.
2016-01-25 14:11:00 +01:00
Chad Rosenthal
09d038fcde
U4-4652 - added decimal/double to contentbase
2016-01-23 21:32:08 -07:00
Shannon
813f1a1f2d
Fixes: U4-6035 Properrty.WasDirty() always returns false
2015-05-07 11:43:53 +10:00
James South
8d00dbf648
Remove Content Service Setter case sensitivity
...
Makes property alias key checking case-insensitive bringing behaviour in
line with IPublishedContent getters.
2015-04-01 12:37:28 +01:00
Shannon
863e8b5024
Changes PetaPoco UOW to use a Queue instead of trying to order by a date which even in ticks is sometimes the same. Changes some content ext to accept the service it needs instead of relying on the app ctx singleton and obsoletes others. Fixes ContentBase.ContentTypeId to check if the Id has been set on it's true ContentTypeBase which is required with the new foreign key to insert entities (this was actually a bug without the foreign key). Updates media/content services with paging to use parameters correctly. Fixes tests.
2014-10-01 10:18:51 +10:00
Shannon
7d556a0318
Merge remote-tracking branch 'origin/6.2.0' into 7.1.2
...
Conflicts:
src/Umbraco.Core/Cache/CacheProviderExtensions.cs
src/Umbraco.Core/Cache/DictionaryCacheProviderBase.cs
src/Umbraco.Core/Cache/ICacheProvider.cs
src/Umbraco.Core/Cache/ObjectCacheRuntimeCacheProvider.cs
src/Umbraco.Core/Models/Member.cs
src/Umbraco.Core/Models/PreValue.cs
src/Umbraco.Core/Models/PropertyType.cs
src/Umbraco.Core/Services/DataTypeService.cs
src/Umbraco.Tests/Models/Collections/PropertyCollectionTests.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web/Models/PublishedProperty.cs
src/Umbraco.Web/umbraco.presentation/umbraco/webservices/MediaUploader.ashx.cs
2014-04-17 18:10:42 +10:00
Shannon
1f2e46a195
Simplifies much of the deep cloning with the DeepCloneHelper and adds tests
2014-04-16 13:39:42 +10:00
Shannon
58758e7a41
More work on deep cloning, have test passing for IContent
2014-04-15 13:52:49 +10:00
Shannon
b7f7775b89
adds initial commit of entity cloning
2014-02-20 22:34:54 +11:00
Shannon
c4acbf0dbc
Merge remote-tracking branch 'origin/6.2.0' into 7.1.0
...
Conflicts:
src/Umbraco.Core/Configuration/ClientDependencyConfiguration.cs
src/Umbraco.Core/Constants-Conventions.cs
src/Umbraco.Core/Models/Member.cs
src/Umbraco.Core/Models/Membership/IUser.cs
src/Umbraco.Core/Models/Template.cs
src/Umbraco.Core/Persistence/Factories/MemberReadOnlyFactory.cs
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IUserRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberGroupRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/PermissionRepository.cs
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IMemberTypeService.cs
src/Umbraco.Core/Services/IMembershipUserService.cs
src/Umbraco.Core/Services/IUserService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Core/Services/MemberTypeService.cs
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Core/Services/UserService.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/MockTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Login.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/LoginStatus.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/RegisterMember.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/Breadcrumb.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/EditProfile.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListAncestorsFromCurrentPage.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListChildPagesFromCurrentPage.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListChildPagesOrderedByDate.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListChildPagesOrderedByName.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListChildPagesWithDoctype.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/ListDescendantsFromCurrentPage.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/Login.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/LoginStatus.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/MultinodeTree-picker.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/Navigation.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/RegisterMember.cshtml
src/Umbraco.Web.UI/Umbraco/PartialViews/Templates/SiteMap.cshtml
src/Umbraco.Web.UI/Umbraco/create/PartialView.ascx.cs
src/Umbraco.Web.UI/config/umbracoSettings.config
src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
src/Umbraco.Web/Controllers/UmbLoginController.cs
src/Umbraco.Web/Controllers/UmbLoginStatusController.cs
src/Umbraco.Web/Controllers/UmbProfileController.cs
src/Umbraco.Web/Controllers/UmbRegisterController.cs
src/Umbraco.Web/Models/LoginModel.cs
src/Umbraco.Web/Models/LoginStatusModel.cs
src/Umbraco.Web/Models/ProfileModel.cs
src/Umbraco.Web/Models/RegisterModel.cs
src/Umbraco.Web/Models/UmbracoProperty.cs
src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
src/Umbraco.Web/Security/WebSecurity.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/UmbracoModule.cs
src/Umbraco.Web/WebApi/UmbracoApiController.cs
src/Umbraco.Web/umbraco.presentation/library.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/PartialViewMacrosTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/PartialViewTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/editContent.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/login.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/members/EditMember.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbracobase/baseLibrary.cs
src/Umbraco.Web/umbraco.presentation/umbracobase/restExtension.cs
src/umbraco.businesslogic/User.cs
src/umbraco.providers/UsersMembershipProvider.cs
src/umbraco.providers/members/UmbracoMembershipProvider.cs
2014-02-13 16:22:51 +11:00
Shannon
6377b9aa50
Fixes some underlying type conversions, fixes more of the member type wrapping, updates contenttypecontrolnew to work with member types properly, ensures the property type cache is cleared when member types change.
2014-01-23 13:33:58 +11:00
Shannon
4427554752
Completes: U4-3085 member editor should automatically generate a password for new users
2013-10-22 09:45:07 +11:00
Shannon
3ff4930e8a
Properly exposes the IRememberBeingDirty.ResetDirtyProperties required method
2013-10-10 19:03:59 +11:00
Shannon
f8d6c85779
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
...
Conflicts:
src/Umbraco.Core/ApplicationContext.cs
src/Umbraco.Core/Models/ContentBase.cs
src/Umbraco.Core/Models/ContentTypeBase.cs
src/Umbraco.Core/Models/DataTypeDefinition.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Core/Services/IMemberTypeService.cs
src/Umbraco.Core/Services/MemberTypeService.cs
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Tests/Routing/uQueryGetNodeIdByUrlTests.cs
2013-10-09 13:41:14 +11:00
Shannon
09b7186713
Completes: U4-2963 Updated EntityService / IUmbracoEntity to have a dictionary to fill additional data - fixes merge issues and explicitly implements interface for entities that are not UmbracoEntity and hides other implementations from intellisense.
2013-10-09 13:32:58 +11:00
Shannon
9c96b247be
Completes: U4-2963 Updated EntityService / IUmbracoEntity to have a dictionary to fill additional data
2013-10-01 19:37:51 +10:00
Shannon
7c9f5eda9d
Fixes up more permissions checks, refactors MediaController.PostAddFile to use the correct WebAPI usage. Fixes issue with UmbracoClientManager throwing errors because the treeProps didn't include all called props.
2013-09-03 16:35:36 +10:00
Morten Christensen
86811fe507
Fixes U4-2397 IContent Properties added with incorrect Value when read from Cache, and adds unit test for verifying types saved and returned for 24 standard DataTypes.
2013-08-12 16:20:32 +02:00
Shannon
1b9f071581
Fixes: U4-2589 Save and Publish is not creating version of document and adds a few unit tests
2013-08-07 11:39:25 +10:00
Shannon
7f4abb4893
Fixed editContent.aspx to let the business logic handle the property validation when trying to publish and show the correct status message result (if it was not publishable). Adds the invalid properties collection to the PublishStatus so those can be shown too.
2013-07-24 12:54:10 +10:00
Shannon Deminick
7ea87638f7
Updates all Entity models to use SetPropertyValueAndDetectChanges for setting all simple properties so that
...
tracking changes works the way it is supposed to. Creates a TracksChangesEntityBase class for any other entity
that wants to implement IRememberBeingDirty (now Entity inherits from this). Upgraded a bunch of other entities that
were not tracking changes properly.
2013-03-21 00:05:56 +06:00
Shannon Deminick
de13f7e361
WIP ... Fixes: #U4-1666, Updates documentService to not have to manually
...
refresh content cache (and fix the unpublishing too since that logic wasn't correct)
Adds DebuggerDisplay support to ContentBase and Entity for better debugging info.
Adds new internal publishing methods to support publishing all children or only children previously published. This also adds new support
for getting a published result back even with bulk publishing.
Updates the publish dialog with new code and to use the new API based on issue #U4-1669.
Adds UmbracoUser property to AuthenticatedUmbracoController, Adds all common properties to the abstract UmbracoController.
Changes the legacy Document to allow content cache to be automatically refreshed (based on events)
2013-02-09 04:05:01 +06:00
Morten Christensen
1e8b82f5df
Fixes U4-1576. Ensures that structure is kept when moving content and media to and from the recycle bin.
...
Path and Level are updated accordingly.
2013-01-29 10:26:18 -01:00
NielsHartvig@UMBRACORATI.localdomain
53ddda9f59
Fixes U4-1480 ContentBase.SetPropertyValue has no override for long datatype
2013-01-18 09:03:58 -01:00
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
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
c7e8143128
Adds IUmbracoEntity to the structure of interfaces for ContentBase, ContentTypeBase and DataTypeDefinition.
2013-01-03 08:30:38 -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
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
c9c160bc29
Adding unit test for saving bulk content, and adding lazy collection save overload.
...
Adding AuditTrail class and test case.
2012-11-13 14:30:05 -01:00
Morten Christensen
dffc6ca1a0
Refactoring entities with Users to only add Id to minimize the object graph.
...
Moved getting an IProfile to an extension method, as its not commonly used.
Removing dependencies in ContentService, so the Services and context can be moved to Core proj.
Implementing Template repository to use both filesystem and db.
2012-11-11 06:53:02 -01:00
Morten Christensen
e3d5fa766d
Starting implementation of the UserRepository.
...
Fixing unit tests.
2012-11-09 14:45:28 -01:00
sitereactor
5f6c4cdf92
Renaming User to Creator on Content - makes more sense.
2012-11-05 14:43:51 -01:00
sitereactor
de9c373626
Adding some initial work for Membership related classes and interfaces, but only using IProfile and Profile as the rest are not part of the roadmap.
...
Adding a UserService, which should be fully implemented in a later release.
Refactoring usage of the ServiceContext, which is now loosely tied to the HttpContext as its used by the UserService.
Refactoring User/Writer on the Content class and interface.
Simplifying events and delegates in the publishing strategy.
2012-11-05 14:42:21 -01:00
sitereactor
98ef3f96f8
Correcting issue with RepositoryResolver not setting the unit of work when resolving.
2012-11-02 11:54:42 -01:00
Morten@Thinkpad-X220
3047d04f02
Some improvements around validation of content/media properties
2012-10-10 13:18:14 -02:00
Morten@Thinkpad-X220
74ecbac7d7
Refactoring Content/Media and ContentTypes/MediaTypes so the two are as close as possible. By doing this Media and Content are practically the same witht the except of a few properties.
...
This implements U4-10
2012-10-10 08:42:54 -02:00