Ejemplo n.º 1
0
 public PublicKey(Guid id) : base(id)
 {
     Contact = new ForeignKeyField <Contact, PublicKey>(this, "contactid", false, p => p.PublicKeys);
     Data    = new FieldClass <byte[]>(this, "data", false);
     KeyId   = new StringField(this, "keyid", 256);
     Type    = new EnumField <PublicKeyType>(this, "type", PublicKeyType.OpenPGP, PublicKeyTypeExtensions.Translate);
 }
Ejemplo n.º 2
0
 public Feed(Guid id) : base(id)
 {
     Name     = new MultiLanguageStringField(this, "name");
     Parent   = new ForeignKeyField <Feed, Feed>(this, "parentid", true, p => p.Children);
     Children = new List <Feed>();
     Groups   = new List <Group>();
 }
Ejemplo n.º 3
0
 public Permission(Guid id) : base(id)
 {
     Role    = new ForeignKeyField <Role, Permission>(this, "roleid", false, r => r.Permissions);
     Part    = new EnumField <PartAccess>(this, "part", PartAccess.None, PartAccessExtensions.Translate);
     Subject = new EnumField <SubjectAccess>(this, "subject", SubjectAccess.None, SubjectAccessExtensions.Translate);
     Right   = new EnumField <AccessRight>(this, "accessright", AccessRight.None, AccessRightExtensions.Translate);
 }
Ejemplo n.º 4
0
 public JournalEntry(Guid id) : base(id)
 {
     Contact = new ForeignKeyField <Contact, JournalEntry>(this, "contactid", false, null);
     Moment  = new Field <DateTime>(this, "moment", DateTime.UtcNow);
     Subject = new StringField(this, "subject", 256);
     Text    = new StringField(this, "text", 32768);
 }
Ejemplo n.º 5
0
 public Subscription(Guid id) : base(id)
 {
     Contact   = new ForeignKeyField <Contact, Subscription>(this, "contactid", false, p => p.Subscriptions);
     Feed      = new ForeignKeyField <Feed, Subscription>(this, "feedid", false, null);
     StartDate = new Field <DateTime>(this, "startdate", DateTime.UtcNow);
     EndDate   = new FieldNull <DateTime>(this, "enddate");
 }
Ejemplo n.º 6
0
 public Sending(Guid id) : base(id)
 {
     Mailing        = new ForeignKeyField <Mailing, Sending>(this, "mailingid", false, null);
     Address        = new ForeignKeyField <ServiceAddress, Sending>(this, "addressid", false, null);
     Status         = new EnumField <SendingStatus>(this, "status", SendingStatus.Created, SendingStatusExtensions.Translate);
     SentDate       = new FieldNull <DateTime>(this, "sentdate");
     FailureMessage = new StringNullField(this, "failuremessage", 256);
 }
Ejemplo n.º 7
0
 public MailingElement(Guid id) : base(id)
 {
     Owner     = new ForeignKeyField <Feed, MailingElement>(this, "ownerid", false, null);
     Name      = new StringField(this, "name", 256);
     HtmlText  = new StringField(this, "htmltext", 33554432, AllowStringType.SafeHtml);
     PlainText = new StringField(this, "plaintext", 33554432, AllowStringType.SafeHtml);
     Type      = new EnumField <MailingElementType>(this, "elementtype", MailingElementType.Header, MailingElementTypeExtensions.Translate);
 }
Ejemplo n.º 8
0
 public ServiceAddress(Guid id) : base(id)
 {
     Contact    = new ForeignKeyField <Contact, ServiceAddress>(this, "contactid", false, p => p.ServiceAddresses);
     Address    = new StringField(this, "address", 256);
     Service    = new EnumField <ServiceType>(this, "service", ServiceType.EMail, ServiceTypeExtensions.Translate);
     Category   = new EnumField <AddressCategory>(this, "category", AddressCategory.Home, AddressCategoryExtensions.Translate);
     Precedence = new Field <int>(this, "precedence", 0);
 }
Ejemplo n.º 9
0
 public Export(Guid id) : base(id)
 {
     Name           = new StringField(this, "name", 256);
     SelectFeed     = new ForeignKeyField <Feed, Export>(this, "selectfeedid", true, null);
     SelectTag      = new ForeignKeyField <Tag, Export>(this, "selecttagid", true, null);
     SelectLanguage = new EnumNullField <Language>(this, "selectlanguage", LanguageExtensions.Translate);
     ExportColumns  = new StringListField(this, "exportcolumns");
 }
Ejemplo n.º 10
0
 public Group(Guid id) : base(id)
 {
     Feed             = new ForeignKeyField <Feed, Group>(this, "feedid", false, o => o.Groups);
     Name             = new MultiLanguageStringField(this, "name");
     MailName         = new MultiLanguageStringField(this, "mailname");
     MailAddress      = new MultiLanguageStringField(this, "mailaddress");
     GpgKeyId         = new StringField(this, "gpgkeyid", 256);
     GpgKeyPassphrase = new StringField(this, "gpgkeypassphrase", 256);
     Roles            = new List <Role>();
 }
