|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.myvietnam.mvnplugin.mvnforum.auth.AbstractPermission
Field Summary | |
protected boolean |
adminSystem
|
protected boolean |
authenticated
global permissions variables |
protected boolean |
deleteCategory
|
protected boolean |
deleteForum
|
protected boolean |
deletePoll
|
protected boolean |
deletePost
|
protected boolean |
editCategory
|
protected boolean |
editForum
|
protected boolean |
editPoll
|
protected boolean |
editPost
|
static int[] |
forumPermissionArray
|
protected boolean |
getAttachment
|
static int[] |
globalPermissionArray
|
protected boolean |
login
|
protected boolean |
newCategory
|
protected boolean |
newForum
|
protected boolean |
newPoll
|
protected boolean |
newPost
|
protected boolean |
newThread
|
protected boolean |
readPost
|
protected boolean |
sendMail
|
protected boolean |
useAttachment
|
protected boolean |
useAvatar
|
protected boolean |
useMessage
|
Constructor Summary | |
protected |
AbstractPermission()
constructor |
Method Summary | |
boolean |
canAdminSystem()
|
boolean |
canDeleteCategory()
|
boolean |
canDeleteForum()
|
boolean |
canDeletePoll(int forumID)
|
boolean |
canDeletePost(int forumID)
|
boolean |
canEditCategory()
|
boolean |
canEditForum()
|
boolean |
canEditPoll(int forumID)
|
boolean |
canEditPost(int forumID)
|
boolean |
canGetAttachment(int forumID)
|
boolean |
canLogin()
global permissions methods |
boolean |
canNewCategory()
|
boolean |
canNewForum()
|
boolean |
canNewPoll(int forumID)
|
boolean |
canNewPost(int forumID)
|
boolean |
canNewThread(int forumID)
|
boolean |
canReadPost(int forumID)
The below methods are used to check individual forum permissions |
boolean |
canSendMail()
|
boolean |
canUseAttachment(int forumID)
|
boolean |
canUseAvatar()
|
boolean |
canUseMessage()
|
void |
ensureCanAdminSystem()
|
void |
ensureCanDeleteCategory()
|
void |
ensureCanDeleteForum()
|
void |
ensureCanDeletePoll(int forumID)
|
void |
ensureCanDeletePost(int forumID)
|
void |
ensureCanEditCategory()
|
void |
ensureCanEditForum()
|
void |
ensureCanEditPoll(int forumID)
|
void |
ensureCanEditPost(int forumID)
|
void |
ensureCanGetAttachment(int forumID)
|
void |
ensureCanLogin()
|
void |
ensureCanNewCategory()
|
void |
ensureCanNewForum()
|
void |
ensureCanNewPoll(int forumID)
|
void |
ensureCanNewPost(int forumID)
|
void |
ensureCanNewThread(int forumID)
|
void |
ensureCanReadPost(int forumID)
|
void |
ensureCanSendMail()
|
void |
ensureCanUseAttachment(int forumID)
|
void |
ensureCanUseAvatar()
|
void |
ensureCanUseMessage()
|
void |
ensureIsAuthenticated()
|
static java.lang.String |
getDescription(int permission)
The below methods are static methods |
boolean |
isAuthenticated()
Special permissions methods |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int[] globalPermissionArray
public static final int[] forumPermissionArray
protected boolean authenticated
protected boolean login
protected boolean adminSystem
protected boolean newForum
protected boolean editForum
protected boolean deleteForum
protected boolean newCategory
protected boolean editCategory
protected boolean deleteCategory
protected boolean sendMail
protected boolean useAvatar
protected boolean useMessage
protected boolean readPost
protected boolean newThread
protected boolean newPost
protected boolean editPost
protected boolean deletePost
protected boolean newPoll
protected boolean editPoll
protected boolean deletePoll
protected boolean useAttachment
protected boolean getAttachment
Constructor Detail |
protected AbstractPermission()
Method Detail |
public static java.lang.String getDescription(int permission) throws net.myvietnam.mvncore.exception.BadInputException
net.myvietnam.mvncore.exception.BadInputException
public boolean isAuthenticated()
isAuthenticated
in interface MVNForumPermission
public void ensureIsAuthenticated() throws AuthenticationException
ensureIsAuthenticated
in interface MVNForumPermission
AuthenticationException
public boolean canLogin()
canLogin
in interface MVNForumPermission
public void ensureCanLogin() throws AuthenticationException
ensureCanLogin
in interface MVNForumPermission
AuthenticationException
public boolean canAdminSystem()
canAdminSystem
in interface MVNForumPermission
public void ensureCanAdminSystem() throws AuthenticationException
ensureCanAdminSystem
in interface MVNForumPermission
AuthenticationException
public boolean canNewForum()
canNewForum
in interface MVNForumPermission
public void ensureCanNewForum() throws AuthenticationException
ensureCanNewForum
in interface MVNForumPermission
AuthenticationException
public boolean canEditForum()
canEditForum
in interface MVNForumPermission
public void ensureCanEditForum() throws AuthenticationException
ensureCanEditForum
in interface MVNForumPermission
AuthenticationException
public boolean canDeleteForum()
canDeleteForum
in interface MVNForumPermission
public void ensureCanDeleteForum() throws AuthenticationException
ensureCanDeleteForum
in interface MVNForumPermission
AuthenticationException
public boolean canNewCategory()
canNewCategory
in interface MVNForumPermission
public void ensureCanNewCategory() throws AuthenticationException
ensureCanNewCategory
in interface MVNForumPermission
AuthenticationException
public boolean canEditCategory()
canEditCategory
in interface MVNForumPermission
public void ensureCanEditCategory() throws AuthenticationException
ensureCanEditCategory
in interface MVNForumPermission
AuthenticationException
public boolean canDeleteCategory()
canDeleteCategory
in interface MVNForumPermission
public void ensureCanDeleteCategory() throws AuthenticationException
ensureCanDeleteCategory
in interface MVNForumPermission
AuthenticationException
public boolean canSendMail()
canSendMail
in interface MVNForumPermission
public void ensureCanSendMail() throws AuthenticationException
ensureCanSendMail
in interface MVNForumPermission
AuthenticationException
public boolean canUseAvatar()
canUseAvatar
in interface MVNForumPermission
public void ensureCanUseAvatar() throws AuthenticationException
ensureCanUseAvatar
in interface MVNForumPermission
AuthenticationException
public boolean canUseMessage()
canUseMessage
in interface MVNForumPermission
public void ensureCanUseMessage() throws AuthenticationException
ensureCanUseMessage
in interface MVNForumPermission
AuthenticationException
public boolean canReadPost(int forumID)
MVNForumPermission
canReadPost
in interface MVNForumPermission
public void ensureCanReadPost(int forumID) throws AuthenticationException
ensureCanReadPost
in interface MVNForumPermission
AuthenticationException
public boolean canNewThread(int forumID)
canNewThread
in interface MVNForumPermission
public void ensureCanNewThread(int forumID) throws AuthenticationException
ensureCanNewThread
in interface MVNForumPermission
AuthenticationException
public boolean canNewPost(int forumID)
canNewPost
in interface MVNForumPermission
public void ensureCanNewPost(int forumID) throws AuthenticationException
ensureCanNewPost
in interface MVNForumPermission
AuthenticationException
public boolean canEditPost(int forumID)
canEditPost
in interface MVNForumPermission
public void ensureCanEditPost(int forumID) throws AuthenticationException
ensureCanEditPost
in interface MVNForumPermission
AuthenticationException
public boolean canDeletePost(int forumID)
canDeletePost
in interface MVNForumPermission
public void ensureCanDeletePost(int forumID) throws AuthenticationException
ensureCanDeletePost
in interface MVNForumPermission
AuthenticationException
public boolean canNewPoll(int forumID)
canNewPoll
in interface MVNForumPermission
public void ensureCanNewPoll(int forumID) throws AuthenticationException
ensureCanNewPoll
in interface MVNForumPermission
AuthenticationException
public boolean canEditPoll(int forumID)
canEditPoll
in interface MVNForumPermission
public void ensureCanEditPoll(int forumID) throws AuthenticationException
ensureCanEditPoll
in interface MVNForumPermission
AuthenticationException
public boolean canDeletePoll(int forumID)
canDeletePoll
in interface MVNForumPermission
public void ensureCanDeletePoll(int forumID) throws AuthenticationException
ensureCanDeletePoll
in interface MVNForumPermission
AuthenticationException
public boolean canUseAttachment(int forumID)
canUseAttachment
in interface MVNForumPermission
public void ensureCanUseAttachment(int forumID) throws AuthenticationException
ensureCanUseAttachment
in interface MVNForumPermission
AuthenticationException
public boolean canGetAttachment(int forumID)
canGetAttachment
in interface MVNForumPermission
public void ensureCanGetAttachment(int forumID) throws AuthenticationException
ensureCanGetAttachment
in interface MVNForumPermission
AuthenticationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |