public class OfBizApplicationRoleStore extends Object implements ApplicationRoleStore, GroupConfigurable
ApplicationRoleStore.ApplicationRoleData
Constructor and Description |
---|
OfBizApplicationRoleStore(OfBizDelegator delegator) |
Modifier and Type | Method and Description |
---|---|
ApplicationRoleStore.ApplicationRoleData |
get(com.atlassian.application.api.ApplicationKey key)
Get the
ApplicationRoleStore.ApplicationRoleData for the passed
ApplicationKey . |
boolean |
isGroupUsed(com.atlassian.crowd.embedded.api.Group group)
Determine whether configuration exists for the specified
Group . |
void |
removeByKey(com.atlassian.application.api.ApplicationKey applicationKey)
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.
|
ApplicationRoleStore.ApplicationRoleData |
save(ApplicationRoleStore.ApplicationRoleData data)
Save the passed
ApplicationRoleStore.ApplicationRoleData to the database. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGroupUsed
public OfBizApplicationRoleStore(@Nonnull OfBizDelegator delegator)
@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 applicationKey)
ApplicationRoleStore
ApplicationRoleStore.ApplicationRoleData
associated with provided application key.removeByKey
in interface ApplicationRoleStore
applicationKey
- the key that represents the ApplicationRoleStore.ApplicationRoleData
to be
removed.public boolean isGroupUsed(@Nonnull com.atlassian.crowd.embedded.api.Group group)
GroupConfigurable
Group
.isGroupUsed
in interface GroupConfigurable
group
- that may or may not exist.Copyright © 2002-2019 Atlassian. All Rights Reserved.