com.atlassian.confluence.security.service
Class DefaultAnonymousUserPermissionsService

java.lang.Object
  extended by com.atlassian.confluence.security.service.DefaultAnonymousUserPermissionsService
All Implemented Interfaces:
AnonymousUserPermissionsService

public class DefaultAnonymousUserPermissionsService
extends Object
implements AnonymousUserPermissionsService


Constructor Summary
DefaultAnonymousUserPermissionsService(PermissionManager permissionManager, SpacePermissionManager spacePermissionManager)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface AnonymousUserPermissionsService
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 interface AnonymousUserPermissionsService
Parameters:
enabled - if true then assign the permission; otherwise remove it.


Copyright © 2003-2012 Atlassian. All Rights Reserved.