Commit Graph

221 Commits

Author SHA1 Message Date
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
Morten@Thinkpad-X220
90108e344f Refactoring database changes from 4.10.0.
Implementing the contnet type composition as part of U4-956.
2012-10-10 07:15:51 -02:00
Morten@Thinkpad-X220.ab-nat1.dk
f69b3e9b97 Refactoring singleton implementation for DatabaseFactory and Repository Cache Providers as per recommendations from http://csharpindepth.com/articles/general/singleton.aspx
Adding unit test for DatabaseFactory.
2012-10-09 16:07:19 -02:00
Morten@Thinkpad-X220
2dbc40134c Refactoring TemplateRepository and adding providers to the FileSystemPRoviders.config 2012-10-09 12:27:57 -02:00
Morten@Thinkpad-X220
a9939ac183 Adds MediaFactory implementation U4-985
Adds MediaRepository implementation U4-957
Refactoring ContentType and MediaType to have parent id as constructor dependency.
Refactoring PropertyFactory to work for both Content and Media.
Adding Version property to Media.
2012-10-09 11:53:22 -02:00
Morten@Thinkpad-X220
0d9bb02a9c Adds MediaTypeRepository implementation U4-958 and improving the code structure in the content type repos a bit. 2012-10-09 10:49:43 -02:00
Morten@Thinkpad-X220
87ff6d03e8 Adds MediaTypeRepository implementation U4-958 2012-10-09 10:26:55 -02:00
Morten@Thinkpad-X220
9ca4fbff9d Adds MediaTypeFactory implementation U4-981 2012-10-09 10:10:18 -02:00
Morten@Thinkpad-X220
62c69edf02 Moving public interfaces for a cleaner structure in the .Core project. 2012-10-09 09:49:55 -02:00
Morten@Thinkpad-X220
3454f4e8fa Adds Stylesheet repository implementation U4-966 2012-10-09 08:49:17 -02:00
Morten@Thinkpad-X220
4eee5cfd5f Adds template repository and an abstract file repository U4-967 2012-10-09 08:45:15 -02:00
Morten@Thinkpad-X220
0fbf3b2fdc Adds Script repository and some edits to the Script model U4-965
Refactoring RepositoryResolver to use the base repository instead of the Queryable repo.
2012-10-09 08:12:03 -02:00
Morten@Thinkpad-X220
93694daf28 Renaming the base repository interface 2012-10-09 07:17:57 -02:00
Morten@Thinkpad-X220
4abc8075ab Refactoring repository inheritance 2012-10-09 06:59:18 -02:00
Morten@Thinkpad-X220
a459cb95c4 Adds Relation and RelationType repositories U4-962 and U4-963 2012-10-09 06:34:12 -02:00
Morten@Thinkpad-X220
14e827d749 Adds Relation and RelationType factories U4-987 and U4-986 2012-10-09 06:01:04 -02:00
Morten@Thinkpad-X220
1b0c543176 Adds NullCache provider implementation U4-969 2012-10-09 05:46:42 -02:00
Morten@Thinkpad-X220
5944098fe3 Updating Script and Template to use DefaultRenderingEngine enum instead of UmbracoSettings.EnableMvcSupport 2012-10-09 05:43:06 -02:00
Morten@Thinkpad-X220
2705053177 Merge with 4.10.0 2012-10-09 05:36:20 -02:00
Shannon Deminick
9022894d23 Changed EnableMvcSupport config section and classes to be: DefaultRenderingEngine which uses an enum.
Added a real handy Enum<T> class for parsing/traversing enums.
2012-10-09 02:42:09 +05:00
Morten@Thinkpad-X220.ab-nat1.dk
3a88c65db4 Implements DictionaryRepository, DictionaryItemFactory and DictionaryTranslationFactory U4-983 and U4-960 2012-10-08 17:20:43 -02:00
Morten@Thinkpad-X220.ab-nat1.dk
351edf52dc Implements LanguageRepository U4-961 and LanguageFactory U4-984 2012-10-08 16:35:46 -02:00
Morten@Thinkpad-X220
69f53b7dc5 Starting implementation of Dictionary and Language repositories and factories 2012-10-08 13:14:59 -02:00
Morten@Thinkpad-X220
60508a2327 Adds ContentType factory implementations U4-980
Adds ContentType repository implementation U4-956
2012-10-08 12:12:41 -02:00
Morten@Thinkpad-X220
eb35d712bb Adds DataTypeDefinition repository implementation for U4-959 2012-10-08 11:11:33 -02:00
Morten@Thinkpad-X220
e42865ef9d Adds Unit of Work for working with files U4-975 2012-10-08 10:16:59 -02:00
Morten@Thinkpad-X220
17d71a9011 Adds MacroRepository implementation U4-964 2012-10-08 10:09:28 -02:00
Morten@Thinkpad-X220
51165cf614 Enabling nuget package restore and removing referenced nupkg files from repo U4-997
Implement Serialization framework from v5 U4-968
2012-10-08 09:51:13 -02:00
Morten@Thinkpad-X220
d52c0db0ee Merge with 4.10.0 2012-10-08 08:50:01 -02:00
Morten@Thinkpad-X220
1b92639384 Renaming EntityFactory to ContentFactory 2012-10-08 08:45:36 -02:00
Morten@Thinkpad-X220
660ecfa91b Refactoring Unit Of Work, adding TransactionTypes and a new Repository structure.
Adding new Factory structure.
Related to U4-973, U4-955 and U4-979
2012-10-08 08:42:57 -02:00
Shannon Deminick
8ae867389d Merge 2012-10-08 00:15:51 +05:00
Shannon Deminick
5fc3d8e248 Fixes threading issue with Dynamicexpression... would have caused some strange behavior in the past!
Fixes: U4-995 - most methods will now work in dynamic expressions
2012-10-08 00:09:44 +05:00
Michiel van Oosterhout
2da0728b78 Do not call .Trim() on a string inside .IsNullOrEmpty(), the string may be null.
Instead use .IsNullOrWhiteSpace().

