?? mvnforumpermission.java
字號:
/*
* $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/auth/MVNForumPermission.java,v 1.15 2006/04/14 17:05:26 minhnn Exp $
* $Author: minhnn $
* $Revision: 1.15 $
* $Date: 2006/04/14 17:05:26 $
*
* ====================================================================
*
* Copyright (C) 2002-2006 by MyVietnam.net
*
* All copyright notices regarding mvnForum MUST remain
* intact in the scripts and in the outputted HTML.
* The "powered by" text/logo with a link back to
* http://www.mvnForum.com and http://www.MyVietnam.net in
* the footer of the pages MUST remain visible when the pages
* are viewed on the internet or intranet.
*
* 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
* 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
*
* Support can be obtained from support forums at:
* http://www.mvnForum.com/mvnforum/index
*
* Correspondence and Marketing Questions can be sent to:
* info at MyVietnam net
*
* @author: Minh Nguyen
* @author: Mai Nguyen
*/
package com.mvnforum.auth;
public interface MVNForumPermission {
/**************************************************************************
* Below are constant, once a constant have been assigned
* a value, it CANNOT be changed (for compatibility).
**************************************************************************/
/**************************************************************************
* Special permissions, range from 0 to 99
**************************************************************************/
/**
* No permission, just use to reserved the value 0
* Normally, this permission should never be used.
*/
public static final int PERMISSION_EMPTY = 0;
/**
* All users will have this permission once they have logged in.
*/
public static final int PERMISSION_AUTHENTICATED = 1;
/**
* If a user have this permission, it means he is revoked all permissions
* This permission is still reserved for future uses.
*/
public static final int PERMISSION_NO_PERMISSIONS = 2;
/**
* All users will have this permission once they have logged in
* and they have activated their account using email activation process
*/
public static final int PERMISSION_ACTIVATED = 3;
/**************************************************************************
* Combined permissions, range from 100 to 199
* A permission in this range is the combination of other individual permissions
* NOTE: values from 200 to (1000-1) are still reserved
**************************************************************************/
/**
* This permission is combination of all permissions,
* but excludes all special permissions.
*/
public static final int PERMISSION_SYSTEM_ADMIN = 100;
/**
*/
public static final int PERMISSION_GROUP_ADMIN = 101;
/**
*/
public static final int PERMISSION_GROUP_MODERATOR = 102;
/**
*/
public static final int PERMISSION_USER_ADMIN = 103;
/**
*/
public static final int PERMISSION_USER_MODERATOR = 104;
/**
*/
public static final int PERMISSION_FORUM_ADMIN = 105;
/**
*/
public static final int PERMISSION_FORUM_MODERATOR = 106;
/**
* Reserved
*/
public static final int PERMISSION_CATEGORY_ADMIN = 107;
/**
* Reserved
*/
public static final int PERMISSION_CATEGORY_MODERATOR = 108;
/**
* Can:
* - login, read thread and post, reply to a thread
*/
public static final int PERMISSION_LIMITED_USER = 109;
/**
* Can:
* - login, read thread and post, reply to a thread
* - Add thread, use avatar, get attachment
*/
public static final int PERMISSION_NORMAL_USER = 110;
/**
* Can:
* - login, read thread and post, reply to a thread
* - Add thread, use avatar, get attachment
* - use attachment, create poll
*/
public static final int PERMISSION_POWER_USER = 111;
/**************************************************************************
* Individual Permissions, range begin at 1000
* A permission in this range is an single permission
* A Combined Permission usually includes some Individual Permissions
**************************************************************************/
/**************************************************************************
* Individual Permissions for global usages, range from 1000 to (2000-1)
* NOTE: values from 2000 and above are still reserved
**************************************************************************/
/**************************************************************************
* Individual Global Permissions which high-level permission, range from 1000 to (1100-1)
**************************************************************************/
/**
* Login
*/
public static final int PERMISSION_LOGIN = 1000;
/**
* Admin the system, this permission should not be used
* instead, use the combined PERMISSION_SYSTEM_ADMIN
*/
//public static final int PERMISSION_ADMIN_SYSTEM = 1001;
/**
* Add a Forum
*/
public static final int PERMISSION_ADD_FORUM = 1002;
/**
* Add a Category
*/
public static final int PERMISSION_ADD_CATEGORY = 1003;
/**
* Edit a Category
*/
public static final int PERMISSION_EDIT_CATEGORY = 1004;
/**
* Delete a Category
*/
public static final int PERMISSION_DELETE_CATEGORY = 1005;
/**
* Send Mail
*/
public static final int PERMISSION_SEND_MAIL = 1006;
/**
* Permission to bypass/ignore the private forum
*/
public static final int PERMISSION_BYPASS_PRIVATE_FORUM = 1007;
/**************************************************************************
* Individual Global Permissions which low-level permission, range from 1100 to (2000-1)
**************************************************************************/
/**
* Use Private Message
*/
public static final int PERMISSION_USE_MESSAGE = 1100;
/**
* Use Avatar
*/
public static final int PERMISSION_USE_AVATAR = 1101;
/**
* Use (upload) Attachment in Private Message
*/
public static final int PERMISSION_ADD_MESSAGE_ATTACHMENT = 1102;
/**************************************************************************
* Individual Permissions that can be applied for individual forum usages,
* (of course it can be applied to all forums), range from 2000 to (3000-1)
**************************************************************************/
/**************************************************************************
* Individual Permissions which high-level permission, range from 2000 to (2100-1)
* Usually Forum Admin has these permissions
**************************************************************************/
/**
* Edit a Forum
*/
public static final int PERMISSION_EDIT_FORUM = 2000;
/**
* Delete a Forum
*/
public static final int PERMISSION_DELETE_FORUM = 2001;
/**
* Assign permission
*/
public static final int PERMISSION_ASSIGN_TO_FORUM = 2002;
/**************************************************************************
* Individual Permissions which low-level permission, range from (2100 to 3000-1)
**************************************************************************/
/**
* Read post in the forum
*/
public static final int PERMISSION_READ_POST = 2100;
/**
* Create add thread
*/
public static final int PERMISSION_ADD_THREAD = 2101;
/**
* Add a post (reply to a thread)
*/
public static final int PERMISSION_ADD_POST = 2102;
/**
* Edit post in the forum
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -