|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.proxy.PermissionsManagerProxy
public class PermissionsManagerProxy
Constructor Summary | |
---|---|
PermissionsManagerProxy(int objectType,
long objectID,
Permissions permissions)
|
Method Summary | |
---|---|
void |
addAnonymousUserPermission(PermissionType permissionType,
long permission)
Add a permission of the specified PermissionType for anonymous users. |
void |
addGroupPermission(Group group,
PermissionType permissionType,
long permission)
Grants a group a particular permission. |
void |
addRegisteredUserPermission(PermissionType permissionType,
long permission)
Add a permission of the specified PermissionType for registered users. |
void |
addUserPermission(User user,
PermissionType permissionType,
long permission)
Add a permission of the specified PermissionType for the specified user. |
boolean |
anonymousUserHasPermission(PermissionType permissionType,
long permission)
Returns true if the anonymous users have a particular permission. |
java.util.Iterator |
groupsWithPermission(PermissionType permissionType,
long permission)
Returns an Iterator of groups with a particular permission. |
int |
groupsWithPermissionCount(PermissionType permissionType,
long permission)
Returns a count of the groups that have a particular permission. |
void |
permissionModificationDetected()
Is called when a permission is modified. |
boolean |
registeredUserHasPermission(PermissionType permissionType,
long permission)
Returns true if registered users have a particular permission. |
void |
removeAllGroupPermissions(PermissionType permissionType)
Revokes all group permissions. |
void |
removeAllUserPermissions(PermissionType permissionType)
Removes all user permissions. |
void |
removeAnonymousUserPermission(PermissionType permissionType,
long permission)
Removes a permission of the specified PermissionType for anonymous users. |
void |
removeGroupPermission(Group group,
PermissionType permissionType,
long permission)
Removes a permission of the specified PermissionType for a group. |
void |
removeRegisteredUserPermission(PermissionType permissionType,
long permission)
Removes a permission of the specified PermissionType for registered users. |
void |
removeUserPermission(User user,
PermissionType permissionType,
long permission)
Removes a permission of the specified PermissionType for the specified user. |
java.util.Iterator |
usersWithPermission(PermissionType permissionType,
long permission)
Returns all the userID's of users with a particular permission. |
int |
usersWithPermissionCount(PermissionType permissionType,
long permission)
Returns a count of the users that have a particular permission. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionsManagerProxy(int objectType, long objectID, Permissions permissions)
Method Detail |
---|
public void addUserPermission(User user, PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
addUserPermission
in interface PermissionsManager
user
- the User to add a permission to.permissionType
- the type of permission to add.permission
- the permission to add.
UnauthorizedException
- if does not have proper admin permissions.public void addAnonymousUserPermission(PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
addAnonymousUserPermission
in interface PermissionsManager
permissionType
- the type of permission to add.permission
- the permission to add.
UnauthorizedException
- if does not have proper admin permissions.public void addRegisteredUserPermission(PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
addRegisteredUserPermission
in interface PermissionsManager
permissionType
- the type of permission to add.permission
- the permission to add.
UnauthorizedException
- if does not have proper admin permissions.public void removeUserPermission(User user, PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
removeUserPermission
in interface PermissionsManager
user
- the User to remove a permission from.permissionType
- the type of permission to remove.
UnauthorizedException
- if does not have proper admin permissions.public void removeAnonymousUserPermission(PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
removeAnonymousUserPermission
in interface PermissionsManager
permissionType
- the type of permission to remove.
UnauthorizedException
- if does not have proper admin permissions.public void removeRegisteredUserPermission(PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
removeRegisteredUserPermission
in interface PermissionsManager
permissionType
- the type of permission to remove.
UnauthorizedException
- if does not have proper admin permissions.public void removeAllUserPermissions(PermissionType permissionType) throws UnauthorizedException
PermissionsManager
removeAllUserPermissions
in interface PermissionsManager
permissionType
- the type of permissions to remove.
UnauthorizedException
- if not a system admin.public boolean anonymousUserHasPermission(PermissionType permissionType, long permission)
PermissionsManager
anonymousUserHasPermission
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public boolean registeredUserHasPermission(PermissionType permissionType, long permission)
PermissionsManager
registeredUserHasPermission
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public java.util.Iterator usersWithPermission(PermissionType permissionType, long permission)
PermissionsManager
usersWithPermission
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public int usersWithPermissionCount(PermissionType permissionType, long permission)
PermissionsManager
usersWithPermissionCount
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public void addGroupPermission(Group group, PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
addGroupPermission
in interface PermissionsManager
group
- the group to grant a permission to.permissionType
- the type of permission to add.permission
- the permission to grant the group.
UnauthorizedException
- if does not have proper admin permissions.public void removeGroupPermission(Group group, PermissionType permissionType, long permission) throws UnauthorizedException
PermissionsManager
removeGroupPermission
in interface PermissionsManager
group
- the group to remove the permission from.permissionType
- the type of permission to remove.permission
- the permission to remove.
UnauthorizedException
- if does not have proper admin permissions.public void removeAllGroupPermissions(PermissionType permissionType) throws UnauthorizedException
PermissionsManager
removeAllGroupPermissions
in interface PermissionsManager
permissionType
- the type of permissions to remove.
UnauthorizedException
- if not a system admin.public java.util.Iterator groupsWithPermission(PermissionType permissionType, long permission)
PermissionsManager
groupsWithPermission
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public int groupsWithPermissionCount(PermissionType permissionType, long permission)
PermissionsManager
groupsWithPermissionCount
in interface PermissionsManager
permissionType
- the type of permission to check.permission
- the permission to check.
public void permissionModificationDetected()
PermissionsManager
permissionModificationDetected
in interface PermissionsManager
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |