public class KeystoneTenant extends Object implements Tenant
Modifier and Type | Class and Description |
---|---|
static class |
KeystoneTenant.BackwardsCompatTenants
Used for backwards compatibility in fetching a Tenant By Name.
|
static class |
KeystoneTenant.TenantConcreteBuilder |
static class |
KeystoneTenant.Tenants |
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
Constructor and Description |
---|
KeystoneTenant() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(String userId,
String roleId) |
static TenantBuilder |
builder() |
void |
delete() |
boolean |
equals(Object obj) |
String |
getDescription() |
String |
getId()
By providing an ID it is assumed this object will be mapped to an existing Tenant
|
String |
getName() |
int |
hashCode() |
boolean |
isEnabled() |
void |
removeUser(String userId,
String roleId) |
void |
setEnabled(Boolean enabled)
Sets the enabled.
|
TenantBuilder |
toBuilder() |
String |
toString() |
void |
update() |
public static TenantBuilder builder()
public TenantBuilder toBuilder()
toBuilder
in interface Buildable<TenantBuilder>
public String getId()
public String getName()
public String getDescription()
getDescription
in interface Tenant
public boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- the new enabledpublic void removeUser(String userId, String roleId)
removeUser
in interface Tenant
Copyright © 2017. All rights reserved.