Interface UserAccessorInternal

All Superinterfaces:
ConfluenceUserResolver, com.atlassian.user.search.query.EntityQueryParser, GroupMembershipAccessor, GroupResolver, UserAccessor, UserExistenceChecker, UserPreferencesAccessor, UserProfilePictureAccessor
All Known Implementing Classes:
DefaultUserAccessor, ReadOnlyUserAccessor

public interface UserAccessorInternal extends UserAccessor
DMZ version of the UserAccessor interface; see the package-info.java for rationale.
Since:
9.0
  • Method Details

    • isDeletedUser

      boolean isDeletedUser(ConfluenceUser user)
      Checks whether or not a user has been deleted from the application
      Parameters:
      user - the user to check
      Returns:
      true if the user has been deleted from the application, false otherwise (even if the user doesn't exist)
      Since:
      6.13.0
    • isUnsyncedUser

      boolean isUnsyncedUser(ConfluenceUser user)
      Checks whether or not a user is unsynced
      Parameters:
      user - the user to check
      Returns:
      true if the user is unsynced, false otherwise (even if the user doesn't exist)
      Since:
      6.13.0
    • isCrowdManaged

      boolean isCrowdManaged(ConfluenceUser user)
      Checks whether or not embedded Crowd manages/has knowledge of a given user
      Returns:
      true if the user is managed by embedded Crowd, false otherwise (even if the user doesn't exist)
      Since:
      6.13.0
    • searchUnsyncedUsers

      com.atlassian.user.search.page.Pager<ConfluenceUser> searchUnsyncedUsers(String searchParam)
      Returns a list of all users for the given username search parameter that are unsynced: a user whose account has been disconnected from an external directory, i.e. a user who has a known mapping but no backing user, but who has not yet been deleted from the application.
      Parameters:
      searchParam - the username parameter to search by
      Returns:
      a pager of all unknown / unsynced users
      Since:
      6.13.0
    • createUser

      @Nullable ConfluenceUser createUser(com.atlassian.crowd.model.user.UserTemplateWithAttributes userTemplate, com.atlassian.user.security.password.Credential password)
      Creates a user from the given template, with the given password.
      Parameters:
      userTemplate - the user template to create a user with
      password - the password to set, or Credential.NONE to set a random password
      Returns:
      the created user, if they are the canonical user for the given username. Can be null