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)
Deprecated.
since 5.9. No longer used.
|
void |
setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker) |
void |
setSettingsManager(SettingsManager settingsManager)
Deprecated.
since 5.1. No longer used.
|
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
void |
setUserAccessor(UserAccessor userAccessor) |
void |
setUserChecker(UserChecker userChecker) |
@Deprecated public void setSettingsManager(SettingsManager settingsManager)
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
@Deprecated public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setUserChecker(UserChecker userChecker)
public void setUserAccessor(UserAccessor userAccessor)
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–2016 Atlassian. All rights reserved.