Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / XML

netTierGenerator

Rate me:
Please Sign up or sign in to vote.
4.81/5 (20 votes)
30 Nov 2008CPOL14 min read 67.4K   2.8K   108  
A 3-tier application framework and code generation tool - the way for rapid and effective development.
using System;

namespace Sample.Common.Security
{
    [Flags]
    public enum PermissionEnum : long
    {
        ADMINISTER = 0x100000000000000,    // 72 057 594 037 927 936
        ANNOUNCEMENT = 0x400000000,          // 17 179 869 184
        CREATE_POLL = 0x100000000,          // 4 294 967 296
        DELETE = 0x20,                 // 32
        EDIT = 0x10,                 // 16
        EDIT_OTHERS = 0x800000000,          // 34 359 738 368
        INK = 0x800,                // 2 048
        LOCAL_ATTACHMENT = 0x40,                 // 64
        MARK_AS_ANSWER = 0x100,                // 256
        MODERATE = 0x100000000000,       // 17 592 186 044 416
        POST = 4,                    // 4
        READ = 2,                    // 2
        REMOTE_ATTACHMENT = 0x200,                // 512
        REPLY = 8,                    // 8
        STICKY = 0x200000000,          // 8 589 934 592
        SYSTEM_ADMIN = 0x4000000000000000,   // 4 611 686 018 427 387 904
        UNDEFINED = 0,                    // 0
        VIDEO = 0x400,                // 1 024
        VIEW = 1,                    // 1
        VOTE = 0x80                  // 128

        //UNDEFINED = 0x0000000000000000L, //                         0
        //VIEW = 0x0000000000000001L, //                         1
        //READ = 0x0000000000000002L, //                         2
        //POST = 0x0000000000000004L, //                         4
        //REPLY = 0x0000000000000008L, //                         8
        //EDIT = 0x0000000000000010L, //                        16
        //DELETE = 0x0000000000000020L, //                        32
        //LOCAL_ATTACHMENT = 0x0000000000000040L, //                        64
        //VOTE = 0x0000000000000080L, //                       128
        //MARK_AS_ANSWER = 0x0000000000000100L, //                       256
        //REMOTE_ATTACHMENT = 0x0000000000000200L, //                       512
        //VIDEO = 0x0000000000000400L, //                     1 024
        //INK = 0x0000000000000800L, //                     2 048
        //CREATE_POLL = 0x0000000100000000L, //             4 294 967 296
        //STICKY = 0x0000000200000000L, //             8 589 934 592
        //ANNOUNCEMENT = 0x0000000400000000L, //            17 179 869 184
        //EDIT_OTHERS = 0x0000000800000000L, //            34 359 738 368
        //MODERATE = 0x0000100000000000L, //        17 592 186 044 416
        //ADMINISTER = 0x0100000000000000L, //    72 057 594 037 927 936
        //SYSTEM_ADMIN = 0x4000000000000000L  // 4 611 686 018 427 387 904
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions