⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iuserrights.java

📁 JAVA平台下优秀的CHART开源代码,可以实现类似EXCEL中的二维或三维的饼图/椎图功能.
💻 JAVA
字号:
/**
 * Copyright (C) 2003  Manfred Andres
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package freecs.interfaces;
/**
 * vip = 65519
 * moderator = 589807
 * user = 33
 * asshole = 458784
 */

/**
 * deffining userrights and the sate of this user
 */
public interface IUserRights {
   public static final int MAY_OPEN_GROUP             =      1;
   public static final int MAY_OPEN_SU_GROUP          =      2;
   public static final int MAY_LOCK_GROUP             =      4;
   public static final int MAY_LOCK_SU_GROUP          =      8;
   public static final int MAY_LOCK_STARTING_GROUP    =     16;
   public static final int MAY_JOIN_GROUP             =     32;
   public static final int MAY_JOIN_LOCKED_GROUP      =     64;
   public static final int MAY_SET_THEME              =    128;

   public static final int MAY_CHANGE_RIGHT           =    256;
   public static final int MAY_PUNISH                 =    512;
   public static final int MAY_KICK                   =   1024;
   public static final int MAY_BAN                    =   2048;

   public static final int PROTECTED_FROM_PUNISH      =   4096;
   public static final int PROTECTED_FROM_KICK        =   8192;
   public static final int PROTECTED_FROM_BAN         =  16384;
   public static final int PROTECTED_FROM_RIGHTCHANGE =  32768;

   public static final int FREELY_PUNISHABLE          =  65536;
   public static final int FREELY_KICKABLE            = 131072;
   public static final int FREELY_BANABLE             = 262144;

   public static final int MAY_MODERATE				  = 524288;

   public static final int ROLE_ASSHOLE=  MAY_JOIN_GROUP +
                                          FREELY_PUNISHABLE +
                                          FREELY_KICKABLE +
                                          FREELY_BANABLE;

   public static final int ROLE_USER   =  MAY_OPEN_GROUP +
                                          MAY_JOIN_GROUP;

   public static final int ROLE_VIP    =  MAY_OPEN_GROUP +
                                          MAY_OPEN_SU_GROUP +
                                          MAY_LOCK_GROUP +
                                          MAY_LOCK_SU_GROUP +
                                          MAY_JOIN_GROUP +
                                          MAY_JOIN_LOCKED_GROUP +
                                          MAY_CHANGE_RIGHT +
                                          MAY_PUNISH +
                                          MAY_KICK +
                                          MAY_BAN +
                                          MAY_SET_THEME +
                                          PROTECTED_FROM_PUNISH +
                                          PROTECTED_FROM_KICK +
                                          PROTECTED_FROM_BAN +
                                          PROTECTED_FROM_RIGHTCHANGE;

	public static final int ROLE_MODERATOR=ROLE_VIP +
										   MAY_MODERATE;

   public static final int ROLE_GOD    =  ROLE_MODERATOR +
                                          MAY_LOCK_STARTING_GROUP;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -