public class JiraCrowdService extends Object implements com.atlassian.crowd.embedded.api.UnfilteredCrowdService
CrowdServiceImpl
which provides performance optimisations for frequent user logins.
Check LoginStats
to find what stats can be found in jira-atlassian.log showing the performance benefits added
by this wrapper.Modifier and Type | Field and Description |
---|---|
protected com.atlassian.crowd.embedded.api.CrowdService |
crowdService |
Constructor and Description |
---|
JiraCrowdService(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory,
com.atlassian.crowd.manager.application.ApplicationService applicationService,
com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.embedded.api.Group |
addGroup(com.atlassian.crowd.embedded.api.Group group) |
boolean |
addGroupToGroup(com.atlassian.crowd.embedded.api.Group childGroup,
com.atlassian.crowd.embedded.api.Group parentGroup) |
com.atlassian.crowd.embedded.api.User |
addUser(com.atlassian.crowd.embedded.api.User user,
String credential) |
com.atlassian.crowd.embedded.api.UserWithAttributes |
addUser(com.atlassian.crowd.embedded.api.UserWithAttributes user,
String credential) |
boolean |
addUserToGroup(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group) |
com.atlassian.crowd.embedded.api.User |
authenticate(String username,
String credential) |
com.atlassian.crowd.embedded.api.UserCapabilities |
getCapabilitiesForNewUsers() |
com.atlassian.crowd.embedded.api.Group |
getGroup(String name) |
com.atlassian.crowd.embedded.api.GroupWithAttributes |
getGroupWithAttributes(String name) |
com.atlassian.crowd.embedded.api.User |
getRemoteUser(String username) |
com.atlassian.crowd.embedded.api.User |
getUser(String name) |
com.atlassian.crowd.embedded.api.UserWithAttributes |
getUserWithAttributes(String name) |
boolean |
isGroupDirectGroupMember(com.atlassian.crowd.embedded.api.Group childGroup,
com.atlassian.crowd.embedded.api.Group parentGroup) |
boolean |
isGroupMemberOfGroup(com.atlassian.crowd.embedded.api.Group childGroup,
com.atlassian.crowd.embedded.api.Group parentGroup) |
boolean |
isGroupMemberOfGroup(String childGroupName,
String parentGroupName) |
boolean |
isUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group) |
boolean |
isUserMemberOfGroup(String userName,
String groupName) |
boolean |
isUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group) |
void |
onLogout(LogoutEvent logoutEvent) |
void |
onSessionInvalidationReplicatedEvent(SessionInvalidationReplicatedEvent sessionInvalidationReplicatedEvent) |
void |
onUserAnonymizationFinishedEvent(UserAnonymizationFinishedEvent anonymizationEvent) |
void |
onUserCredentialUpdatedEvent(com.atlassian.crowd.event.user.UserCredentialUpdatedEvent userCredentialUpdatedEvent) |
void |
onUserProfileUpdateEvent(UserProfileUpdatedEvent userProfileUpdatedEvent) |
void |
onUsersDeletedEvent(com.atlassian.crowd.event.user.UsersDeletedEvent usersDeletedEvent) |
void |
onUserUpdatedEvent(com.atlassian.crowd.event.user.UserUpdatedEvent userUpdatedEvent) |
void |
removeAllGroupAttributes(com.atlassian.crowd.embedded.api.Group group) |
void |
removeAllUserAttributes(com.atlassian.crowd.embedded.api.User user) |
boolean |
removeGroup(com.atlassian.crowd.embedded.api.Group group) |
void |
removeGroupAttribute(com.atlassian.crowd.embedded.api.Group group,
String attributeName) |
boolean |
removeGroupFromGroup(com.atlassian.crowd.embedded.api.Group childGroup,
com.atlassian.crowd.embedded.api.Group parentGroup) |
boolean |
removeUser(com.atlassian.crowd.embedded.api.User user) |
void |
removeUserAttribute(com.atlassian.crowd.embedded.api.User user,
String attributeName) |
boolean |
removeUserFromGroup(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.Group group) |
com.atlassian.crowd.embedded.api.User |
renameUser(com.atlassian.crowd.embedded.api.User user,
String newUsername) |
<T> Iterable<T> |
search(com.atlassian.crowd.embedded.api.Query<T> query) |
void |
setGroupAttribute(com.atlassian.crowd.embedded.api.Group group,
String attributeName,
Set<String> attributeValues) |
void |
setGroupAttribute(com.atlassian.crowd.embedded.api.Group group,
String attributeName,
String attributeValue) |
void |
setUserAttribute(com.atlassian.crowd.embedded.api.User user,
String attributeName,
Set<String> attributeValues) |
void |
setUserAttribute(com.atlassian.crowd.embedded.api.User user,
String attributeName,
String attributeValue) |
com.atlassian.crowd.embedded.api.Group |
updateGroup(com.atlassian.crowd.embedded.api.Group group) |
com.atlassian.crowd.embedded.api.User |
updateUser(com.atlassian.crowd.embedded.api.User user) |
void |
updateUserCredential(com.atlassian.crowd.embedded.api.User user,
String credential) |
com.atlassian.crowd.embedded.api.User |
userAuthenticated(String username) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGroup, addGroupToGroup, addUser, addUser, addUserToGroup, getCapabilitiesForNewUsers, getGroup, getGroupWithAttributes, getRemoteUser, getUser, getUserWithAttributes, isGroupDirectGroupMember, isGroupMemberOfGroup, isGroupMemberOfGroup, isUserDirectGroupMember, isUserMemberOfGroup, isUserMemberOfGroup, removeAllGroupAttributes, removeAllUserAttributes, removeGroup, removeGroupAttribute, removeGroupFromGroup, removeUser, removeUserAttribute, removeUserFromGroup, renameUser, search, setGroupAttribute, setGroupAttribute, setUserAttribute, setUserAttribute, updateGroup, updateUser, updateUserCredential
protected final com.atlassian.crowd.embedded.api.CrowdService crowdService
public JiraCrowdService(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory, com.atlassian.crowd.manager.application.ApplicationService applicationService, com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.event.api.EventPublisher eventPublisher)
public com.atlassian.crowd.embedded.api.User userAuthenticated(String username) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.runtime.OperationFailedException, com.atlassian.crowd.exception.InactiveAccountException
userAuthenticated
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.runtime.OperationFailedException
com.atlassian.crowd.exception.InactiveAccountException
public com.atlassian.crowd.embedded.api.User authenticate(String username, String credential) throws com.atlassian.crowd.exception.FailedAuthenticationException, com.atlassian.crowd.exception.runtime.OperationFailedException
authenticate
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.FailedAuthenticationException
com.atlassian.crowd.exception.runtime.OperationFailedException
@EventListener public void onLogout(LogoutEvent logoutEvent)
@EventListener public void onUserCredentialUpdatedEvent(com.atlassian.crowd.event.user.UserCredentialUpdatedEvent userCredentialUpdatedEvent)
@EventListener public void onUserAnonymizationFinishedEvent(UserAnonymizationFinishedEvent anonymizationEvent)
@EventListener public void onSessionInvalidationReplicatedEvent(SessionInvalidationReplicatedEvent sessionInvalidationReplicatedEvent)
@EventListener public void onUserUpdatedEvent(com.atlassian.crowd.event.user.UserUpdatedEvent userUpdatedEvent)
@EventListener public void onUserProfileUpdateEvent(UserProfileUpdatedEvent userProfileUpdatedEvent)
@EventListener public void onUsersDeletedEvent(com.atlassian.crowd.event.user.UsersDeletedEvent usersDeletedEvent)
public com.atlassian.crowd.embedded.api.User getRemoteUser(String username) throws com.atlassian.crowd.exception.runtime.OperationFailedException
getRemoteUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.User getUser(String name)
getUser
in interface com.atlassian.crowd.embedded.api.CrowdService
public com.atlassian.crowd.embedded.api.UserWithAttributes getUserWithAttributes(String name)
getUserWithAttributes
in interface com.atlassian.crowd.embedded.api.CrowdService
public com.atlassian.crowd.embedded.api.Group getGroup(String name)
getGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
public com.atlassian.crowd.embedded.api.GroupWithAttributes getGroupWithAttributes(String name)
getGroupWithAttributes
in interface com.atlassian.crowd.embedded.api.CrowdService
public <T> Iterable<T> search(com.atlassian.crowd.embedded.api.Query<T> query)
search
in interface com.atlassian.crowd.embedded.api.CrowdService
public boolean isUserMemberOfGroup(String userName, String groupName)
isUserMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
public boolean isUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)
isUserMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
public boolean isGroupMemberOfGroup(String childGroupName, String parentGroupName)
isGroupMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
public boolean isGroupMemberOfGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)
isGroupMemberOfGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
public com.atlassian.crowd.embedded.api.UserWithAttributes addUser(com.atlassian.crowd.embedded.api.UserWithAttributes user, String credential) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
addUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.User addUser(com.atlassian.crowd.embedded.api.User user, String credential) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
addUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.User updateUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
updateUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.User renameUser(com.atlassian.crowd.embedded.api.User user, String newUsername) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
renameUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void updateUserCredential(com.atlassian.crowd.embedded.api.User user, String credential) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
updateUserCredential
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName, String attributeValue) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
setUserAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName, Set<String> attributeValues) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
setUserAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void removeUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeUserAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void removeAllUserAttributes(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeAllUserAttributes
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean removeUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeUser
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.Group addGroup(com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.embedded.InvalidGroupException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
addGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.embedded.InvalidGroupException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.Group updateGroup(com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.embedded.InvalidGroupException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
updateGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.embedded.InvalidGroupException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName, String attributeValue) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
setGroupAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName, Set<String> attributeValues) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
setGroupAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void removeGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeGroupAttribute
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public void removeAllGroupAttributes(com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeAllGroupAttributes
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean removeGroup(com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean addUserToGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
addUserToGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean addGroupToGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.InvalidMembershipException, com.atlassian.crowd.exception.runtime.OperationFailedException
addGroupToGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.InvalidMembershipException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean removeUserFromGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeUserFromGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.runtime.UserNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean removeGroupFromGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup) throws com.atlassian.crowd.exception.runtime.GroupNotFoundException, com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeGroupFromGroup
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.GroupNotFoundException
com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean isUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.OperationFailedException
isUserDirectGroupMember
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean isGroupDirectGroupMember(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup) throws com.atlassian.crowd.exception.runtime.OperationFailedException
isGroupDirectGroupMember
in interface com.atlassian.crowd.embedded.api.CrowdService
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.UserCapabilities getCapabilitiesForNewUsers()
getCapabilitiesForNewUsers
in interface com.atlassian.crowd.embedded.api.CrowdService
Copyright © 2002-2024 Atlassian. All Rights Reserved.