Class DefaultAnonymousUserPermissionsService
- java.lang.Object
-
- com.atlassian.confluence.security.service.DefaultAnonymousUserPermissionsService
-
- All Implemented Interfaces:
AnonymousUserPermissionsService
public class DefaultAnonymousUserPermissionsService extends Object implements AnonymousUserPermissionsService
-
-
Constructor Summary
Constructors Constructor Description DefaultAnonymousUserPermissionsService(PermissionManager permissionManager, SpacePermissionManager spacePermissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUsePermission(boolean enabled)
Set the 'use confluence' permission for the anonymous Confluence user.void
setViewUserProfilesPermission(boolean enabled)
Set the 'view user profiles' permission for the anonymous Confluence user.
-
-
-
Constructor Detail
-
DefaultAnonymousUserPermissionsService
public DefaultAnonymousUserPermissionsService(PermissionManager permissionManager, SpacePermissionManager spacePermissionManager)
-
-
Method Detail
-
setUsePermission
public void setUsePermission(boolean enabled)
Description copied from interface:AnonymousUserPermissionsService
Set the 'use confluence' permission for the anonymous Confluence user.
Note: This is the guard permission for any other anonymous user permissions. If this one is removed then any others will be too.
- Specified by:
setUsePermission
in interfaceAnonymousUserPermissionsService
- Parameters:
enabled
- if true then allow the anonymous user 'use' permission; otherwise disallow.
-
setViewUserProfilesPermission
public void setViewUserProfilesPermission(boolean enabled)
Description copied from interface:AnonymousUserPermissionsService
Set the 'view user profiles' permission for the anonymous Confluence user.- Specified by:
setViewUserProfilesPermission
in interfaceAnonymousUserPermissionsService
- Parameters:
enabled
- if true then assign the permission; otherwise remove it.
-
-