com.atlassian.studio.confluence.importexport
Class GroupMappingBuilder

java.lang.Object
  extended by com.atlassian.studio.confluence.importexport.GroupMappingBuilder

public class GroupMappingBuilder
extends java.lang.Object

Builds the group mapping for PermissionsImportPreProcessor.


Constructor Summary
GroupMappingBuilder(SettingsManager settingsManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> build(java.lang.String nullableSourceDefaultUsersGroup)
          Builds a map adding a default user group key value pair and a administrator group one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupMappingBuilder

public GroupMappingBuilder(SettingsManager settingsManager,
                           com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
Method Detail

build

public java.util.Map<java.lang.String,java.lang.String> build(@Nullable
                                                              java.lang.String nullableSourceDefaultUsersGroup)
Builds a map adding a default user group key value pair and a administrator group one. For the default user group the key is the source default users group and as value it has the target default users group. Source can be null, in this case it will be substituted by 'confluece-users'. If the flavour is 'Alacarte' the target group will be 'users', otherwise it will use the one defined in Settings.

Parameters:
nullableSourceDefaultUsersGroup - or null if the source group is not defined in the export file.
Returns:
a map with the default users group mapping from source to target.


Copyright © 2003-2014 Atlassian. All Rights Reserved.