com.atlassian.jira.license
Class MockLicenseRoleStore

java.lang.Object
  extended by com.atlassian.jira.license.MockLicenseRoleStore
All Implemented Interfaces:
LicenseRoleStore

public class MockLicenseRoleStore
extends Object
implements LicenseRoleStore


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.license.LicenseRoleStore
LicenseRoleStore.LicenseRoleData
 
Constructor Summary
MockLicenseRoleStore()
           
 
Method Summary
 LicenseRoleStore.LicenseRoleData get(LicenseRoleId id)
          Get the LicenseRoleStore.LicenseRoleData for the passed LicenseRoleId.
 MockLicenseRoleStore save(LicenseRoleId id, String... groups)
           
 LicenseRoleStore.LicenseRoleData save(LicenseRoleStore.LicenseRoleData data)
          Save the passed LicenseRoleStore.LicenseRoleData to the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLicenseRoleStore

public MockLicenseRoleStore()
Method Detail

get

@Nonnull
public LicenseRoleStore.LicenseRoleData get(@Nonnull
                                                    LicenseRoleId id)
Description copied from interface: LicenseRoleStore
Get the LicenseRoleStore.LicenseRoleData for the passed LicenseRoleId.

Specified by:
get in interface LicenseRoleStore
Parameters:
id - the ID to search for. The LicenseRoleStore.LicenseRoleData for the passed LicenseRoleId.

save

@Nonnull
public LicenseRoleStore.LicenseRoleData save(@Nonnull
                                                     LicenseRoleStore.LicenseRoleData data)
Description copied from interface: LicenseRoleStore
Save the passed LicenseRoleStore.LicenseRoleData to the database.

Specified by:
save in interface LicenseRoleStore
Parameters:
data - the data to save to the database.
Returns:
the LicenseRoleStore.LicenseRoleData as saved in the database.

save

public MockLicenseRoleStore save(LicenseRoleId id,
                                 String... groups)


Copyright © 2002-2014 Atlassian. All Rights Reserved.