public class Tenant extends MetadataProviderEntity implements ITenant, java.io.Serializable
ITenant
interface used for REST services.Constructor and Description |
---|
Tenant() |
Modifier and Type | Method and Description |
---|---|
static Tenant |
copy(ITenant input)
Copy contents from the SPI class.
|
java.lang.String |
getAuthenticationToken()
Get token that devices pass to identify tenant.
|
java.util.List<java.lang.String> |
getAuthorizedUserIds()
Get list of users authorized to access the tenant.
|
ITenantRuntimeState |
getEngineState()
Get runtime state of tenant engine.
|
java.lang.String |
getId()
Get unique tenant id.
|
java.lang.String |
getLogoUrl()
Get URL for tenant logo.
|
java.lang.String |
getName()
Get tenant name.
|
java.lang.String |
getTenantTemplateId()
Get id of template used to create tenant.
|
void |
setAuthenticationToken(java.lang.String authenticationToken) |
void |
setAuthorizedUserIds(java.util.List<java.lang.String> authorizedUserIds) |
void |
setEngineState(ITenantRuntimeState engineState) |
void |
setId(java.lang.String id) |
void |
setLogoUrl(java.lang.String logoUrl) |
void |
setName(java.lang.String name) |
void |
setTenantTemplateId(java.lang.String tenantTemplateId) |
copy, getCreatedBy, getCreatedDate, getUpdatedBy, getUpdatedDate, isDeleted, setCreatedBy, setCreatedDate, setDeleted, setUpdatedBy, setUpdatedDate
addOrReplaceMetadata, clearMetadata, copy, copy, getMetadata, getMetadata, removeMetadata, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
getCreatedBy, getCreatedDate, getUpdatedBy, getUpdatedDate, isDeleted
public java.lang.String getId()
ITenant
public void setId(java.lang.String id)
public java.lang.String getName()
ITenant
public void setName(java.lang.String name)
public java.lang.String getAuthenticationToken()
ITenant
getAuthenticationToken
in interface ITenant
public void setAuthenticationToken(java.lang.String authenticationToken)
public java.lang.String getLogoUrl()
ITenant
getLogoUrl
in interface ITenant
public void setLogoUrl(java.lang.String logoUrl)
public java.util.List<java.lang.String> getAuthorizedUserIds()
ITenant
getAuthorizedUserIds
in interface ITenant
public void setAuthorizedUserIds(java.util.List<java.lang.String> authorizedUserIds)
public java.lang.String getTenantTemplateId()
ITenant
getTenantTemplateId
in interface ITenant
public void setTenantTemplateId(java.lang.String tenantTemplateId)
public ITenantRuntimeState getEngineState()
ITenant
getEngineState
in interface ITenant
public void setEngineState(ITenantRuntimeState engineState)
public static Tenant copy(ITenant input) throws SiteWhereException
input
- SiteWhereException