Class TransactionalCrowdServiceWrapper
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.TransactionalCrowdServiceWrapper
-
- All Implemented Interfaces:
com.atlassian.crowd.embedded.api.CrowdService,com.atlassian.crowd.embedded.api.UnfilteredCrowdService
@Transactional public final class TransactionalCrowdServiceWrapper extends Object implements com.atlassian.crowd.embedded.api.UnfilteredCrowdService
AN implementation ofUnfilteredCrowdServicewhich exists solely as a place to hangTransactionalannotations on, since we cannot add them toUnfilteredCrowdService.We could use an interface to extend
UnfilteredCrowdServicerather than a class, but this way if a new method is ever added toUnfilteredCrowdServicethis class will be forced to implement it, and will therefore automatically get the class-levelTransactionalannotation.- Since:
- 7.15
-
-
Constructor Summary
Constructors Constructor Description TransactionalCrowdServiceWrapper(com.atlassian.crowd.embedded.api.UnfilteredCrowdService crowdService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.crowd.embedded.api.GroupaddGroup(com.atlassian.crowd.embedded.api.Group group)booleanaddGroupToGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)com.atlassian.crowd.embedded.api.UseraddUser(com.atlassian.crowd.embedded.api.User user, String credential)com.atlassian.crowd.embedded.api.UserWithAttributesaddUser(com.atlassian.crowd.embedded.api.UserWithAttributes user, String credential)booleanaddUserToGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)com.atlassian.crowd.embedded.api.Userauthenticate(String name, String credential)com.atlassian.crowd.embedded.api.UserCapabilitiesgetCapabilitiesForNewUsers()com.atlassian.crowd.embedded.api.GroupgetGroup(String name)com.atlassian.crowd.embedded.api.GroupWithAttributesgetGroupWithAttributes(String name)com.atlassian.crowd.embedded.api.UsergetRemoteUser(String name)com.atlassian.crowd.embedded.api.UsergetUser(String name)com.atlassian.crowd.embedded.api.UserWithAttributesgetUserWithAttributes(String name)booleanisGroupDirectGroupMember(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)booleanisGroupMemberOfGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)booleanisGroupMemberOfGroup(String childGroupName, String parentGroupName)booleanisUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)booleanisUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)booleanisUserMemberOfGroup(String userName, String groupName)voidremoveAllGroupAttributes(com.atlassian.crowd.embedded.api.Group group)voidremoveAllUserAttributes(com.atlassian.crowd.embedded.api.User user)booleanremoveGroup(com.atlassian.crowd.embedded.api.Group group)voidremoveGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName)booleanremoveGroupFromGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)booleanremoveUser(com.atlassian.crowd.embedded.api.User user)voidremoveUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName)booleanremoveUserFromGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)com.atlassian.crowd.embedded.api.UserrenameUser(com.atlassian.crowd.embedded.api.User user, String newUsername)<T> Iterable<T>search(com.atlassian.crowd.embedded.api.Query<T> query)voidsetGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName, String attributeValue)voidsetGroupAttribute(com.atlassian.crowd.embedded.api.Group group, String attributeName, Set<String> attributeValues)voidsetUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName, String attributeValue)voidsetUserAttribute(com.atlassian.crowd.embedded.api.User user, String attributeName, Set<String> attributeValues)com.atlassian.crowd.embedded.api.GroupupdateGroup(com.atlassian.crowd.embedded.api.Group group)com.atlassian.crowd.embedded.api.UserupdateUser(com.atlassian.crowd.embedded.api.User user)voidupdateUserCredential(com.atlassian.crowd.embedded.api.User user, String credential)com.atlassian.crowd.embedded.api.UseruserAuthenticated(String name)
-
-
-
Method Detail
-
authenticate
public com.atlassian.crowd.embedded.api.User authenticate(String name, String credential) throws com.atlassian.crowd.exception.FailedAuthenticationException, com.atlassian.crowd.exception.runtime.OperationFailedException
- Specified by:
authenticatein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.FailedAuthenticationExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
getUser
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.User getUser(String name)
- Specified by:
getUserin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
getRemoteUser
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.User getRemoteUser(String name)
- Specified by:
getRemoteUserin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
userAuthenticated
public com.atlassian.crowd.embedded.api.User userAuthenticated(String name) throws com.atlassian.crowd.exception.runtime.UserNotFoundException, com.atlassian.crowd.exception.runtime.OperationFailedException, com.atlassian.crowd.exception.InactiveAccountException
- Specified by:
userAuthenticatedin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.runtime.OperationFailedExceptioncom.atlassian.crowd.exception.InactiveAccountException
-
getUserWithAttributes
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.UserWithAttributes getUserWithAttributes(String name)
- Specified by:
getUserWithAttributesin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
getGroup
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.Group getGroup(String name)
- Specified by:
getGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
getGroupWithAttributes
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.GroupWithAttributes getGroupWithAttributes(String name)
- Specified by:
getGroupWithAttributesin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
search
@Transactional(readOnly=true) public <T> Iterable<T> search(com.atlassian.crowd.embedded.api.Query<T> query)
- Specified by:
searchin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
isUserMemberOfGroup
@Transactional(readOnly=true) public boolean isUserMemberOfGroup(String userName, String groupName)
- Specified by:
isUserMemberOfGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
isUserMemberOfGroup
@Transactional(readOnly=true) public boolean isUserMemberOfGroup(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group)- Specified by:
isUserMemberOfGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
isGroupMemberOfGroup
@Transactional(readOnly=true) public boolean isGroupMemberOfGroup(String childGroupName, String parentGroupName)
- Specified by:
isGroupMemberOfGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
isGroupMemberOfGroup
@Transactional(readOnly=true) public boolean isGroupMemberOfGroup(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup)- Specified by:
isGroupMemberOfGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
addUser
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- Specified by:
addUserin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.InvalidCredentialExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
addUser
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- Specified by:
addUserin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.InvalidCredentialExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
updateUser
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- Specified by:
updateUserin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
renameUser
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- Specified by:
renameUserin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.InvalidUserExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
updateUserCredential
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- Specified by:
updateUserCredentialin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.InvalidCredentialExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
setUserAttribute
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- Specified by:
setUserAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
setUserAttribute
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- Specified by:
setUserAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeUserAttribute
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- Specified by:
removeUserAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeAllUserAttributes
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- Specified by:
removeAllUserAttributesin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeUser
public boolean removeUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException- Specified by:
removeUserin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
addGroup
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- Specified by:
addGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.embedded.InvalidGroupExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
updateGroup
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- Specified by:
updateGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.embedded.InvalidGroupExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
setGroupAttribute
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- Specified by:
setGroupAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
setGroupAttribute
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- Specified by:
setGroupAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeGroupAttribute
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- Specified by:
removeGroupAttributein interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeAllGroupAttributes
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- Specified by:
removeAllGroupAttributesin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeGroup
public boolean removeGroup(com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.OperationNotPermittedException, com.atlassian.crowd.exception.runtime.OperationFailedException- Specified by:
removeGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
addUserToGroup
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- Specified by:
addUserToGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
addGroupToGroup
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- Specified by:
addGroupToGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.InvalidMembershipExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeUserFromGroup
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- Specified by:
removeUserFromGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.runtime.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
removeGroupFromGroup
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- Specified by:
removeGroupFromGroupin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationNotPermittedExceptioncom.atlassian.crowd.exception.runtime.OperationFailedException
-
isUserDirectGroupMember
@Transactional(readOnly=true) public boolean isUserDirectGroupMember(com.atlassian.crowd.embedded.api.User user, com.atlassian.crowd.embedded.api.Group group) throws com.atlassian.crowd.exception.runtime.OperationFailedException- Specified by:
isUserDirectGroupMemberin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException
-
isGroupDirectGroupMember
@Transactional(readOnly=true) public boolean isGroupDirectGroupMember(com.atlassian.crowd.embedded.api.Group childGroup, com.atlassian.crowd.embedded.api.Group parentGroup) throws com.atlassian.crowd.exception.runtime.OperationFailedException- Specified by:
isGroupDirectGroupMemberin interfacecom.atlassian.crowd.embedded.api.CrowdService- Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException
-
getCapabilitiesForNewUsers
@Transactional(readOnly=true) public com.atlassian.crowd.embedded.api.UserCapabilities getCapabilitiesForNewUsers()
- Specified by:
getCapabilitiesForNewUsersin interfacecom.atlassian.crowd.embedded.api.CrowdService
-
-