* Presta.csproj: A first class
* AssemblyInfo.cs: initial commit * NpgsqlCircleProvider.cs: circle members are now stored in bd upon their user's name * InputCircle.cs: fixes the new CircleManager interface usage * Yavsc.sln: Adds the `Presta` project * CircleController.cs: * Authorize some Http methods * Lists circles as circles * style.css: Fixes the missing "hidden" css class * AccountController.cs: using the new Circle provider interface * BlogsController.cs: * using the new Circle provider interface * do not test blog entry collections in order to group them by a unique user name or title, it's too bad, instead, keep user's request id as guide to model and view. * YavscHelpers.cs: Adds a Circle Html formatter * Circles.aspx: List of circles is now given as a list of `Circle` objects * instdbws.sql: fixes the db in order to store user names in circle member's records. * 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.
This commit is contained in:
parent
3fa55acf2e
commit
bdbda2a21f
21 changed files with 322 additions and 82 deletions
|
|
@ -148,6 +148,7 @@ namespace Yavsc.Model.Blogs
|
|||
/// Gets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEntryCollection"/> concerns A unique title.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if concerns A unique title; otherwise, <c>false</c>.</value>
|
||||
[Obsolete("And what if no title? Do you really need this test?")]
|
||||
public bool ConcernsAUniqueTitle {
|
||||
get {
|
||||
if (this.Count <= 1)
|
||||
|
|
@ -160,6 +161,7 @@ namespace Yavsc.Model.Blogs
|
|||
/// Gets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEntryCollection"/> concerns A unique title.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if concerns A unique title; otherwise, <c>false</c>.</value>
|
||||
[Obsolete("And what if no title? Do you really need this test?")]
|
||||
public bool ConcernsAUniqueUser {
|
||||
get {
|
||||
if (this.Count <= 1)
|
||||
|
|
|
|||
|
|
@ -33,12 +33,7 @@ namespace Yavsc.Model.Blogs
|
|||
/// <param name="username">Username.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
/// <param name="items">Items.</param>
|
||||
public UUTBlogEntryCollection(string username, string title,
|
||||
IEnumerable<BlogEntry> items = null) : base(username,items) {
|
||||
if (Count>0) {
|
||||
if (!(ConcernsAUniqueTitle && ConcernsAUniqueTitle))
|
||||
throw new InvalidOperationException ();
|
||||
}
|
||||
public UUTBlogEntryCollection(string username, string title) : base(username) {
|
||||
_title = title;
|
||||
}
|
||||
|
||||
|
|
@ -58,6 +53,8 @@ namespace Yavsc.Model.Blogs
|
|||
return string.Format ("[UUTBlogEntryCollection: " +
|
||||
"Title={0} User={1} Count={2}]", Title, UserName, Count);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace Yavsc.Model.Circles
|
|||
/// <summary>
|
||||
/// List this instance.
|
||||
/// </summary>
|
||||
public abstract IEnumerable<ListItem> List(string user);
|
||||
public abstract IEnumerable<Circle> List(string user);
|
||||
|
||||
/// <summary>
|
||||
/// Covers the specified username.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue