Commit Graph

201 Commits

Author SHA1 Message Date
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
Morten@Thinkpad-X220
42be2492b5 Implements the 16 MacroPropertyTypes from the database U4-946 2012-10-03 12:24:50 -02:00
Morten@Thinkpad-X220
bd180fd6ba Adds IMacro, IMacroProperty and IMacroPropertyType interfaces.
Adds Macro and MacroProperty implementations U4-928.
Adds enums used for MacroTypes and MacroPropertyTypeBaseTypes
2012-10-03 11:59:49 -02:00
Morten@Thinkpad-X220
d6b4307c8d Undoing the private set on Parent Id as it should be possible to change 2012-10-03 10:27:43 -02:00
Morten@Thinkpad-X220
3d99cec04c Adds Content, ContentStatus and ContentType implementations U4-922 and U4-923.
Hiding language property untill its fully implemented.
Making set on Parent Id private.
Resolves a naming conflict in DocumentExtensions and DefaultPublishedMediaStore.
2012-10-03 10:26:50 -02:00
Morten@Thinkpad-X220
2c39e4251f Adds interfaces for IContent, IMedia, IContentBase.
Adds interfaces for IContentTypeBase, IContentTypeComposition, IContentType and IMediaType.
This includes the inheritance structure for Content and Media, as well as ContentType and MediaType which is basically the same except for Templates and Compositions.
2012-10-03 08:24:23 -02:00
Morten@Thinkpad-X220
aa288877be Renaming IDocumentProperty to IPublishedContentProperty 2012-10-03 08:12:04 -02:00
Morten@Thinkpad-X220
58ee5b4d55 Adding Property and PropertyCollection classes U4-924.
Adding PropertyGroup and PropertyGroupCollection classes U4-926.
Adding PropertyType and PropertyTypeCollection classes U4-925.
Adding DataTypeDefinition and DataTypeDatabaseType U4-927.
Had to update the Property ref. on page and DynamicDocumentExtensions because of a conflict with the new Property class.
2012-10-03 08:03:45 -02:00
Morten@Thinkpad-X220
cb87a6db73 Adding DTOs for the 4.9.0 database schema - related to first task under U4-945 2012-10-03 06:57:58 -02:00
Morten@Thinkpad-X220
2d80baca70 Adding PetaPoco v4.0.3 in a slightly modified version, as we need to keep the DTOs internal PetaPoco should be able to reflect these DTOs.
Because of this modification we aren't using the nuget package.
2012-10-03 06:47:07 -02:00
Morten@Thinkpad-X220
676592a0da Updating umbraco version in GlobalSettings to 6.0.0 2012-10-03 06:40:41 -02:00
Morten@Thinkpad-X220
0b9bd3be50 Adding base model U4-921 and creating new branch. 2012-10-03 06:38:31 -02:00
Shannon Deminick
ef5525e67f renamed DynamicDocumentList to DynamicPublishedContentList
simplified some of the DynamicPublishedContent methods to accept Func<IPublishedContent> instead of Func<DynamicPublishedContent>, made the IsHelper method private as this shouldn't be exposed.
renamed other objects starting with DynamicDocument to DynamicPublishedContent
2012-10-02 22:51:53 +05:00
Shannon Deminick
053df24640 After talks with morten and stephane, this renames
IDocument -> IPublishedContent
DynamicDocument -> DynamicPublishedContent
2012-10-02 01:35:39 +05:00
Shannon Deminick
5c20f4f6ec Fixes: U4-U4-917
Fixes: U4-821
2012-10-01 23:04:57 +05:00
Stephan
eeb305c740 fix uQuery.GetNodeIdByUrl 2012-10-01 13:08:10 -02:00
Shannon Deminick
85e88e5640 Merge 2012-10-01 02:48:39 +05:00
Shannon Deminick
ea3d2f893f Added AsDynamic extension to IDocument.
Makes DynamicDocument explicitly implement IDocument as well.
Changes all ContentById methods, etc... back to returning just 'dynamic'
Removes valueAlias from the .Field method of UmbracoHelper which didn't actually do anything
removes altValueAlias from the .Field method of the UmbracoHelper which didn't actually do anything.
2012-10-01 02:48:08 +05:00
Stephan
3cddc5e4dc merge 2012-09-30 14:04:38 -02:00
Stephan
3e99dd0d55 fix NiceUrl and add more tests 2012-09-30 12:24:23 -02:00
Shannon Deminick
1aebce7ad6 makes SystemDirectories and SystemFiles public.
moves ResolveUrlsFromTextString to TemplateUtilities class and obsoletes other ones.
Fixes an issue if content cache is stored in codegen folder and not in med trust.
Updates the XmlDocument (IDocumentProperty) to always return a value with parsed {localLink} and resolved Urls and cache them so the parsing only happens once.
2012-09-29 11:11:48 +07:00