using Swarmops.Logic.Structure; namespace Swarmops.Logic.Security { public class Access { public readonly AccessAspect Aspect; public readonly Geography Geography; public readonly Organization Organization; public readonly AccessType Type; public Access (AccessAspect aspect, AccessType type) { this.Aspect = aspect; this.Type = type; } public Access (Organization organization, AccessAspect aspect, AccessType type) { this.Organization = organization; this.Aspect = aspect; this.Type = type; } public Access (Organization organization, Geography geography, AccessAspect aspect, AccessType type) { this.Organization = organization; this.Geography = geography; this.Aspect = aspect; this.Type = type; } } public enum AccessAspect { Unknown = 0, /// /// Access to underlying ledgers /// Bookkeeping, /// /// Access to regular accounting /// Financials, /// /// Access to send various correspondence, w/o necessarily knowing the recipients /// Correspondence, /// /// Access to personal details about people in an organization /// PersonData, /// /// Access to change organization's fundamental operating parameters /// Administration, /// /// Access to this Swarmops installation and its operating parameters /// System } public enum AccessType { Unknown = 0, Read, Write } }