merge from Yavsc
This commit is contained in:
commit
53325b7e6c
30 changed files with 243 additions and 546 deletions
|
|
@ -47,7 +47,7 @@ namespace Yavsc.Model.Admin
|
|||
/// Gets or sets the dbname.
|
||||
/// </summary>
|
||||
/// <value>The dbname.</value>
|
||||
public string Dbname {
|
||||
public string DbName {
|
||||
get {
|
||||
return dbname;
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ namespace Yavsc.Model.Admin
|
|||
/// Gets or sets the dbuser.
|
||||
/// </summary>
|
||||
/// <value>The dbuser.</value>
|
||||
public string Dbuser {
|
||||
public string DbUser {
|
||||
get {
|
||||
return dbuser;
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ namespace Yavsc.Model.Admin
|
|||
/// </summary>
|
||||
/// <returns>The string.</returns>
|
||||
public string ConnectionString { get { return string.Format ("Server={0};Port={1};Database={2};User Id={3};Password={4};Encoding=Unicode;",
|
||||
Host, Port, Dbname, Dbuser, Password); } }
|
||||
Host, Port, DbName, DbUser, Password); } }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Configuration;
|
|||
using System.Collections.Generic;
|
||||
using Yavsc.Model.Blogs;
|
||||
using System.Linq;
|
||||
using Yavsc.Model.Circles;
|
||||
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
|
|
@ -56,7 +57,25 @@ namespace Yavsc.Model.Blogs
|
|||
{
|
||||
return this.Where (x => x.Title == title).ToArray ();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Filters the current collection for a given user by its name.
|
||||
/// Assumes that this user is not an author of any of these posts.
|
||||
/// </summary>
|
||||
/// <param name="username">Username.</param>
|
||||
public BlogEntryCollection FilterFor(string username)
|
||||
{
|
||||
BlogEntryCollection res = new BlogEntryCollection ();
|
||||
foreach (BlogEntry be in this) {
|
||||
if (be.Visible &&
|
||||
(be.AllowedCircles == null ||
|
||||
(username!= null && CircleManager.DefaultProvider.Matches
|
||||
(be.AllowedCircles,username))))
|
||||
{
|
||||
res.Add(be);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
/// <summary>
|
||||
/// Base post info.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1,321 +0,0 @@
|
|||
2015-10-09 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.fr.resx:
|
||||
* LocalizedText.Designer.cs:
|
||||
* LocalizedText.fr.Designer.cs: a new translation
|
||||
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntry.cs: defines the photo in the model
|
||||
|
||||
* BlogManager.cs: a new method to set the photo on a blog
|
||||
post.
|
||||
|
||||
* BlogProvider.cs: the blog provider now also gives some photo
|
||||
|
||||
* LocalizedText.fr.Designer.cs: Reordering the french
|
||||
localisation resource
|
||||
|
||||
* LocalizedText.fr.resx: Reorders the french localisation
|
||||
resource
|
||||
|
||||
2015-10-04 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* MarkdownHelper.cs:
|
||||
* BlogEntryCollection.cs: refactoring + extract an intro from
|
||||
Markdown for PostInfo*
|
||||
|
||||
* YavscModel.csproj: MarkdownHelper integration
|
||||
|
||||
2015-10-01 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Profile.cs: refactoring
|
||||
|
||||
2015-09-30 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Profile.cs: Groups profile properties
|
||||
|
||||
* ChangeLog: Must not exist in the source tree
|
||||
|
||||
2015-09-30 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Profile.cs: Grouping profile properties
|
||||
|
||||
2015-09-23 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntry.cs:
|
||||
* BlogManager.cs:
|
||||
* BlogEntryCollection.cs:
|
||||
* UUBlogEntryCollection.cs:
|
||||
* UUTBlogEntryCollection.cs: refactoring
|
||||
|
||||
2015-09-16 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.fr.resx:
|
||||
* LocalizedText.Designer.cs:
|
||||
* LocalizedText.fr.Designer.cs:
|
||||
|
||||
2015-09-11 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogManager.cs: Any user may edit any title
|
||||
|
||||
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* CircleBase.cs:
|
||||
|
||||
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* CircleBase.cs: The Circle base
|
||||
|
||||
* Circle.cs: Now inherits CircleBase to implement a member
|
||||
list
|
||||
|
||||
* CircleProvider.cs: implements a circle update method
|
||||
|
||||
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.Designer.cs: no content!!!
|
||||
|
||||
* LocalizedText.fr.resx:
|
||||
* LocalizedText.fr.Designer.cs: pas content
|
||||
|
||||
* YavscModel.csproj: a new CircleBAse class
|
||||
|
||||
2015-08-22 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* LocalizedText.Designer.cs: alphabetic order in ressource
|
||||
names
|
||||
|
||||
* LocalizedText.resx: * alphabetic order in ressource names
|
||||
|
||||
* RegisterModel.cs: disposes a duplicated resource string
|
||||
"UserName" (uses now User_name)
|
||||
|
||||
2015-08-20 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntryCollection.cs: cleans used code
|
||||
|
||||
2015-08-20 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntryCollection.cs: ConcernsAUniqueTitle and
|
||||
ConcernsAUniqueUser are now Obsoletes
|
||||
|
||||
* UUTBlogEntryCollection.cs: Drops a useless ctor
|
||||
|
||||
* CircleProvider.cs: The `CircleManager` now delivers the
|
||||
user's circle as a `Circle` object collection.
|
||||
|
||||
2015-08-14 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* FileSystemManager.cs: * Fixes the dir separator usage
|
||||
* Adds a method to validate a directory or file name
|
||||
|
||||
* YavscModel.csproj:
|
||||
* Commande.cs: FileInfoCollection is now removed
|
||||
|
||||
* FileInfoCollection.cs:
|
||||
* DirNotFoundException.cs: Removes useless code
|
||||
|
||||
2015-08-05 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntryCollection.cs: adds xml doc
|
||||
|
||||
* UUBlogEntryCollection.cs:
|
||||
* UUTBlogEntryCollection.cs: fixes a creation from a post
|
||||
array
|
||||
|
||||
2015-08-05 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogManager.cs: fixes the comment posting
|
||||
|
||||
2015-08-04 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntryCollection.cs: implement the BlogEntryCollection
|
||||
|
||||
* BlogManager.cs: the manager helps to filter on access
|
||||
|
||||
* BlogProvider.cs: The title is not unique anymore, and one
|
||||
can modify it, post a lot under it, drop all posts under it.
|
||||
A Post is deleted by id.
|
||||
|
||||
* UUBlogEntryCollection.cs: implements a collection of post
|
||||
under a given user name.
|
||||
|
||||
* UUTBlogEntryCollection.cs: implements a collection of post
|
||||
under a given couple (user name, title).
|
||||
|
||||
* IDbModule.cs:
|
||||
* WorkFlowManager.cs: refactoring
|
||||
|
||||
* ListItem.cs: ListItem is declared obsolete in this model,
|
||||
helpers can build MVC SelectListItem on data returned by the
|
||||
manager.
|
||||
|
||||
* LocalizedText.Designer.cs:
|
||||
* LocalizedText.fr.Designer.cs: autogenerated from xml
|
||||
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.fr.resx: new labels
|
||||
|
||||
* ChangeUserNameProvider.cs: xml doc
|
||||
|
||||
* Profile.cs: the UserName property is read only, and comes
|
||||
from authentication, to change it, we set a Name and validate
|
||||
it agains the "Profile" method
|
||||
|
||||
|
||||
* UserManager.cs: simpler code a init time
|
||||
|
||||
* IContentProvider.cs: implements the new IDataProvider
|
||||
interface
|
||||
|
||||
* IDataProvider.cs: defines the new IDataProvider interface
|
||||
|
||||
* YavscModel.csproj: includes new classes
|
||||
|
||||
2015-07-17 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* YavscModel.csproj:
|
||||
* Automate.cs:
|
||||
* TaskOutput.cs:
|
||||
* Service.cs:
|
||||
* FinalStateException.cs:
|
||||
* InvalidLetterException.cs:
|
||||
* PriceOnItemCount.cs:
|
||||
|
||||
2015-07-15 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* ListItem.cs:
|
||||
* Circle.cs:
|
||||
* BlogHelper.cs:
|
||||
* BlogManager.cs:
|
||||
* BookEdit.cs:
|
||||
* FreeDate.cs:
|
||||
* BlogProvider.cs:
|
||||
|
||||
* YavscModel.csproj: Moves to Mono framework
|
||||
|
||||
2015-07-02 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* ListItem.cs:
|
||||
* YavscModel.csproj:
|
||||
* BlogEntry.cs:
|
||||
* BlogManager.cs:
|
||||
* BlogProvider.cs:
|
||||
* CircleManager.cs:
|
||||
* CircleProvider.cs:
|
||||
* SimpleMessage.cs:
|
||||
|
||||
2015-06-26 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Period.cs:
|
||||
* WeekDay.cs:
|
||||
* OpenDay.cs:
|
||||
* YaEvent.cs:
|
||||
* Schedule.cs:
|
||||
* EventPub.cs:
|
||||
* Position.cs:
|
||||
* Periodicity.cs:
|
||||
* ProvidedEvent.cs:
|
||||
* PositionAndKeyphrase.cs:
|
||||
* ProviderPublicInfo.cs: refactoring
|
||||
|
||||
2015-06-18 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* RegisterClientModel.cs: Implements the Question and answer
|
||||
in the registration model
|
||||
|
||||
2015-06-18 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* YavscModel.csproj:
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.fr.resx:
|
||||
* LocalizedText.Designer.cs:
|
||||
* Profile.cs:
|
||||
* Profile.cs:
|
||||
* LocalizedText.fr.Designer.cs:
|
||||
* LoginModel.cs:
|
||||
* Publishing.cs:
|
||||
* LoginModel.cs:
|
||||
* Publishing.cs:
|
||||
* GCMRegister.cs:
|
||||
* NewRoleModel.cs:
|
||||
* GCMRegister.cs:
|
||||
* NewRoleModel.cs:
|
||||
* NewAdminModel.cs:
|
||||
* RegisterModel.cs:
|
||||
* NewAdminModel.cs:
|
||||
* RegisterModel.cs:
|
||||
* RegisterViewModel.cs:
|
||||
* LostPasswordModel.cs:
|
||||
* ProviderPublicInfo.cs:
|
||||
* RegisterViewModel.cs:
|
||||
* ProviderPublicInfo.cs:
|
||||
* ChangePasswordModel.cs:
|
||||
* RegisterClientModel.cs:
|
||||
* RegisterClientModel.cs:
|
||||
* ChangePasswordModel.cs:
|
||||
|
||||
2015-06-12 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* YavscModel.csproj:
|
||||
* BlogHelper.cs:
|
||||
* CircleManager.cs:
|
||||
* WorkFlowManager.cs:
|
||||
* NewEstimateEvenArgs.cs:
|
||||
* Provider.cs:
|
||||
* DataProviderConfigurationSection.cs:
|
||||
* ProviderCollection.cs:
|
||||
* WorkflowConfiguration.cs:
|
||||
* BlogProviderConfigurationElement.cs:
|
||||
* BlogProvidersConfigurationSection.cs:
|
||||
* BlogProvidersConfigurationCollection.cs:
|
||||
* CatalogProvidersConfigurationSection.cs:
|
||||
|
||||
2015-06-10 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Circle.cs: refactoring
|
||||
|
||||
* CircleInfo.cs:
|
||||
* CircleProvider.cs:
|
||||
|
||||
* Profile.cs: User's profile does not contain anymore the main
|
||||
e-mail address, it conflicts with registration informations,
|
||||
it is not part of the profile data
|
||||
|
||||
2015-06-10 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* CircleManager.cs: initializes the default provider
|
||||
|
||||
* CircleProvider.cs: Makes abstract the CircleProvider class
|
||||
|
||||
2015-06-10 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Circle.cs:
|
||||
* CircleInfo.cs:
|
||||
* CircleInfoCollection.cs: cleans imports
|
||||
|
||||
* CircleManager.cs: implements a circle manager
|
||||
|
||||
* CircleProvider.cs: Defines a default Circle provider
|
||||
|
||||
* EventPub.cs: refactoring
|
||||
|
||||
* YavscModel.csproj: Includes Circle provider definitions
|
||||
|
||||
2015-06-09 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* LocalizedText.resx:
|
||||
* LocalizedText.Designer.cs:
|
||||
* LocalizedText.fr.Designer.cs:
|
||||
|
||||
* LocalizedText.fr.resx: Page Title
|
||||
|
||||
2015-06-09 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* YavscModel.csproj:
|
||||
* BlogEditEntryModel.cs:
|
||||
* BlogEditCommentModel.cs:
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Yavsc.Admin
|
||||
namespace Yavsc.Model.Admin
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue