|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.webservices.server.PermissionServiceImpl
public class PermissionServiceImpl
| Constructor Summary | |
|---|---|
PermissionServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addAnonymousUserPermission(long permission,
boolean additive)
Add the specified permission to anonymous users. |
void |
addCategoryPermissionToAnonymousUser(long permission,
boolean additive,
long categoryID)
Add the specified permission on the specified category to anonymous users. |
void |
addCategoryPermissionToGroup(long permission,
boolean additive,
long groupID,
long categoryID)
Add the specified permission on the specified category to the group with the specified id. |
void |
addCategoryPermissionToRegisteredUser(long permission,
boolean additive,
long categoryID)
Add the specified permission on the specified category to registered users. |
void |
addCategoryPermissionToUser(long permission,
boolean additive,
long userID,
long categoryID)
Add the specified permission on the specified category to the user with the specified id. |
void |
addForumPermissionToAnonymousUser(long permission,
boolean additive,
long forumID)
Add the specified permission on the specified forum to anonymous users. |
void |
addForumPermissionToGroup(long permission,
boolean additive,
long groupID,
long forumID)
Add the specified permission on the specified forum to the group with the specified id. |
void |
addForumPermissionToRegisteredUser(long permission,
boolean additive,
long forumID)
Remove the specified permission on the specified forum from registered users. |
void |
addForumPermissionToUser(long permission,
boolean additive,
long userID,
long forumID)
Add the specified permission on the specified forum to the user with the specified id. |
void |
addPermissionToGroup(long permission,
boolean additive,
long groupID)
Add the specified permission to the group with the specified id. |
void |
addPermissionToUser(long permission,
boolean additive,
long userID)
Add the specified permission to the user with the specified id. |
void |
addRegisteredUserPermission(long permission,
boolean additive)
Add the specified permission to registered users. |
boolean |
anonymousUserHasPermission(long permission,
boolean additive)
Returns true if the anonymous users have a particular permission globally. |
boolean |
anonymousUserHasPermissionOnCategory(long permission,
boolean additive,
long categoryID)
Returns true if the anonymous users have a particular permission on the category with the specified ID. |
boolean |
anonymousUserHasPermissionOnForum(long permission,
boolean additive,
long forumID)
Returns true if the anonymous users have a particular permission on the forum with the specified ID. |
boolean |
isAuthorized(long permission)
Returns true if the current user has globally has the specified permission. |
boolean |
isAuthorizedOnCategory(long permission,
long categoryID)
Returns true if the current user has the permission specified on the specified category. |
boolean |
isAuthorizedOnForum(long permission,
long forumID)
Returns true if the current user has the permission specified on the specified forum. |
boolean |
isUserAuthorized(long permission,
long userID)
Checks to see if a particular user has a praticular permission system wide. |
boolean |
isUserAuthorizedOnCategory(long permission,
long userID,
long categoryID)
Checks to see if a particular user has a particular permission on the specified category. |
boolean |
isUserAuthorizedOnForum(long permission,
long userID,
long forumID)
Checks to see if a particular user has a particular permission on the specified forum. |
boolean |
registeredUserHasPermission(long permission,
boolean additive)
Returns true if registered users have a particular permission globally. |
boolean |
registeredUserHasPermissionOnCategory(long permission,
boolean additive,
long categoryID)
Returns true if registered users have a particular permission on the category with the specified ID. |
boolean |
registeredUserHasPermissionOnForum(long permission,
boolean additive,
long forumID)
Returns true if registered users have a particular permission on the forum with the specified ID. |
void |
removeAnonymousUserPermission(long permission,
boolean additive)
Remove the specified permission from anonymous users. |
void |
removeCategoryPermissionFromAnonymousUser(long permission,
boolean additive,
long categoryID)
Remove the specified permission on the specified category from anonymous users. |
void |
removeCategoryPermissionFromGroup(long permission,
boolean additive,
long groupID,
long categoryID)
Remove the specified permission on the specified category from the group with the specified id. |
void |
removeCategoryPermissionFromRegisteredUser(long permission,
boolean additive,
long categoryID)
Remove the specified permission on the specified category from registered users. |
void |
removeCategoryPermissionFromUser(long permission,
boolean additive,
long userID,
long categoryID)
Remove the specified permission on the specified category from the user with the specified id. |
void |
removeForumPermissionFromAnonymousUser(long permission,
boolean additive,
long forumID)
Remove the specified permission on the specified forum to anonymous users. |
void |
removeForumPermissionFromGroup(long permission,
boolean additive,
long groupID,
long forumID)
Remove the specified permission on the specified forum from the group with the specified id. |
void |
removeForumPermissionFromRegisteredUser(long permission,
boolean additive,
long forumID)
Remove the specified permission on the specified forum to registered users. |
void |
removeForumPermissionFromUser(long permission,
boolean additive,
long userID,
long forumID)
Remove the specified permission on the specified forum from the user with the specified id. |
void |
removePermissionFromGroup(long permission,
boolean additive,
long groupID)
Remove the specified permission from the group with the specified id. |
void |
removePermissionFromUser(long permission,
boolean additive,
long userID)
Remove the specified permission from the user with the specified id. |
void |
removeRegisteredUserPermission(long permission,
boolean additive)
Remove the specified permission from registered users. |
long[] |
usersWithPermission(long permission,
boolean additive)
Returns all the userID's of users with a particular permission. |
int |
usersWithPermissionCount(long permission,
boolean additive)
Returns a count of the users that have a particular permission. |
int |
usersWithPermissionCountOnCategory(long permission,
boolean additive,
long categoryID)
Returns a count of the users that have a particular permission on the specified category. |
int |
usersWithPermissionCountOnForum(long permission,
boolean additive,
long forumID)
Returns a count of the users that have a particular permission on the specified forum. |
long[] |
usersWithPermissionOnCategory(long permission,
boolean additive,
long categoryID)
Returns all the userID's of users with a particular permission on the specified category. |
long[] |
usersWithPermissionOnForum(long permission,
boolean additive,
long forumID)
Returns all the userID's of users with a particular permission on the specified forum. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionServiceImpl()
| Method Detail |
|---|
public void addPermissionToUser(long permission,
boolean additive,
long userID)
throws UserNotFoundException
PermissionService
addPermissionToUser in interface PermissionServicepermission - The permission to add to a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to add a permission too.
UserNotFoundException
public void removePermissionFromUser(long permission,
boolean additive,
long userID)
throws UserNotFoundException
PermissionService
removePermissionFromUser in interface PermissionServicepermission - The permission remove from a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to remove a permission from.
UserNotFoundException
public void addAnonymousUserPermission(long permission,
boolean additive)
throws UserNotFoundException
PermissionService
addAnonymousUserPermission in interface PermissionServicepermission - The permission to add to anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
UserNotFoundException
public void removeAnonymousUserPermission(long permission,
boolean additive)
throws UserNotFoundException
PermissionService
removeAnonymousUserPermission in interface PermissionServicepermission - The permission remove from anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
UserNotFoundException
public void addRegisteredUserPermission(long permission,
boolean additive)
throws UserNotFoundException
PermissionService
addRegisteredUserPermission in interface PermissionServicepermission - The permission to add to registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
UserNotFoundException
public void removeRegisteredUserPermission(long permission,
boolean additive)
throws UserNotFoundException
PermissionService
removeRegisteredUserPermission in interface PermissionServicepermission - The permission remove from registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
UserNotFoundException
public void addPermissionToGroup(long permission,
boolean additive,
long groupID)
throws GroupNotFoundException
PermissionService
addPermissionToGroup in interface PermissionServicepermission - The permission to add to a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to add a permission too.
GroupNotFoundException
public void removePermissionFromGroup(long permission,
boolean additive,
long groupID)
throws GroupNotFoundException
PermissionService
removePermissionFromGroup in interface PermissionServicepermission - The permission remove from a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to remove a permission from.
GroupNotFoundException
public void addForumPermissionToUser(long permission,
boolean additive,
long userID,
long forumID)
throws UserNotFoundException
PermissionService
addForumPermissionToUser in interface PermissionServicepermission - The permission to add to a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to add a permission too.forumID - The ID of the forum to add the permission on
UserNotFoundException
public void removeForumPermissionFromUser(long permission,
boolean additive,
long userID,
long forumID)
throws UserNotFoundException
PermissionService
removeForumPermissionFromUser in interface PermissionServicepermission - The permission remove from a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to remove a permission from.forumID - The ID of the forum to remove the permission from.
UserNotFoundException
public void addForumPermissionToAnonymousUser(long permission,
boolean additive,
long forumID)
PermissionService
addForumPermissionToAnonymousUser in interface PermissionServicepermission - The permission to add to anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to add the permission on
public void removeForumPermissionFromAnonymousUser(long permission,
boolean additive,
long forumID)
PermissionService
removeForumPermissionFromAnonymousUser in interface PermissionServicepermission - The permission remove from to anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to remove the permission from.
public void addForumPermissionToRegisteredUser(long permission,
boolean additive,
long forumID)
PermissionService
addForumPermissionToRegisteredUser in interface PermissionServicepermission - The permission remove from registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to remove the permission from.
public void removeForumPermissionFromRegisteredUser(long permission,
boolean additive,
long forumID)
PermissionService
removeForumPermissionFromRegisteredUser in interface PermissionServicepermission - The permission remove from to registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to remove the permission from.
public void addCategoryPermissionToUser(long permission,
boolean additive,
long userID,
long categoryID)
throws UserNotFoundException
PermissionService
addCategoryPermissionToUser in interface PermissionServicepermission - The permission to add to a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to add a permission too.categoryID - The ID of the category to add the permission on
UserNotFoundException
public void removeCategoryPermissionFromUser(long permission,
boolean additive,
long userID,
long categoryID)
throws UserNotFoundException
PermissionService
removeCategoryPermissionFromUser in interface PermissionServicepermission - The permission remove from a user.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.userID - The id of the user to remove a permission from.categoryID - The ID of the category to remove the permission from.
UserNotFoundException
public void addCategoryPermissionToAnonymousUser(long permission,
boolean additive,
long categoryID)
PermissionService
addCategoryPermissionToAnonymousUser in interface PermissionServicepermission - The permission to add to anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to add the permission on
public void removeCategoryPermissionFromAnonymousUser(long permission,
boolean additive,
long categoryID)
PermissionService
removeCategoryPermissionFromAnonymousUser in interface PermissionServicepermission - The permission remove from anonymous users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to remove the permission from.
public void addCategoryPermissionToRegisteredUser(long permission,
boolean additive,
long categoryID)
PermissionService
addCategoryPermissionToRegisteredUser in interface PermissionServicepermission - The permission to add to registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to add the permission on
public void removeCategoryPermissionFromRegisteredUser(long permission,
boolean additive,
long categoryID)
PermissionService
removeCategoryPermissionFromRegisteredUser in interface PermissionServicepermission - The permission remove from registered users.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to remove the permission from.
public void removeCategoryPermissionFromGroup(long permission,
boolean additive,
long groupID,
long categoryID)
throws GroupNotFoundException
PermissionService
removeCategoryPermissionFromGroup in interface PermissionServicepermission - The permission remove from a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to remove a permission from.categoryID - The ID of the category to remove the permission from.
GroupNotFoundException
public void addForumPermissionToGroup(long permission,
boolean additive,
long groupID,
long forumID)
throws GroupNotFoundException
PermissionService
addForumPermissionToGroup in interface PermissionServicepermission - The permission to add to a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to add a permission too.forumID - The ID of the forum to add the permission on
GroupNotFoundException
public void removeForumPermissionFromGroup(long permission,
boolean additive,
long groupID,
long forumID)
throws GroupNotFoundException
PermissionService
removeForumPermissionFromGroup in interface PermissionServicepermission - The permission remove from a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to remove a permission from.forumID - The ID of the forum to remove the permission from.
GroupNotFoundException
public void addCategoryPermissionToGroup(long permission,
boolean additive,
long groupID,
long categoryID)
throws GroupNotFoundException
PermissionService
addCategoryPermissionToGroup in interface PermissionServicepermission - The permission to add to a group.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.groupID - The id of the group to add a permission too.categoryID - The ID of the category to add the permission on
GroupNotFoundExceptionpublic boolean isAuthorized(long permission)
PermissionService
isAuthorized in interface PermissionServicepermission - a permission type.
public boolean isAuthorizedOnForum(long permission,
long forumID)
throws ForumNotFoundException
PermissionService
isAuthorizedOnForum in interface PermissionServicepermission - a permission type.forumID - to see if the current user has permission on.
ForumNotFoundException
public boolean isAuthorizedOnCategory(long permission,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
isAuthorizedOnCategory in interface PermissionServicepermission - a permission type.categoryID - to see if the current user has permission on.
ForumCategoryNotFoundException
public boolean isUserAuthorized(long permission,
long userID)
PermissionService
isUserAuthorized in interface PermissionServicepermission - The permission to check.userID - The id of the user
public boolean isUserAuthorizedOnCategory(long permission,
long userID,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
isUserAuthorizedOnCategory in interface PermissionServicepermission - The permission to check.userID - The id of the user.categoryID - The id of the category.
ForumCategoryNotFoundException - If the specified category does not exist.
public boolean isUserAuthorizedOnForum(long permission,
long userID,
long forumID)
throws ForumNotFoundException
PermissionService
isUserAuthorizedOnForum in interface PermissionServicepermission - The permission to check.userID - The id of the user.forumID - The id of the forum.
ForumNotFoundException - If the specified form does not exist.
public boolean registeredUserHasPermission(long permission,
boolean additive)
PermissionService
registeredUserHasPermission in interface PermissionServicepermission - The permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
public boolean registeredUserHasPermissionOnForum(long permission,
boolean additive,
long forumID)
throws UserNotFoundException,
ForumNotFoundException
PermissionService
registeredUserHasPermissionOnForum in interface PermissionServicepermission - The permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to check the permission on.
UserNotFoundException
ForumNotFoundException
public boolean registeredUserHasPermissionOnCategory(long permission,
boolean additive,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
registeredUserHasPermissionOnCategory in interface PermissionServicepermission - The permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to check the permission on.
ForumCategoryNotFoundException
public boolean anonymousUserHasPermission(long permission,
boolean additive)
PermissionService
anonymousUserHasPermission in interface PermissionServicepermission - The permission to see if anonymous users have this permission.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
public boolean anonymousUserHasPermissionOnForum(long permission,
boolean additive,
long forumID)
throws ForumNotFoundException
PermissionService
anonymousUserHasPermissionOnForum in interface PermissionServicepermission - The permission to see if anonymous users have this permission on the specified forum.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to check to see if a user has permission on.
ForumNotFoundException
public boolean anonymousUserHasPermissionOnCategory(long permission,
boolean additive,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
anonymousUserHasPermissionOnCategory in interface PermissionServicepermission - The permission to see if anonymous users have this permission on the specified category.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to check to see if a user has permission on.
ForumCategoryNotFoundException
public int usersWithPermissionCount(long permission,
boolean additive)
PermissionService
usersWithPermissionCount in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
public long[] usersWithPermission(long permission,
boolean additive)
PermissionService
usersWithPermission in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.
public int usersWithPermissionCountOnForum(long permission,
boolean additive,
long forumID)
throws ForumNotFoundException
PermissionService
usersWithPermissionCountOnForum in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objectsforumID - The id of the forum..
ForumNotFoundException
public long[] usersWithPermissionOnForum(long permission,
boolean additive,
long forumID)
throws ForumNotFoundException
PermissionService
usersWithPermissionOnForum in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.forumID - The ID of the forum to get users with the specified permission.
ForumNotFoundException
public int usersWithPermissionCountOnCategory(long permission,
boolean additive,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
usersWithPermissionCountOnCategory in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objectscategoryID - The id of the category..
ForumCategoryNotFoundException
public long[] usersWithPermissionOnCategory(long permission,
boolean additive,
long categoryID)
throws ForumCategoryNotFoundException
PermissionService
usersWithPermissionOnCategory in interface PermissionServicepermission - the permission to check.additive - True if the permission should be 'added' to the
permissions retrieved from a parent object(s). This means that if the permission
has been already set in a parent object, it will be inherited by all child objects.categoryID - The ID of the category to get users with the specified permission.
ForumCategoryNotFoundException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||