Shannon
1e9a17babe
Fixes merge issues, fixes up some unit tests, removes the For<T> config section stuff and simplifies the singleton, refactors it with methods as per discussion with stephen.
2013-09-25 19:23:41 +10:00
Shannon
ccf3442992
Getting the macro picker dialog working slowly.
2013-09-18 17:31:41 +10:00
Shannon
046dcdcaf7
Replaces more calls to legacy UmbracoSettings with the new configuration section, fixes loads of null checks when dealing with package repository APIs
2013-09-16 11:22:11 +10:00
Shannon
7538698e7b
updated most of the calls from the legacy UmbracoSettings to use the new way - nearly done.
2013-09-13 18:36:41 +10:00
Shannon
e962e86c3c
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
...
Conflicts:
src/Umbraco.Core/Models/Rdbms/MemberReadOnlyDto.cs
src/Umbraco.Core/Models/Rdbms/PropertyDataReadOnlyDto.cs
src/Umbraco.Core/Persistence/Querying/BaseExpressionHelper.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/StringExtensions.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx.cs
src/Umbraco.Web/Umbraco.Web.csproj
2013-09-10 11:49:05 +10:00
Morten Christensen
757283a3ff
Making explicit references to the legacy member class to avoid ambiguous references to the new member classes
2013-08-31 19:09:29 +02:00
Shannon
89324370b4
Completes U4-2415 Remove legacy RestExtensions and restExtensions.config
2013-08-29 15:50:48 +10:00
perploug
e825c08901
Added events.Service and xmlhelper.service
2013-08-12 15:17:34 +02:00
Shannon
4df80eb976
Merge remote-tracking branch 'origin/6.1.3' into 7.0.0
...
Conflicts:
src/Umbraco.Core/Models/PropertyExtensions.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/packages.config
src/Umbraco.Web/umbraco.presentation/umbraco/webservices/legacyAjaxCalls.asmx.cs
2013-07-23 13:41:42 +10:00
Shannon
8be54ba0cc
Fixes: U4-1970 v6 API - need to implement caching for templates since we're doing a db lookup on a front-end request. This is a temporary fix until we implement the ApplicationCache properly but it still works by utilizing the existing RuntimeCacheProvider singleton. I've tweaked this provider as well to ensure we use the HttpRuntime.Cache when it is available (during a web session). We don't want to have a seperate caching bucket so that IIS can manage cache memory properly. Have ensured that the template cache is cleared when templates are updated/removed.
2013-07-23 11:46:18 +10:00
Shannon
deceec3fa2
Merge remote-tracking branch 'origin/6.1.3' into 7.0.0
...
Conflicts:
src/Umbraco.Core/Models/Membership/IUser.cs
src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/packages.config
src/umbraco.businesslogic/packages.config
src/umbraco.cms/Actions/ActionNew.cs
2013-07-12 11:03:49 +10:00
Shannon
868edee5e6
Fixes: #U4-2161 - permissions inheritance. Fixes up how user permissions cache is invalidated and looked up (it is now lazy and not forced). User permissions are also cached as a low priority for now and only for 20 mins based on #U4-2474.
2013-07-09 11:47:46 +10:00
Shannon
3779e79367
Changes over SectionCollection to SectionService, ApplicationTreeCollection to ApplicationTreeService. Starts implementing UserSectionRepository for use with SectionService. Streamlines BaseMapper implementations.
2013-07-02 17:47:20 +10:00
Shannon
388f55d7fd
Moved application logic into Core which are now 'Sections'. Have proxied all calls from the legacy application to sections. Streamlined how automapper configs are registered (much better now). Updated some unit tests to use the new classes instead of the legacy ones. Created the sections controller to return the sections from the back office. Changed the TypeFinder to search all types not just public ones, changed the boot managers to not have to explicitly modify the resolvers with internal types because now internal types are automatically found.
2013-07-01 14:23:56 +10:00
Shannon
24111c52f2
Obsoleted umbraco.businesslogic.ApplicationTree, have moved logic and new classes to core and proxied calls from it to the new ones. The new ApplicationTreeCollection will be the runtime colleciton of trees which can also read/write/save to the xml.
2013-06-20 10:05:51 +10:00
david.pendray
773500332b
Fix U4-2320 - Error on saving User Permissions
...
Nodes can be null but NodeIds property always returns a collection and this will return Ids from Nodes if _nodeIds are null and Nodes is not.
2013-06-13 02:50:25 +01:00
Shannon Deminick
0cda994538
Fixes DataTypeCacheRefresher to be a Json cache refresher since it needs to refresh both by GUID and by Int Ids
2013-05-07 19:37:57 -10:00
Shannon Deminick
294c2f4fba
Fixes: #U4-2183 - null check on UmbracoContext and fixes bad merge issue, the UserTypeCacheRefresher got removed from the proj file.
2013-05-02 14:24:27 -10:00
Shannon Deminick
60481e7e02
Fixes: #U4-2093 stylehsheet property cache refresher had wrong id assigned.
2013-04-20 00:18:45 +06:00
Shannon Deminick
7f5457316a
Fixed: #U4-2129 - using new api didn't use the CompositionPropertyTypes instead of just PropertyTypes and fixed up cache invalidation for PublishedContentHelper
2013-04-19 23:47:51 +06:00
Stephan
7a1e3b96b8
Web.PublishedCache - IPublishedCaches doesn't return !contextual caches anymore
2013-04-04 05:10:53 -02:00
Stephan
9982a09826
Web.PublishedCache - merge resolvers so caches can be related
2013-03-31 18:40:55 -02:00
Shannon Deminick
425fcf36eb
un-reverted changes to UserType cache refresher
2013-04-04 23:36:31 +06:00
Shannon Deminick
31fd05ebca
Merge
2013-04-04 23:30:36 +06:00
Shannon Deminick
495b4ed9e0
Refactors the WebSecurity class to not be static and be part of the UmbracoContext. Makes a few methods internal on it so that
...
it's not relying on the legacy User class. Cleans up the new BasePage and EnsuredUmbracoPage
2013-04-04 23:30:17 +06:00
Shannon Deminick
87c904cc96
Fixes: #U4-2044, #U4-2048
2013-04-04 21:57:41 +06:00
Sebastiaan Janssen
9edcc0c903
Revert UserType caching changes until Shannon can commit UserTypeCacheRefresher
2013-04-04 09:46:20 -02:00
Shannon Deminick
b56f8c8fb3
Fixes: #U4-2043 - User Type cache is not invalidated in LB scenarios
2013-04-04 03:43:05 +06:00
Shannon Deminick
296c24f829
Fixes: #U4-2042 - ensures users cannot continue to user the back office after they've been disabled and
...
ensures that the user context cache is cleared when users are saved which will work in LB environments.
Changes more HttpRuntime.Cache dependencies to ApplicationContext.Current.ApplicationCache.
2013-04-04 02:11:31 +06:00
Shannon Deminick
c5e88ef69f
Fixes: #U4-2041, #U4-2040 - user cache is not invalidated when permissions change across LB environments, also streamlined how caching is handled in
...
these classes which now use the standardized events way to do things. Fixes a performance issue and ensures that the cache is not invalidated for 'micro'
operations during permission changes.
2013-04-04 00:30:28 +06:00
Shannon Deminick
2a7e493c74
Changes all instances of the legacy Cache class to be using ApplicationContext.Current.ApplicationCache.
...
Fixes: #U4-2039 - ensures macro xslt cache is invalidated in LB scenarios.
2013-04-03 23:39:51 +06:00
Stephan
99a63a3cdb
fix build
2013-04-01 16:35:03 -02:00
Stephan
ad52c0f033
Web.Cache - add notes to cache refreshers re. dependencies
2013-03-31 18:40:55 -02:00
Shannon Deminick
e97a01c75c
Fixes: #U4-1992 - Creates DictionaryCacheRefresher to ensure that all cache associated with the dictionary is updated amongst all
...
servers when it is changed/removed. Removes RemoveByJson as we only actually require RefreshByJson since we can put any sort of parameters
in a custom json string including whether it is a remove operation (if required)
2013-03-23 01:59:25 +06:00
Shannon Deminick
00de509478
Merge
2013-03-22 22:11:08 +06:00
Shannon Deminick
1b5139889c
Changed event handler to AfterDelete for DataTypeDefinition, fixes merge issue with Entity and changes WasCancelled to be tracked.
2013-03-22 22:10:24 +06:00
Stephan
47474d31d6
Web.PublishedCache - rename LegacyXmlCache into XmlPublishedCache
2013-03-22 15:02:26 -01:00
Shannon Deminick
8cdfba42d5
Moves clearing of the routes cache for when domains are changed to the DomainCacheRefresher.
2013-03-22 05:15:58 +06:00
Shannon Deminick
e8dd56786b
Fixes: #U4-1986 - data type cache is not refreshed in load balanced environments.
2013-03-22 05:04:32 +06:00
Shannon Deminick
2a9309ea38
un-obsoletes a bunch of the Member api since it shouldn't be obsoleted. Ensures that members cache is cleared when a member is updated or deleted using
...
the API and that this cache is also refreshed on other servers.
2013-03-22 04:34:57 +06:00
Shannon Deminick
ee2f2dfda0
Fixes: #U4-1981 - ensures template cache is properly refreshed amonsgst all servers
2013-03-22 02:08:55 +06:00
Shannon Deminick
9d6b38a1c1
Fixes: #U4-1980 - stylesheet and stylesheet property cache is not refreshed in load balanced environments.
2013-03-22 01:49:34 +06:00
Shannon Deminick
f6490a897a
Fixes: #U4-1978 - Creates DomainCacheRefresher - domain cache is now refreshed across all servers
2013-03-22 00:49:07 +06:00
Shannon Deminick
ce8f5c167c
Fixes: #U4-1933 - Adds LanguageCacheRefresher, removes the invalidate cache calls from within the legacy language object.
2013-03-22 00:35:15 +06:00
Shannon Deminick
5f242aa3f6
Converts the media cache refresher to be a json cache refresher since it was impossible before to have media cache
...
cleared when media was deleted. Created base classes for cache refreshers, we now have a new event - CacheUpdated
which can now be used by code to execute on each individual server when any cache refresher is updated. Listening to events
normally only fire on the individual server so if people are wanting to refresh their own cache there was previously no way
to do that.
2013-03-21 22:53:58 +06:00
Shannon Deminick
f5a1e41569
missing checkin file
2013-03-21 20:30:32 +06:00
Shannon Deminick
52f05612ad
Adds another method of distributed cache syncing using a custom json payload. this is necessary for things like ContentType cache
...
updates especially when deleting one since we require all sorts of Ids from the object but the object will be deleted by the time
the request reaches other servers so instead we create a json payload to send to other servers which contains all information necessary
to refresh/clear the cache on the other servers. This will probably be the preferred way going forward to handle cache refreshing.
With this in place, when removing a conent type cache is removed based on events.
This also adds a 'class' generic argument constraint to the repository base classes to guarantee we can do null checks and then we also
fix a null check on RepositoryBase. Updates the Entity class to properly support tracking properties - this now allows us to determine if
an entity was new, which is now used to ensure we don't re-update all of the content cache when a new content type is created.
Have also changed the deletion and creation of document types to use the new API, this allows for a lot less processing and streamlining how
all cache is invalidated. Fixes the construction of a new Template and Content Type in the v6 api and ensures that default values are set - #U4-1972, #U4-1971
2013-03-21 08:38:18 +06:00
Shannon Deminick
c5a0da6aa5
Updated ContentTypeCacheRefresher to ensure that content xml cache is only refreshed for doc types not
...
media types, also ensures that the route cache is cleared (#U4-1969). Changes the deletion of media and
doc types to use the new Api - this ensures that cache is refreshed properly.
2013-03-21 01:04:27 +06:00
Shannon Deminick
aa7fd7bb2b
Removed cache refreshing code from inside of the ascx control as it is now all handled via business logic.
2013-03-20 22:03:35 +06:00
Shannon Deminick
603b6c73f7
Adds some notes.
2013-03-19 23:49:20 +06:00