public class StubApplicationService extends Object implements com.atlassian.crowd.manager.application.ApplicationService
UserEntityExpander
and
GroupEntityExpander
to work.Constructor and Description |
---|
StubApplicationService() |
Modifier and Type | Method and Description |
---|---|
void |
addAllUsers(com.atlassian.crowd.model.application.Application application,
Collection<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users) |
com.atlassian.crowd.model.group.Group |
addGroup(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.group.GroupTemplate group) |
void |
addGroupToGroup(com.atlassian.crowd.model.application.Application application,
String childGroupName,
String parentGroupName) |
com.atlassian.crowd.model.user.User |
addUser(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.user.UserTemplate user,
com.atlassian.crowd.embedded.api.PasswordCredential credential) |
void |
addUserToGroup(com.atlassian.crowd.model.application.Application application,
String username,
String groupName) |
com.atlassian.crowd.model.user.User |
authenticateUser(com.atlassian.crowd.model.application.Application application,
String username,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential) |
com.atlassian.crowd.model.group.Group |
findGroupByName(com.atlassian.crowd.model.application.Application application,
String name) |
com.atlassian.crowd.model.group.GroupWithAttributes |
findGroupWithAttributesByName(com.atlassian.crowd.model.application.Application application,
String name) |
com.atlassian.crowd.model.user.User |
findUserByKey(com.atlassian.crowd.model.application.Application application,
String key) |
com.atlassian.crowd.model.user.User |
findUserByName(com.atlassian.crowd.model.application.Application application,
String name) |
com.atlassian.crowd.model.user.UserWithAttributes |
findUserWithAttributesByKey(com.atlassian.crowd.model.application.Application application,
String key) |
com.atlassian.crowd.model.user.UserWithAttributes |
findUserWithAttributesByName(com.atlassian.crowd.model.application.Application application,
String name) |
com.atlassian.crowd.model.webhook.Webhook |
findWebhookById(com.atlassian.crowd.model.application.Application application,
long webhookId) |
com.atlassian.crowd.embedded.api.UserCapabilities |
getCapabilitiesForNewUsers(com.atlassian.crowd.model.application.Application application) |
String |
getCurrentEventToken(com.atlassian.crowd.model.application.Application application) |
com.atlassian.crowd.event.Events |
getNewEvents(com.atlassian.crowd.model.application.Application application,
String eventToken) |
boolean |
isGroupDirectGroupMember(com.atlassian.crowd.model.application.Application application,
String childGroup,
String parentGroup) |
boolean |
isGroupNestedGroupMember(com.atlassian.crowd.model.application.Application application,
String childGroup,
String parentGroup) |
boolean |
isUserAuthorised(com.atlassian.crowd.model.application.Application application,
String username) |
boolean |
isUserDirectGroupMember(com.atlassian.crowd.model.application.Application application,
String username,
String groupName) |
boolean |
isUserNestedGroupMember(com.atlassian.crowd.model.application.Application application,
String username,
String groupName) |
com.atlassian.crowd.model.webhook.Webhook |
registerWebhook(com.atlassian.crowd.model.application.Application application,
String endpointUrl,
String token) |
void |
removeGroup(com.atlassian.crowd.model.application.Application application,
String group) |
void |
removeGroupAttributes(com.atlassian.crowd.model.application.Application application,
String groupname,
String attributeName) |
void |
removeGroupFromGroup(com.atlassian.crowd.model.application.Application application,
String childGroup,
String parentGroup) |
void |
removeUser(com.atlassian.crowd.model.application.Application application,
String user) |
void |
removeUserAttributes(com.atlassian.crowd.model.application.Application application,
String username,
String attributeName) |
void |
removeUserFromGroup(com.atlassian.crowd.model.application.Application application,
String username,
String groupName) |
com.atlassian.crowd.model.user.User |
renameUser(com.atlassian.crowd.model.application.Application application,
String oldUserName,
String newUsername) |
<T> List<T> |
searchDirectGroupRelationships(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
<T> List<T> |
searchGroups(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query) |
<T> List<T> |
searchNestedGroupRelationships(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
<T> List<T> |
searchUsers(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query) |
List<com.atlassian.crowd.model.user.User> |
searchUsersAllowingDuplicateNames(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.user.User> query) |
void |
storeGroupAttributes(com.atlassian.crowd.model.application.Application application,
String groupname,
Map<String,Set<String>> attributes) |
void |
storeUserAttributes(com.atlassian.crowd.model.application.Application application,
String username,
Map<String,Set<String>> attributes) |
void |
unregisterWebhook(com.atlassian.crowd.model.application.Application application,
long webhookId) |
com.atlassian.crowd.model.group.Group |
updateGroup(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.group.GroupTemplate group) |
com.atlassian.crowd.model.user.User |
updateUser(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.user.UserTemplate user) |
void |
updateUserCredential(com.atlassian.crowd.model.application.Application application,
String username,
com.atlassian.crowd.embedded.api.PasswordCredential credential) |
public com.atlassian.crowd.model.user.User authenticateUser(com.atlassian.crowd.model.application.Application application, String username, com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.InactiveAccountException, com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.ExpiredCredentialException, com.atlassian.crowd.exception.UserNotFoundException
authenticateUser
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.InactiveAccountException
com.atlassian.crowd.exception.InvalidAuthenticationException
com.atlassian.crowd.exception.ExpiredCredentialException
com.atlassian.crowd.exception.UserNotFoundException
public boolean isUserAuthorised(com.atlassian.crowd.model.application.Application application, String username)
isUserAuthorised
in interface com.atlassian.crowd.manager.application.ApplicationService
public void addAllUsers(com.atlassian.crowd.model.application.Application application, Collection<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users) throws com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.BulkAddFailedException
addAllUsers
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.BulkAddFailedException
public com.atlassian.crowd.model.user.User findUserByName(com.atlassian.crowd.model.application.Application application, String name) throws com.atlassian.crowd.exception.UserNotFoundException
findUserByName
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.UserWithAttributes findUserWithAttributesByName(com.atlassian.crowd.model.application.Application application, String name) throws com.atlassian.crowd.exception.UserNotFoundException
findUserWithAttributesByName
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.User findUserByKey(com.atlassian.crowd.model.application.Application application, String key) throws com.atlassian.crowd.exception.UserNotFoundException
findUserByKey
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.UserWithAttributes findUserWithAttributesByKey(com.atlassian.crowd.model.application.Application application, String key) throws com.atlassian.crowd.exception.UserNotFoundException
findUserWithAttributesByKey
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.User addUser(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.user.UserTemplate user, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.ApplicationPermissionException
addUser
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.ApplicationPermissionException
public com.atlassian.crowd.model.user.User updateUser(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.user.UserTemplate user) throws com.atlassian.crowd.exception.InvalidUserException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.UserNotFoundException
updateUser
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.InvalidUserException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.User renameUser(com.atlassian.crowd.model.application.Application application, String oldUserName, String newUsername) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.InvalidUserException
renameUser
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.InvalidUserException
public void updateUserCredential(com.atlassian.crowd.model.application.Application application, String username, com.atlassian.crowd.embedded.api.PasswordCredential credential) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.InvalidCredentialException, com.atlassian.crowd.exception.ApplicationPermissionException
updateUserCredential
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.InvalidCredentialException
com.atlassian.crowd.exception.ApplicationPermissionException
public void storeUserAttributes(com.atlassian.crowd.model.application.Application application, String username, Map<String,Set<String>> attributes) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.UserNotFoundException
storeUserAttributes
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.UserNotFoundException
public void removeUserAttributes(com.atlassian.crowd.model.application.Application application, String username, String attributeName) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.UserNotFoundException
removeUserAttributes
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.UserNotFoundException
public void removeUser(com.atlassian.crowd.model.application.Application application, String user) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException
removeUser
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
public <T> List<T> searchUsers(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
searchUsers
in interface com.atlassian.crowd.manager.application.ApplicationService
public List<com.atlassian.crowd.model.user.User> searchUsersAllowingDuplicateNames(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.user.User> query)
searchUsersAllowingDuplicateNames
in interface com.atlassian.crowd.manager.application.ApplicationService
public com.atlassian.crowd.model.group.Group findGroupByName(com.atlassian.crowd.model.application.Application application, String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findGroupByName
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.GroupWithAttributes findGroupWithAttributesByName(com.atlassian.crowd.model.application.Application application, String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findGroupWithAttributesByName
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.Group addGroup(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.group.GroupTemplate group) throws com.atlassian.crowd.exception.InvalidGroupException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException
addGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.InvalidGroupException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
public com.atlassian.crowd.model.group.Group updateGroup(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.group.GroupTemplate group) throws com.atlassian.crowd.exception.InvalidGroupException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.GroupNotFoundException
updateGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.InvalidGroupException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.GroupNotFoundException
public void storeGroupAttributes(com.atlassian.crowd.model.application.Application application, String groupname, Map<String,Set<String>> attributes) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.GroupNotFoundException
storeGroupAttributes
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.GroupNotFoundException
public void removeGroupAttributes(com.atlassian.crowd.model.application.Application application, String groupname, String attributeName) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.GroupNotFoundException
removeGroupAttributes
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.GroupNotFoundException
public void removeGroup(com.atlassian.crowd.model.application.Application application, String group) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException
removeGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
public <T> List<T> searchGroups(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
searchGroups
in interface com.atlassian.crowd.manager.application.ApplicationService
public void addUserToGroup(com.atlassian.crowd.model.application.Application application, String username, String groupName) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.MembershipAlreadyExistsException
addUserToGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.MembershipAlreadyExistsException
public void addGroupToGroup(com.atlassian.crowd.model.application.Application application, String childGroupName, String parentGroupName) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.InvalidMembershipException, com.atlassian.crowd.exception.MembershipAlreadyExistsException
addGroupToGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.InvalidMembershipException
com.atlassian.crowd.exception.MembershipAlreadyExistsException
public void removeUserFromGroup(com.atlassian.crowd.model.application.Application application, String username, String groupName) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.MembershipNotFoundException
removeUserFromGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.MembershipNotFoundException
public void removeGroupFromGroup(com.atlassian.crowd.model.application.Application application, String childGroup, String parentGroup) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.MembershipNotFoundException
removeGroupFromGroup
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.MembershipNotFoundException
public boolean isUserDirectGroupMember(com.atlassian.crowd.model.application.Application application, String username, String groupName)
isUserDirectGroupMember
in interface com.atlassian.crowd.manager.application.ApplicationService
public boolean isGroupDirectGroupMember(com.atlassian.crowd.model.application.Application application, String childGroup, String parentGroup)
isGroupDirectGroupMember
in interface com.atlassian.crowd.manager.application.ApplicationService
public boolean isUserNestedGroupMember(com.atlassian.crowd.model.application.Application application, String username, String groupName)
isUserNestedGroupMember
in interface com.atlassian.crowd.manager.application.ApplicationService
public boolean isGroupNestedGroupMember(com.atlassian.crowd.model.application.Application application, String childGroup, String parentGroup)
isGroupNestedGroupMember
in interface com.atlassian.crowd.manager.application.ApplicationService
public <T> List<T> searchDirectGroupRelationships(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
searchDirectGroupRelationships
in interface com.atlassian.crowd.manager.application.ApplicationService
public <T> List<T> searchNestedGroupRelationships(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
searchNestedGroupRelationships
in interface com.atlassian.crowd.manager.application.ApplicationService
public String getCurrentEventToken(com.atlassian.crowd.model.application.Application application) throws com.atlassian.crowd.event.IncrementalSynchronisationNotAvailableException
getCurrentEventToken
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.event.IncrementalSynchronisationNotAvailableException
public com.atlassian.crowd.event.Events getNewEvents(com.atlassian.crowd.model.application.Application application, String eventToken) throws com.atlassian.crowd.event.EventTokenExpiredException, com.atlassian.crowd.exception.OperationFailedException
getNewEvents
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.event.EventTokenExpiredException
com.atlassian.crowd.exception.OperationFailedException
public com.atlassian.crowd.model.webhook.Webhook findWebhookById(com.atlassian.crowd.model.application.Application application, long webhookId) throws com.atlassian.crowd.exception.WebhookNotFoundException, com.atlassian.crowd.exception.ApplicationPermissionException
findWebhookById
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.WebhookNotFoundException
com.atlassian.crowd.exception.ApplicationPermissionException
public com.atlassian.crowd.model.webhook.Webhook registerWebhook(com.atlassian.crowd.model.application.Application application, String endpointUrl, String token) throws com.atlassian.crowd.manager.webhook.InvalidWebhookEndpointException
registerWebhook
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.manager.webhook.InvalidWebhookEndpointException
public void unregisterWebhook(com.atlassian.crowd.model.application.Application application, long webhookId) throws com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.WebhookNotFoundException
unregisterWebhook
in interface com.atlassian.crowd.manager.application.ApplicationService
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.WebhookNotFoundException
public com.atlassian.crowd.embedded.api.UserCapabilities getCapabilitiesForNewUsers(com.atlassian.crowd.model.application.Application application)
getCapabilitiesForNewUsers
in interface com.atlassian.crowd.manager.application.ApplicationService
Copyright © 2003–2016 Atlassian. All rights reserved.