Saving a global setting will insert an appSetting in web.config if it does not
yet exist.
2012-10-06 18:46:12 -02:00
Morten@Thinkpad-X220
ca6356170c Adds Repository Resolver and backing config section implementation U4-988
Will need a bit of refactoring because of the way UnitOfWork is currently implemented.
2012-10-05 12:59:59 -02:00
Morten@Thinkpad-X220
590bc23ef6 Minor refactorings - Using GlobalSettings for database connectionstring. 2012-10-05 12:36:59 -02:00
Morten@Thinkpad-X220
7d74304c1f Merge with 4.10.0 2012-10-05 11:04:06 -02:00
Morten@Thinkpad-X220
dc1689bdf2 Removing PropertyValues-method from Content and Media and making it an extension method instead.
Adding the PropertyEditor model as internal to slowly adopt it using a slightly different model approach then in v5.
Minor refactoring of IEntity/Entity.
2012-10-05 11:03:08 -02:00
Morten@Thinkpad-X220.ab-nat1.dk
fe7d57ce12 Refactoring Unit of Work and its dependency on the datastore.
Removing legacy test project from solution.
2012-10-04 18:19:46 -02:00
Shannon Deminick
f8848086fd Adds support for legacy schema to the DefaultPublishedContentStore, adds unit tests to support this. 2012-10-04 21:37:11 +05:00
Morten@Thinkpad-X220
145cddbcb6 Adds the foundation for the repository implementation with abstract Repository, Unit Of Work and Cache provider.
Adding the Query object implementation.
Adds the ModelDtoMapper, which is still a WIP.
Adds the initial implementation of the IContentRepository with dependencies.
2012-10-04 13:44:02 -02:00
Morten@Thinkpad-X220
75e11b2ba8 Updating the model where serialization attributes where missing and adding a few comments.
Fixes U4-48
2012-10-04 13:05:31 -02:00
Morten@Thinkpad-X220
9e37e1674d Adds Media implementation U4-931
Adding some notes and small change to IContentBase, PropertyValues and the ability to set property values with an anonymous object is shared for Content and Media.
2012-10-04 12:38:43 -02:00
Morten@Thinkpad-X220
59c5a8920e Adds abstract File, Script, Stylesheet and Template model implementations for U4-933 U4-934 U4-935
Added a CssParser which is used internally by the Stylesheet class, but still needs a bit of work - primarily testing.
Resolves a couple of naming conflicts for Template.
2012-10-04 11:44:31 -02:00
Morten@Thinkpad-X220
083f2a99bc Adds Relation and RelationType U4-932 2012-10-04 08:10:36 -02:00
Morten@Thinkpad-X220
3321cb4eb1 Added code comments and serialization attributes. 2012-10-04 07:20:13 -02:00
Morten@Thinkpad-X220
612d57c00a Adds Dictionary and Language implementations for U4-929 and U4-930 2012-10-04 07:06:01 -02:00
Morten@Thinkpad-X220
cdb8af3812 Merge with 4.10.0 2012-10-04 05:18:12 -02:00
Shannon Deminick
54e5140d6a Added more extension methods to our strongly typed IPublishedContent object and IEnumerable<IPublishedContent> to match all of the available methods
that are on the DynamicPublishedContent object. Added more unit tests for all of these classes.
Moved some of the Dynamic objects into the web project which simplifies things quite a bit as some of these classes require access to the biz logic layer.
Now we have intellisense for all of the nice magical methods that were on DynamicPublishedContent on our strongly typed object!
2012-10-04 03:26:56 +05:00
Shannon Deminick
c0102f1c71 Refactored the traversal, ishelper, etc... methods to be extension methods on IPublishedContent so now all of these methods are available on the Typed object not just the dynamic object which makes a whole lot more sense... and you can have intellisense.
Updated DynamicPublishedContent's methods to just proxy calls to the new extension methods so that all of the logic is contained in one place.
Added new GetRootDocuments to the IPublishedContentStore since we need this in order to get the root list of documents for many of these methods.
Fixed an issue with the DynamicNode to IPublishedContent converter.
Fixed many of the failing unit tests.
2012-10-04 01:31:08 +05:00