com.atlassian.studio.confluence.common.listener
Class DefaultUserCopier

java.lang.Object
  extended by com.atlassian.studio.confluence.common.listener.DefaultUserCopier
All Implemented Interfaces:
UserCopier, org.springframework.beans.factory.InitializingBean

public class DefaultUserCopier
extends java.lang.Object
implements UserCopier, org.springframework.beans.factory.InitializingBean


Constructor Summary
DefaultUserCopier(UserAccessor userAccessor, BatchOperationManager batchOperationManager, ConfluenceSysadminAdministratorImpersonator confluenceSysadminAdministratorImpersonator)
           
 
Method Summary
 void afterPropertiesSet()
           
 void copyActiveUsersWithConfluenceAccessToLicensedConfluenceGroup()
          This method will copy all active users who have Confluence access to the StudioGroups.LICENSED_CONFLUENCE group
 void deactivateUsersWithoutConfluenceAccess()
          This method will deactivate all users who do not have Confluence access
protected  void setCrowService(com.atlassian.crowd.embedded.api.UnfilteredCrowdService crowdService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserCopier

public DefaultUserCopier(UserAccessor userAccessor,
                         BatchOperationManager batchOperationManager,
                         ConfluenceSysadminAdministratorImpersonator confluenceSysadminAdministratorImpersonator)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

copyActiveUsersWithConfluenceAccessToLicensedConfluenceGroup

public void copyActiveUsersWithConfluenceAccessToLicensedConfluenceGroup()
                                                                  throws java.lang.Exception
Description copied from interface: UserCopier
This method will copy all active users who have Confluence access to the StudioGroups.LICENSED_CONFLUENCE group

Specified by:
copyActiveUsersWithConfluenceAccessToLicensedConfluenceGroup in interface UserCopier
Throws:
java.lang.Exception

deactivateUsersWithoutConfluenceAccess

public void deactivateUsersWithoutConfluenceAccess()
                                            throws java.lang.Exception
Description copied from interface: UserCopier
This method will deactivate all users who do not have Confluence access

Specified by:
deactivateUsersWithoutConfluenceAccess in interface UserCopier
Throws:
java.lang.Exception

setCrowService

protected void setCrowService(com.atlassian.crowd.embedded.api.UnfilteredCrowdService crowdService)


Copyright © 2003-2014 Atlassian. All Rights Reserved.