com.atlassian.jira.mock.multitenant
Class MockTenantReference
java.lang.Object
com.atlassian.jira.mock.multitenant.MockTenantReference
- All Implemented Interfaces:
- com.atlassian.multitenant.TenantReference
public class MockTenantReference
- extends Object
- implements com.atlassian.multitenant.TenantReference
Mock tenant reference. This tenant reference always returns the same tenant.
Method Summary |
com.atlassian.multitenant.Tenant |
get()
|
boolean |
isSet()
|
void |
remove()
|
void |
set(com.atlassian.multitenant.Tenant tenant,
boolean allowOverride)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockTenantReference
public MockTenantReference(com.atlassian.multitenant.Tenant tenant)
get
public com.atlassian.multitenant.Tenant get()
throws IllegalStateException
- Specified by:
get
in interface com.atlassian.multitenant.TenantReference
- Throws:
IllegalStateException
isSet
public boolean isSet()
- Specified by:
isSet
in interface com.atlassian.multitenant.TenantReference
set
public void set(com.atlassian.multitenant.Tenant tenant,
boolean allowOverride)
throws IllegalStateException
- Specified by:
set
in interface com.atlassian.multitenant.TenantReference
- Throws:
IllegalStateException
remove
public void remove()
throws IllegalStateException
- Specified by:
remove
in interface com.atlassian.multitenant.TenantReference
- Throws:
IllegalStateException
Copyright © 2002-2013 Atlassian. All Rights Reserved.