|
Clearspace API (1.10.16) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PermissionService
Provides a webservice for managing permissions on users and groups.
Permissions| Method Summary | |
|---|---|
void |
addCommunityPermissionToGroup(long permission,
boolean additive,
long groupID,
long communityID)
Add the specified permission on the specified community to the group with the specified id. |
void |
addCommunityPermissionToUser(long permission,
boolean additive,
long userID,
long communityID)
Add the specified permission on the specified community 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. |
boolean |
anonymousUserHasPermission(long permission,
boolean additive)
Returns true if the anonymous users have a particular permission globally. |
boolean |
anonymousUserHasPermissionOnCommunity(long permission,
boolean additive,
long communityID)
Returns true if the anonymous users have a particular permission on the community with the specified ID. |
boolean |
isAuthorized(long permission)
Returns true if the current user has globally has the specified permission. |
boolean |
isAuthorizedOnCommunity(long permission,
long communityID)
Returns true if the current user has the permission specified on the specified community. |
boolean |
isUserAuthorized(long permission,
long userID)
Check to see if the specified user has the particular permission system wide. |
boolean |
isUserAuthorizedOnCommunity(long permission,
long userID,
long communityID)
Check to see if the specified user has the particular permission on the specified community. |
boolean |
registeredUserHasPermission(long permission,
boolean additive)
Returns true if registered users have a particular permission globally. |
boolean |
registeredUserHasPermissionOnCommunity(long permission,
boolean additive,
long communityID)
Returns true if registered users have a particular permission on the community with the specified ID. |
void |
removeCommunityPermissionFromGroup(long permission,
boolean additive,
long groupID,
long communityID)
Remove the specified permission on the specified community from the group with the specified id. |
void |
removeCommunityPermissionFromUser(long permission,
boolean additive,
long userID,
long communityID)
Remove the specified permission on the specified community 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. |
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 |
usersWithPermissionCountOnCommunity(long permission,
boolean additive,
long communityID)
Returns a count of the users that have a particular permission on the specified community. |
long[] |
usersWithPermissionOnCommunity(long permission,
boolean additive,
long communityID)
Returns all the userID's of users with a particular permission on the specified community. |
| Method Detail |
|---|
void addPermissionToUser(long permission,
boolean additive,
long userID)
throws UserNotFoundException
permission - 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
void removePermissionFromUser(long permission,
boolean additive,
long userID)
throws UserNotFoundException
permission - 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
void addPermissionToGroup(long permission,
boolean additive,
long groupID)
throws GroupNotFoundException
permission - 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
void removePermissionFromGroup(long permission,
boolean additive,
long groupID)
throws GroupNotFoundException
permission - 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
void addCommunityPermissionToUser(long permission,
boolean additive,
long userID,
long communityID)
throws UserNotFoundException
permission - 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.communityID - The ID of the community to add the permission on
UserNotFoundException
void removeCommunityPermissionFromUser(long permission,
boolean additive,
long userID,
long communityID)
throws UserNotFoundException
permission - 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.communityID - The ID of the community to remove the permission from.
UserNotFoundExceptionboolean isAuthorized(long permission)
permission - a permission type.
boolean isAuthorizedOnCommunity(long permission,
long communityID)
throws CommunityNotFoundException
permission - a permission type.communityID - to see if the current user has permission on.
CommunityNotFoundException
boolean registeredUserHasPermission(long permission,
boolean additive)
permission - 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.
boolean registeredUserHasPermissionOnCommunity(long permission,
boolean additive,
long communityID)
throws CommunityNotFoundException
permission - 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.communityID - The ID of the community to check the permission on.
CommunityNotFoundException
boolean anonymousUserHasPermission(long permission,
boolean additive)
permission - 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.
boolean anonymousUserHasPermissionOnCommunity(long permission,
boolean additive,
long communityID)
throws CommunityNotFoundException
permission - The permission to see if anonymous users have this permission on the specified community.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.communityID - The ID of the community to check to see if a user has permission on.
CommunityNotFoundException
int usersWithPermissionCount(long permission,
boolean additive)
permission - 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.
long[] usersWithPermission(long permission,
boolean additive)
permission - 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.
int usersWithPermissionCountOnCommunity(long permission,
boolean additive,
long communityID)
throws CommunityNotFoundException
permission - 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 objectscommunityID - The id of the community..
CommunityNotFoundException
long[] usersWithPermissionOnCommunity(long permission,
boolean additive,
long communityID)
throws CommunityNotFoundException
permission - 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.communityID - The ID of the community to get users with the specified permission.
CommunityNotFoundException
void removeCommunityPermissionFromGroup(long permission,
boolean additive,
long groupID,
long communityID)
throws GroupNotFoundException
permission - 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.communityID - The ID of the community to remove the permission from.
GroupNotFoundException
void addCommunityPermissionToGroup(long permission,
boolean additive,
long groupID,
long communityID)
throws GroupNotFoundException
permission - 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.communityID - The ID of the community to add the permission on
GroupNotFoundException
boolean isUserAuthorized(long permission,
long userID)
permission - The permission to add to check.userID - The id of the user.
boolean isUserAuthorizedOnCommunity(long permission,
long userID,
long communityID)
throws CommunityNotFoundException
permission - The permission to add to check.userID - The id of the user.communityID - The id of the community.
CommunityNotFoundException - Thrown if the specified community does not exist.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||