|
Clearspace API (2.0.15) 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 |
addAnonymousUserPermission(long permission,
boolean additive)
Add the specified permission to all anonymous/guest users. |
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. |
void |
addRegisteredUserPermission(long permission,
boolean additive)
Add the specified permission to all registered users |
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. |
void |
authenticate(java.lang.String username,
java.lang.String password)
Returns if the username and password are valid; otherwise this method throws an UnauthorizedException. |
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 |
isGroupAuthorized(long permission,
long groupID,
int objectType,
long objectID)
Returns true if the specified group has the specified permission on the specified jive Object. |
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. |
WSJiveObject |
noOp()
Hack to elimite SEVERE errors logged by celtix because the UnauthorizedException isn't getting registered properly in the generated schema and can't be found as an xml type when searching by QName. |
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 |
removeAnonymousUserPermission(long permission,
boolean additive)
Remove the specified permission from anonymous users |
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. |
void |
removeRegisteredUserPermission(long permission,
boolean additive)
Remove the specified permission from all 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 |
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 - - if no user matches the specified userID
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 - - if no user matches the specified userID
void addAnonymousUserPermission(long permission,
boolean additive)
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.
void removeAnonymousUserPermission(long permission,
boolean additive)
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.
void addRegisteredUserPermission(long permission,
boolean additive)
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.
void removeRegisteredUserPermission(long permission,
boolean additive)
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.
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,
CommunityNotFoundException,
UnauthorizedException
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
UnauthorizedException
CommunityNotFoundException
UserNotFoundException
void removeCommunityPermissionFromUser(long permission,
boolean additive,
long userID,
long communityID)
throws UserNotFoundException,
CommunityNotFoundException,
UnauthorizedException
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.
UnauthorizedException
CommunityNotFoundException
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,
CommunityNotFoundException,
UnauthorizedException
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.
UnauthorizedException
CommunityNotFoundException
GroupNotFoundException
void addCommunityPermissionToGroup(long permission,
boolean additive,
long groupID,
long communityID)
throws GroupNotFoundException,
CommunityNotFoundException,
UnauthorizedException
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
UnauthorizedException
CommunityNotFoundException
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.
void authenticate(java.lang.String username,
java.lang.String password)
throws UnauthorizedException
username - The username to authenticate.password - The password .
UnauthorizedException - if the username and password do
not match any existing user.
boolean isGroupAuthorized(long permission,
long groupID,
int objectType,
long objectID)
permission - The permission to test for.groupID - The group to test for the permissionobjectType - The type of object to test against.objectID - The id of the object to test against.
WSJiveObject noOp()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||