* NpgsqlCircleProvider.cs: implements a Circle provider
* NpgsqlContentProvider.csproj: new circle provider * CircleManager.cs: initializes the default provider * CircleProvider.cs: Makes abstract the CircleProvider class
This commit is contained in:
parent
8c64f3c374
commit
3d050e019e
6 changed files with 125 additions and 21 deletions
|
|
@ -1,3 +1,9 @@
|
|||
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:
|
||||
|
|
|
|||
|
|
@ -66,8 +66,10 @@ namespace Yavsc.Model.Circles
|
|||
ProviderSettingsCollection providerSettings =
|
||||
pSection.Providers;
|
||||
if (pSection.DefaultProvider != null) {
|
||||
ConstructorInfo ci = Type.GetType (providerSettings [pSection.DefaultProvider].Type).GetConstructor (Type.EmptyTypes);
|
||||
var pSetDef = providerSettings [pSection.DefaultProvider];
|
||||
ConstructorInfo ci = Type.GetType (pSetDef.Type).GetConstructor (Type.EmptyTypes);
|
||||
defaultProvider = ci.Invoke (Type.EmptyTypes) as CircleProvider;
|
||||
defaultProvider.Initialize (pSection.DefaultProvider,pSetDef.Parameters);
|
||||
}
|
||||
/*
|
||||
|
||||
|
|
|
|||
|
|
@ -31,43 +31,35 @@ namespace Yavsc.Model.Circles
|
|||
/// <summary>
|
||||
/// Circle provider.
|
||||
/// </summary>
|
||||
public class CircleProvider: ProviderBase
|
||||
public abstract class CircleProvider: ProviderBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Add the specified title and users.
|
||||
/// Add the specified owner, title and users.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
/// <param name="users">Users.</param>
|
||||
public void Add(string owner, string title, string [] users)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
/// <summary>
|
||||
/// Delete the specified id.
|
||||
/// </summary>
|
||||
/// <param name="title">Title.</param>
|
||||
public void Delete(string owner, string title)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
public abstract void Add(string owner, string title, string [] users);
|
||||
|
||||
/// <summary>
|
||||
/// Get the specified id.
|
||||
/// Delete the specified owner and title.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
public Circle Get(string owner, string title)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
public abstract void Delete(string owner, string title) ;
|
||||
|
||||
/// <summary>
|
||||
/// Get the specified owner and title.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
public abstract Circle Get(string owner, string title);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// List this instance.
|
||||
/// </summary>
|
||||
public CircleInfoCollection List()
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
public abstract CircleInfoCollection List();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue