RolePrivilege

cn.tee3.avd

## 类 RolePrivilege

- java.lang.Object
- - cn.tee3.avd.RolePrivilege

-     public class RolePrivilege
      extends java.lang.Object

  Created by Administrator on 2015/8/26.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `RolePrivilege.Listener`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `privilege_audio_openmicrophone`
    `static int` | `privilege_audio_openremotemicrophone`
    `static int` | `privilege_chat_privatemessage`
    `static int` | `privilege_chat_publicsmessage`
    `static int` | `privilege_room_closeroom`
    `static int` | `privilege_room_grantprivilege`
    `static int` | `privilege_room_grantrole`
    `static int` | `privilege_room_kickoutuser`
    `static int` | `privilege_room_updateappdata`
    `static int` | `privilege_room_updateroleprivilege`
    `static int` | `privilege_room_updateroomstatus`
    `static int` | `privilege_screen_publishscreen`
    `static int` | `privilege_video_publishcamera`
    `static int` | `privilege_video_publishremotecamera`
    `static int` | `privilege_video_setpublishcapbility`
    `static int` | `privilege_video_subscriblecamera`

  - ### 构造器概要

    构造器
    构造器和说明
    `RolePrivilege()`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static int` | `clearFlag(int value, int flag)`
    `java.lang.String` | `getDefaultRole()`
    `int` | `getRolePrivileges(java.lang.String role)`
    `static boolean` | `hasFlag(int value, int flag)`
    `boolean` | `hasPrivilege(int privilege)`
    `boolean` | `isRole(java.lang.String value)`
    `int` | `setDefaultRole(java.lang.String role)`
    `static int` | `setFlag(int value, int flag)`
    `int` | `updateRolePrivileges(java.lang.String role, int privileges)`
    `int` | `updateUserPrivileges(java.lang.String userId, int privileges)`
    `int` | `updateUserRole(java.lang.String userId, java.lang.String role)`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### privilege_room_grantprivilege

          public static final int privilege_room_grantprivilege

      另请参阅:
        常量字段值

    - #### privilege_chat_publicsmessage

          public static final int privilege_chat_publicsmessage

      另请参阅:
        常量字段值

    - #### privilege_chat_privatemessage

          public static final int privilege_chat_privatemessage

      另请参阅:
        常量字段值

    - #### privilege_audio_openmicrophone

          public static final int privilege_audio_openmicrophone

      另请参阅:
        常量字段值

    - #### privilege_audio_openremotemicrophone

          public static final int privilege_audio_openremotemicrophone

      另请参阅:
        常量字段值

    - #### privilege_video_subscriblecamera

          public static final int privilege_video_subscriblecamera

      另请参阅:
        常量字段值

    - #### privilege_video_publishcamera

          public static final int privilege_video_publishcamera

      另请参阅:
        常量字段值

    - #### privilege_video_publishremotecamera

          public static final int privilege_video_publishremotecamera

      另请参阅:
        常量字段值

    - #### privilege_video_setpublishcapbility

          public static final int privilege_video_setpublishcapbility

      另请参阅:
        常量字段值

    - #### privilege_screen_publishscreen

          public static final int privilege_screen_publishscreen

      另请参阅:
        常量字段值

    - #### privilege_room_updateappdata

          public static final int privilege_room_updateappdata

      另请参阅:
        常量字段值

    - #### privilege_room_closeroom

          public static final int privilege_room_closeroom

      另请参阅:
        常量字段值

    - #### privilege_room_updateroomstatus

          public static final int privilege_room_updateroomstatus

      另请参阅:
        常量字段值

    - #### privilege_room_kickoutuser

          public static final int privilege_room_kickoutuser

      另请参阅:
        常量字段值

    - #### privilege_room_grantrole

          public static final int privilege_room_grantrole

      另请参阅:
        常量字段值

    - #### privilege_room_updateroleprivilege

          public static final int privilege_room_updateroleprivilege

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### RolePrivilege

          public RolePrivilege()

  - ### 方法详细资料

    - #### setFlag

          public static int setFlag(int value,
                                    int flag)

    - #### clearFlag

          public static int clearFlag(int value,
                                      int flag)

    - #### hasFlag

          public static boolean hasFlag(int value,
                                        int flag)

    - #### setDefaultRole

          public int setDefaultRole(java.lang.String role)

    - #### getDefaultRole

          public java.lang.String getDefaultRole()

    - #### updateRolePrivileges

          public int updateRolePrivileges(java.lang.String role,
                                          int privileges)

    - #### getRolePrivileges

          public int getRolePrivileges(java.lang.String role)

    - #### updateUserRole

          public int updateUserRole(java.lang.String userId,
                                    java.lang.String role)

    - #### updateUserPrivileges

          public int updateUserPrivileges(java.lang.String userId,
                                          int privileges)

    - #### isRole

          public boolean isRole(java.lang.String value)

    - #### hasPrivilege

          public boolean hasPrivilege(int privilege)