Ejemplo n.º 11
0
 public Document(Guid id) : base(id)
 {
     Contact     = new ForeignKeyField <Contact, Document>(this, "contactid", false, null);
     Verifier    = new ForeignKeyField <Contact, Document>(this, "verifierid", true, null);
     CreatedDate = new Field <DateTime>(this, "createddate", DateTime.UtcNow);
     FileName    = new StringField(this, "filename", 512);
     ContentType = new StringField(this, "contenttype", 128);
     Data        = new FieldClass <byte[]>(this, "data", false);
     Type        = new EnumField <DocumentType>(this, "documenttype", DocumentType.Other, DocumentTypeExtensions.Translate);
 }
Ejemplo n.º 12
0
 public SearchSettings(Guid id) : base(id)
 {
     User = new ForeignKeyField <User, SearchSettings>(this, "userid", false, null);
     Name = new StringField(this, "name", 256);
     FilterSubscription = new ForeignKeyField <Feed, SearchSettings>(this, "filtersubscription", true, null);
     FilterTag          = new ForeignKeyField <Tag, SearchSettings>(this, "filtertag", true, null);
     FilterText         = new StringField(this, "filtertext", 256);
     ItemsPerPage       = new Field <int>(this, "itemsperpage", 20);
     CurrentPage        = new Field <int>(this, "currentpage", 0);
     Columns            = new EnumField <ContactColumns>(this, "columns", ContactColumns.Default, ContactColumnsExtensions.TranslateFlag);
 }
Ejemplo n.º 13
0
 public PostalAddress(Guid id) : base(id)
 {
     Contact       = new ForeignKeyField <Contact, PostalAddress>(this, "contactid", false, p => p.PostalAddresses);
     Street        = new StringField(this, "street", 256);
     CareOf        = new StringField(this, "careof", 256);
     PostOfficeBox = new StringField(this, "postofficebox", 256);
     Place         = new StringField(this, "place", 256);
     PostalCode    = new StringField(this, "postalcode", 256);
     State         = new ForeignKeyField <State, PostalAddress>(this, "stateid", true, null);
     Country       = new ForeignKeyField <Country, PostalAddress>(this, "countryid", false, null);
     Precedence    = new Field <int>(this, "precdence", 0);
 }
Ejemplo n.º 14
0
 public Mailing(Guid id) : base(id)
 {
     Title             = new StringField(this, "title", 256);
     RecipientFeed     = new ForeignKeyField <Feed, Mailing>(this, "recipientfeedid", false, null);
     RecipientTag      = new ForeignKeyField <Tag, Mailing>(this, "recipienttagid", true, null);
     RecipientLanguage = new EnumNullField <Language>(this, "recipientlanguage", LanguageExtensions.Translate);
     Sender            = new ForeignKeyField <Group, Mailing>(this, "senderid", false, null);
     Creator           = new ForeignKeyField <User, Mailing>(this, "creatorid", false, null);
     Header            = new ForeignKeyField <MailingElement, Mailing>(this, "headerid", true, null);
     Footer            = new ForeignKeyField <MailingElement, Mailing>(this, "footerid", true, null);
     Subject           = new StringField(this, "subject", 256);
     HtmlText          = new StringField(this, "htmltext", 33554432, AllowStringType.SafeHtml);
     PlainText         = new StringField(this, "plaintext", 33554432, AllowStringType.SafeHtml);
     CreatedDate       = new Field <DateTime>(this, "createddate", DateTime.UtcNow);
     SendingDate       = new FieldNull <DateTime>(this, "sendingdate");
     SentDate          = new FieldNull <DateTime>(this, "sentdate");
     Status            = new EnumField <MailingStatus>(this, "status", MailingStatus.New, MailingStatusExtensions.Translate);
 }
Ejemplo n.º 15
0
 public TagAssignment(Guid id) : base(id)
 {
     Contact = new ForeignKeyField <Contact, TagAssignment>(this, "contactid", false, p => p.TagAssignments);
     Tag     = new ForeignKeyField <Tag, TagAssignment>(this, "tagid", false, null);
 }
Ejemplo n.º 16
0
 public PhraseTranslation(Guid id) : base(id)
 {
     Phrase   = new ForeignKeyField <Phrase, PhraseTranslation>(this, "phraseid", false, p => p.Translations);
     Language = new EnumField <Language>(this, "language", Publicus.Language.English, LanguageExtensions.Translate);
     Text     = new StringField(this, "text", 4096, AllowStringType.ParameterizedText);
 }
Ejemplo n.º 17
0
 public Role(Guid id) : base(id)
 {
     Group       = new ForeignKeyField <Group, Role>(this, "groupid", false, g => g.Roles);
     Name        = new MultiLanguageStringField(this, "name");
     Permissions = new List <Permission>();
 }
Ejemplo n.º 18
0
 public RoleAssignment(Guid id) : base(id)
 {
     MasterRole = new ForeignKeyField <MasterRole, RoleAssignment>(this, "masterroleid", false, mr => mr.RoleAssignments);
     Role       = new ForeignKeyField <Role, RoleAssignment>(this, "roleid", false, null);
 }