public class MockApplicationRoleStore extends Object implements ApplicationRoleStore
ApplicationRoleStore.ApplicationRoleData
Constructor and Description |
---|
MockApplicationRoleStore() |
Modifier and Type | Method and Description |
---|---|
ApplicationRoleStore.ApplicationRoleData |
get(com.atlassian.application.api.ApplicationKey key)
Get the
ApplicationRoleStore.ApplicationRoleData for the passed
ApplicationKey . |
void |
removeByKey(com.atlassian.application.api.ApplicationKey key)
Remove the
ApplicationRoleStore.ApplicationRoleData associated with provided application key. |
void |
removeGroup(String groupName)
Removes the association of the given group from all application roles in the database.
|
MockApplicationRoleStore |
save(com.atlassian.application.api.ApplicationKey key,
com.atlassian.crowd.embedded.api.Group... groups) |
MockApplicationRoleStore |
save(com.atlassian.application.api.ApplicationKey key,
String... groups) |
MockApplicationRoleStore |
save(ApplicationRole role) |
ApplicationRoleStore.ApplicationRoleData |
save(ApplicationRoleStore.ApplicationRoleData data)
Save the passed
ApplicationRoleStore.ApplicationRoleData to the database. |
@Nonnull public ApplicationRoleStore.ApplicationRoleData get(@Nonnull com.atlassian.application.api.ApplicationKey key)
ApplicationRoleStore
ApplicationRoleStore.ApplicationRoleData
for the passed
ApplicationKey
.get
in interface ApplicationRoleStore
key
- the key to search for.ApplicationRoleStore.ApplicationRoleData
for the passed
ApplicationKey
.@Nonnull public ApplicationRoleStore.ApplicationRoleData save(@Nonnull ApplicationRoleStore.ApplicationRoleData data)
ApplicationRoleStore
ApplicationRoleStore.ApplicationRoleData
to the database.save
in interface ApplicationRoleStore
data
- the data to save to the database.ApplicationRoleStore.ApplicationRoleData
as saved in the database.public void removeGroup(@Nonnull String groupName)
ApplicationRoleStore
removeGroup
in interface ApplicationRoleStore
groupName
- the name of the group to remove.public void removeByKey(@Nonnull com.atlassian.application.api.ApplicationKey key)
ApplicationRoleStore
ApplicationRoleStore.ApplicationRoleData
associated with provided application key.removeByKey
in interface ApplicationRoleStore
key
- the key that represents the ApplicationRoleStore.ApplicationRoleData
to be
removed.public MockApplicationRoleStore save(com.atlassian.application.api.ApplicationKey key, String... groups)
public MockApplicationRoleStore save(com.atlassian.application.api.ApplicationKey key, com.atlassian.crowd.embedded.api.Group... groups)
public MockApplicationRoleStore save(ApplicationRole role)
Copyright © 2002-2018 Atlassian. All Rights Reserved.