com.atlassian.jira.mock.multitenant
Class MockTenantReference

java.lang.Object
  extended by 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.


Constructor Summary
MockTenantReference(com.atlassian.multitenant.Tenant 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
 

Constructor Detail

MockTenantReference

public MockTenantReference(com.atlassian.multitenant.Tenant tenant)
Method Detail

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-2012 Atlassian. All Rights Reserved.