public class CrowdServiceImpl extends Object implements UnfilteredCrowdService
| Constructor and Description |
|---|
CrowdServiceImpl(ApplicationFactory applicationFactory,
ApplicationService applicationService,
DirectoryInstanceLoader directoryInstanceLoader) |
public CrowdServiceImpl(ApplicationFactory applicationFactory, ApplicationService applicationService, DirectoryInstanceLoader directoryInstanceLoader)
public User authenticate(String name, String credential) throws FailedAuthenticationException, OperationFailedException
authenticate in interface CrowdServiceFailedAuthenticationExceptionOperationFailedExceptionpublic User getUser(String name)
getUser in interface CrowdService@Nullable public User getRemoteUser(@Nonnull String username)
getRemoteUser in interface CrowdServicepublic User userAuthenticated(String username) throws UserNotFoundException, OperationFailedException, InactiveAccountException
userAuthenticated in interface CrowdServiceUserNotFoundExceptionOperationFailedExceptionInactiveAccountExceptionpublic UserWithAttributes getUserWithAttributes(String name)
getUserWithAttributes in interface CrowdServicepublic Group getGroup(String name)
getGroup in interface CrowdServicepublic GroupWithAttributes getGroupWithAttributes(String name)
getGroupWithAttributes in interface CrowdServicepublic <T> Iterable<T> search(Query<T> query)
search in interface CrowdServicepublic boolean isUserMemberOfGroup(String userName, String groupName)
isUserMemberOfGroup in interface CrowdServicepublic boolean isUserMemberOfGroup(User user, Group group)
isUserMemberOfGroup in interface CrowdServicepublic boolean isGroupMemberOfGroup(String childGroupName, String parentGroupName)
isGroupMemberOfGroup in interface CrowdServicepublic boolean isGroupMemberOfGroup(Group childGroup, Group parentGroup)
isGroupMemberOfGroup in interface CrowdServicepublic User addUser(User user, String credential) throws InvalidUserException, InvalidCredentialException, OperationNotPermittedException, OperationFailedException
addUser in interface CrowdServiceInvalidUserExceptionInvalidCredentialExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic UserWithAttributes addUser(UserWithAttributes user, String credential) throws InvalidUserException, InvalidCredentialException, OperationNotPermittedException, OperationFailedException
addUser in interface CrowdServiceInvalidUserExceptionInvalidCredentialExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic User updateUser(User user) throws UserNotFoundException, InvalidUserException, OperationNotPermittedException, OperationFailedException
updateUser in interface CrowdServiceUserNotFoundExceptionInvalidUserExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic User renameUser(User user, String newUsername) throws UserNotFoundException, InvalidUserException, OperationNotPermittedException, OperationFailedException
renameUser in interface CrowdServiceUserNotFoundExceptionInvalidUserExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void updateUserCredential(User user, String credential) throws UserNotFoundException, InvalidCredentialException, OperationNotPermittedException, OperationFailedException
updateUserCredential in interface CrowdServiceUserNotFoundExceptionInvalidCredentialExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void setUserAttribute(User user, String attributeName, String attributeValue) throws UserNotFoundException, OperationNotPermittedException, OperationFailedException
setUserAttribute in interface CrowdServiceUserNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void setUserAttribute(User user, String attributeName, Set<String> attributeValues) throws UserNotFoundException, OperationNotPermittedException, OperationFailedException
setUserAttribute in interface CrowdServiceUserNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void removeUserAttribute(User user, String attributeName) throws UserNotFoundException, OperationNotPermittedException, OperationFailedException
removeUserAttribute in interface CrowdServiceUserNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void removeAllUserAttributes(User user) throws UserNotFoundException, OperationNotPermittedException, OperationFailedException
removeAllUserAttributes in interface CrowdServiceUserNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic boolean removeUser(User user) throws OperationNotPermittedException, OperationFailedException
removeUser in interface CrowdServiceOperationNotPermittedExceptionOperationFailedExceptionpublic Group addGroup(Group group) throws InvalidGroupException, OperationNotPermittedException, OperationFailedException
addGroup in interface CrowdServiceInvalidGroupExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic Group updateGroup(Group group) throws InvalidGroupException, OperationNotPermittedException, GroupNotFoundException, OperationFailedException
updateGroup in interface CrowdServiceInvalidGroupExceptionOperationNotPermittedExceptionGroupNotFoundExceptionOperationFailedExceptionpublic void setGroupAttribute(Group group, String attributeName, String attributeValue) throws GroupNotFoundException, OperationNotPermittedException, OperationFailedException
setGroupAttribute in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void setGroupAttribute(Group group, String attributeName, Set<String> attributeValues) throws GroupNotFoundException, OperationNotPermittedException, OperationFailedException
setGroupAttribute in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void removeGroupAttribute(Group group, String attributeName) throws GroupNotFoundException, OperationNotPermittedException, OperationFailedException
removeGroupAttribute in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic void removeAllGroupAttributes(Group group) throws GroupNotFoundException, OperationNotPermittedException, OperationFailedException
removeAllGroupAttributes in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic boolean removeGroup(Group group) throws OperationNotPermittedException, GroupNotFoundException, OperationFailedException
removeGroup in interface CrowdServiceOperationNotPermittedExceptionGroupNotFoundExceptionOperationFailedExceptionpublic boolean addUserToGroup(User user, Group group) throws GroupNotFoundException, UserNotFoundException, OperationNotPermittedException, OperationFailedException
addUserToGroup in interface CrowdServiceGroupNotFoundExceptionUserNotFoundExceptionOperationNotPermittedExceptionOperationFailedExceptionpublic boolean addGroupToGroup(Group childGroup, Group parentGroup) throws GroupNotFoundException, OperationNotPermittedException, InvalidMembershipException, OperationFailedException
addGroupToGroup in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionInvalidMembershipExceptionOperationFailedExceptionpublic boolean removeUserFromGroup(User user, Group group) throws GroupNotFoundException, UserNotFoundException, OperationNotPermittedException, MembershipNotFoundException, OperationFailedException
removeUserFromGroup in interface CrowdServiceGroupNotFoundExceptionUserNotFoundExceptionOperationNotPermittedExceptionMembershipNotFoundExceptionOperationFailedExceptionpublic boolean removeGroupFromGroup(Group childGroup, Group parentGroup) throws GroupNotFoundException, OperationNotPermittedException, MembershipNotFoundException, OperationFailedException
removeGroupFromGroup in interface CrowdServiceGroupNotFoundExceptionOperationNotPermittedExceptionMembershipNotFoundExceptionOperationFailedExceptionpublic boolean isUserDirectGroupMember(User user, Group group) throws OperationFailedException
isUserDirectGroupMember in interface CrowdServiceOperationFailedExceptionpublic boolean isGroupDirectGroupMember(Group childGroup, Group parentGroup) throws OperationFailedException
isGroupDirectGroupMember in interface CrowdServiceOperationFailedExceptionpublic UserCapabilities getCapabilitiesForNewUsers()
getCapabilitiesForNewUsers in interface CrowdServiceCopyright © 2023 Atlassian. All rights reserved.