public class

OfBizApplicationRoleStore

extends Object
implements ApplicationRoleStore GroupConfigurable
java.lang.Object
   ↳ com.atlassian.jira.application.OfBizApplicationRoleStore

Summary

Public Constructors
OfBizApplicationRoleStore(OfBizDelegator delegator)
Public Methods
@Nonnull ApplicationRoleStore.ApplicationRoleData get(ApplicationKey key)
Get the ApplicationRoleStore.ApplicationRoleData for the passed com.atlassian.application.api.ApplicationKey.
boolean isGroupUsed(Group group)
Determine whether configuration exists for the specified Group.
void removeByKey(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.
@Nonnull ApplicationRoleStore.ApplicationRoleData save(ApplicationRoleStore.ApplicationRoleData data)
Save the passed ApplicationRoleStore.ApplicationRoleData to the database.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.application.ApplicationRoleStore
From interface com.atlassian.jira.config.group.GroupConfigurable

Public Constructors

public OfBizApplicationRoleStore (OfBizDelegator delegator)

Public Methods

@Nonnull public ApplicationRoleStore.ApplicationRoleData get (ApplicationKey key)

Get the ApplicationRoleStore.ApplicationRoleData for the passed com.atlassian.application.api.ApplicationKey.

Parameters
key the key to search for.
Returns

public boolean isGroupUsed (Group group)

Determine whether configuration exists for the specified Group.

Parameters
group that may or may not exist.
Returns
  • true if the group is used in the components configuration.

public void removeByKey (ApplicationKey applicationKey)

Remove the ApplicationRoleStore.ApplicationRoleData associated with provided application key.

Parameters
applicationKey the key that represents the ApplicationRoleStore.ApplicationRoleData to be removed.

public void removeGroup (String groupName)

Removes the association of the given group from all application roles in the database. NOTE: Current implementation makes no effort to reassign the default group. This means that that you can be left with a role that has no default groups.

Parameters
groupName the name of the group to remove.

@Nonnull public ApplicationRoleStore.ApplicationRoleData save (ApplicationRoleStore.ApplicationRoleData data)

Save the passed ApplicationRoleStore.ApplicationRoleData to the database.

Parameters
data the data to save to the database.
Returns