public class PermissionsAdministratorBuilder extends Object
Constructor and Description |
---|
PermissionsAdministratorBuilder() |
Modifier and Type | Method and Description |
---|---|
EditPermissionsAdministrator |
buildEditGlobalPermissionAdministrator(com.atlassian.user.User user) |
EditPermissionsAdministrator |
buildEditGlobalPermissionAdministrator(com.atlassian.user.User user,
List<String> usersToAdd,
List<String> groupsToAdd)
Returns a global edit permissions administrator and populates its fields.
|
EditPermissionsAdministrator |
buildEditSpaceAdministrator(Space space,
com.atlassian.user.User user,
List<String> usersToAdd,
List<String> groupsToAdd)
Returns a space edit permissions administrator and populates its fields.
|
PermissionsAdministrator |
buildGlobalPermissionAdministrator()
Returns a global permissions administrator (for viewiing) and populates its fields.
|
PermissionsAdministrator |
buildSpacePermissionAdministrator(Space space)
Returns a space permissions administrator (for viewiing) and populates its fields.
|
void |
setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager) |
void |
setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker) |
void |
setSettingsManager(SettingsManager settingsManager)
Deprecated.
since 5.1.
|
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
void |
setUserChecker(UserChecker userChecker) |
public void setSettingsManager(SettingsManager settingsManager)
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setUserChecker(UserChecker userChecker)
public EditPermissionsAdministrator buildEditSpaceAdministrator(Space space, com.atlassian.user.User user, List<String> usersToAdd, List<String> groupsToAdd)
space
- space to administeruser
- current logged in userusersToAdd
- list of users to add permissions togroupsToAdd
- list of groups to add permissions topublic EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user, List<String> usersToAdd, List<String> groupsToAdd)
user
- current logged in userusersToAdd
- list of users to add permissions togroupsToAdd
- list of groups to add permissions topublic EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user)
public PermissionsAdministrator buildGlobalPermissionAdministrator()
public PermissionsAdministrator buildSpacePermissionAdministrator(Space space)
space
- space to administerCopyright © 2003–2015 Atlassian. All rights reserved.