// // CircleManager.cs // // Author: // Paul Schneider // // Copyright (c) 2015 GNU GPL // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . using System; using System.Security.Permissions; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Reflection; using System.Configuration.Provider; using System.Web.Mvc; using System.Collections.Generic; namespace Yavsc.Model.Circles { /// /// Circle provider. /// public abstract class CircleProvider: ProviderBase { /// /// Add the specified owner, title and users. /// /// Owner. /// Title. /// Users. public abstract long Create(string owner, string title, string [] users); /// /// Add the specified user to the specified circle. /// /// circle Identifier. /// User name. public abstract void Add(long id, string username); /// /// Delete the specified circle by its id. /// /// Circle Identifier. public abstract void Delete(long id) ; /// /// Get the specified id. /// /// Identifier. public abstract Circle Get(long id); /// /// List circle's user. /// public abstract IEnumerable List(string user); /// /// True when the specified user is listed in one of /// the specified circles /// /// circles to look at /// Username to look for in the circles public abstract bool Matches(long [] circle_ids, string member); /// /// Removes the membership. /// /// Circle identifier. /// Member. public abstract void RemoveMembership(long circle_id, string member); /// /// Removes the member from all current user circles. /// /// Member. public abstract void RemoveMember(string member); } }