public interface UserAccessorInternal extends UserAccessor
UserAccessor
interface; see the package-info.java for rationale.DEFAULT_GROUP_NAMES, GROUP_CONFLUENCE_ADMINS, GROUP_CONFLUENCE_USERS, PROFILE_PICTURE_BUILTIN_PATH
Modifier and Type | Method and Description |
---|---|
Optional<ConfluenceUser> |
getExistingByApiUser(User user)
Retrieve the corresponding ConfluenceUser (if any) for a user, by user key or username
|
@Nullable ConfluenceUser |
getExistingUserByPerson(Person person)
Retrieve the corresponding ConfluenceUser (if any) for a Person, by username, or user key
|
boolean |
isCrowdManaged(ConfluenceUser user)
Checks whether or not embedded Crowd manages/has knowledge of a given user
|
boolean |
isDeletedUser(ConfluenceUser user)
Checks whether or not a user has been deleted from the application
|
boolean |
isUnsyncedUser(ConfluenceUser user)
Checks whether or not a user is unsynced
|
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.
|
countLicenseConsumingUsers, countUnsyncedUsers, createUser, exists, findUsersAsList, getAllDefaultGroupNames, getConfluenceUserPreferences, getExistingUserByKey, getGroupNames, getGroupNamesForUserName, getGroupsAsList, getMemberNamesAsList, getMembers, getNewUserDefaultGroupName, getPropertySet, getPropertySet, getUser, getUserByKey, getUserByName, getUserNamesWithConfluenceAccess, getUserProfilePicture, getUsersByUserKeys, getWriteableGroups, isReadOnly, isReadOnly, isSuperUser, renameUser, setUserProfilePicture, setUserProfilePicture
addGroup, addMembership, addMembership, addUser, addUser, alterPassword, authenticate, createGroup, deactivateUser, findUsers, getGroup, getGroupCreateIfNecessary, getGroups, getGroups, getMemberNames, getUserNames, getUserPreferences, getUsers, getUsersByEmail, getUsersWithConfluenceAccess, hasMembership, hasMembership, isDeactivated, isDeactivated, isLicensedToAddMoreUsers, isUserRemovable, reactivateUser, removeGroup, removeMembership, removeMembership, removeUser, saveUser
@Nullable ConfluenceUser getExistingUserByPerson(Person person)
person
- the person whose corresponding ConfluenceUser should be retrievedIllegalArgumentException
- if person has neither username nor user keyOptional<ConfluenceUser> getExistingByApiUser(User user)
One of username or userkey must be set on the user object.
This method differs from getExistingUserByPerson(com.atlassian.confluence.api.model.people.Person)
in its handling of anonymous, it is not
possible to retrieve an anonymous user from this method. When a Option.none() is returned from this method
it indicates that the user was not found in the user repository.
user
- the user whose corresponding ConfluenceUser should be retrievedIllegalArgumentException
- if user parameter has neither username nor user keyboolean isDeletedUser(ConfluenceUser user)
user
- the user to checkboolean isUnsyncedUser(ConfluenceUser user)
user
- the user to checkboolean isCrowdManaged(ConfluenceUser user)
com.atlassian.user.search.page.Pager<ConfluenceUser> searchUnsyncedUsers(String searchParam)
searchParam
- the username parameter to search byCopyright © 2003–2019 Atlassian. All rights reserved.