📄 mvnforumpermission.java
字号:
* This permission allow edit all posts and attach all files to the post
*/
public static final int PERMISSION_EDIT_POST = 2103;
/**
* Delete post in the forum
*/
public static final int PERMISSION_DELETE_POST = 2104;
/**
* Add a poll
*/
public static final int PERMISSION_ADD_POLL = 2105;
/**
* Edit a poll
*/
public static final int PERMISSION_EDIT_POLL = 2106;
/**
* Delete a poll
*/
public static final int PERMISSION_DELETE_POLL = 2107;
/**
* Can attach files when posting
*/
public static final int PERMISSION_ADD_ATTACHMENT = 2108;
/**
* Can download attached files
*/
public static final int PERMISSION_GET_ATTACHMENT = 2109;
/**
* Can moderate the forum, such as lock thread or approve pending threads.
* Please note that there is not PERMISSION_MODERATE_POST because
* who can moderate threads obviously can moderate posts too.
*/
public static final int PERMISSION_MODERATE_THREAD = 2110;
/**
* Can edit user own posts
*/
public static final int PERMISSION_EDIT_OWN_POST = 2111;
/**************************************************************************
* MVN CMS Permission Constants
* Individual Permissions that can be applied for individual Channel usages,
* (of course it can be applied to all channels), range from 10,000 to (20,000-1)
**************************************************************************/
/**************************************************************************
* Individual Permissions which high-level permission, range from 10,000 to (10,099)
* Usually CMS Admin has these permissions
**************************************************************************/
/**
* @todo add the description here
*/
public static final int PERMISSION_CMS_ADD_CHANNEL = 10000;
/**
*
*/
public static final int PERMISSION_CMS_EDIT_CHANNEL = 10001;
/**
*
*/
public static final int PERMISSION_CMS_DELETE_CHANNEL = 10002;
/**************************************************************************
* Individual Permissions which low-level permission, range from (10,100 to 10,999)
**************************************************************************/
/**
*
*/
public static final int PERMISSION_CMS_WRITE_CONTENT = 10100;
/**
*
*/
public static final int PERMISSION_CMS_EDIT_CONTENT = 10101;
/**
*
*/
public static final int PERMISSION_CMS_APPROVE_CONTENT = 10102;
/**
*
*/
public static final int PERMISSION_CMS_PUBLISH_CONTENT = 10103;
/**
*
*/
public static final int PERMISSION_CMS_DELETE_CONTENT = 10104;
/**
*
*/
public static final int PERMISSION_CMS_UPLOAD_FILE = 10105;
/**************************************************************************
* Special permissions methods
**************************************************************************/
public boolean isAuthenticated();
public void ensureIsAuthenticated() throws AuthenticationException;
public boolean isActivated();
public void ensureIsActivated() throws AuthenticationException;
/**************************************************************************
* The below methods are used to check global permissions
**************************************************************************/
public boolean canLogin();
public void ensureCanLogin() throws AuthenticationException;
public boolean canAdminSystem();
public void ensureCanAdminSystem() throws AuthenticationException;
public boolean canAddForum();
public void ensureCanAddForum() throws AuthenticationException;
public boolean canAddCategory();
public void ensureCanAddCategory() throws AuthenticationException;
public boolean canEditCategory();
public void ensureCanEditCategory() throws AuthenticationException;
public boolean canDeleteCategory();
public void ensureCanDeleteCategory() throws AuthenticationException;
public boolean canSendMail();
public void ensureCanSendMail() throws AuthenticationException;
public boolean canUseAvatar();
public void ensureCanUseAvatar() throws AuthenticationException;
public boolean canUseMessage();
public void ensureCanUseMessage() throws AuthenticationException;
public boolean canAddMessageAttachment();
public void ensureCanAddMessageAttachment() throws AuthenticationException;
/**************************************************************************
* The below methods are used to check individual forum permissions
**************************************************************************/
public boolean canEditForum(int forumID);
public void ensureCanEditForum(int forumID) throws AuthenticationException;
public boolean canDeleteForum(int forumID);
public void ensureCanDeleteForum(int forumID) throws AuthenticationException;
public boolean canAssignToForum(int forumID);
public void ensureCanAssignToForum(int forumID) throws AuthenticationException;
public boolean canReadPost(int forumID);
public void ensureCanReadPost(int forumID) throws AuthenticationException;
public boolean canAddThread(int forumID);
public void ensureCanAddThread(int forumID) throws AuthenticationException;
public boolean canAddPost(int forumID);
public void ensureCanAddPost(int forumID) throws AuthenticationException;
public boolean canEditPost(int forumID);
public void ensureCanEditPost(int forumID) throws AuthenticationException;
public boolean canEditOwnPost(int forumID);
public void ensureCanEditOwnPost(int forumID) throws AuthenticationException;
public boolean canDeletePost(int forumID);
public void ensureCanDeletePost(int forumID) throws AuthenticationException;
public boolean canAddPoll(int forumID);
public void ensureCanAddPoll(int forumID) throws AuthenticationException;
public boolean canEditPoll(int forumID);
public void ensureCanEditPoll(int forumID) throws AuthenticationException;
public boolean canDeletePoll(int forumID);
public void ensureCanDeletePoll(int forumID) throws AuthenticationException;
public boolean canAddAttachment(int forumID);
public void ensureCanAddAttachment(int forumID) throws AuthenticationException;
public boolean canGetAttachment(int forumID);
public void ensureCanGetAttachment(int forumID) throws AuthenticationException;
public boolean canModerateThread(int forumID);
public void ensureCanModerateThread(int forumID) throws AuthenticationException;
/**************************************************************************
* The below methods are used to check global CHANNEL permissions
**************************************************************************/
public boolean canAddChannel();
public void ensureCanAddChannel() throws AuthenticationException;
public boolean canEditChannel();
public void ensureCanEditChannel() throws AuthenticationException;
public boolean canDeleteChannel();
public void ensureCanDeleteChannel() throws AuthenticationException;
/**************************************************************************
* The below methods are used to check individual CHANNEL permissions
**************************************************************************/
public boolean canWriteContent(int channelID);
public void ensureCanWriteContent(int channelID) throws AuthenticationException;
public boolean canEditContent(int channelID);
public void ensureCanEditContent(int channelID) throws AuthenticationException;
public boolean canApproveContent(int channelID);
public void ensureCanApproveContent(int channelID) throws AuthenticationException;
public boolean canPublishContent(int channelID);
public void ensureCanPublishContent(int channelID) throws AuthenticationException;
public boolean canDeleteContent(int channelID);
public void ensureCanDeleteContent(int channelID) throws AuthenticationException;
/**************************************************************************
* The below methods are utility methods to support checking FORUM permission
**************************************************************************/
public boolean canEditAnyForum();
public void ensureCanEditAnyForum() throws AuthenticationException;
public boolean canModerateThreadInAnyForum();
public void ensureCanModerateThreadInAnyForum() throws AuthenticationException;
/**************************************************************************
* The below methods are utility methods to support checking CHANNEL permission
**************************************************************************/
public boolean canWriteContentInAnyChannel();
public void ensureCanWriteContentInAnyChannel() throws AuthenticationException;
public boolean canEditContentInAnyChannel();
public void ensureCanEditContentInAnyChannel() throws AuthenticationException;
public boolean canApproveContentInAnyChannel();
public void ensureCanApproveContentInAnyChannel() throws AuthenticationException;
public boolean canPublishContentInAnyChannel();
public void ensureCanPublishContentInAnyChannel() throws AuthenticationException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -