|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.domain.key.envapp.AbstractConfigurationKey<TenantUserConfigurationKey> de.smartics.properties.impl.config.domain.key.rtaware.TenantUserConfigurationKey
public final class TenantUserConfigurationKey
The configuration key identifies a configuration with environment and application information. With this key all configuration values can be accessed by their local configuration keys.
Constructor Summary | |
---|---|
TenantUserConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId) Convenience constructor for any tenant and any user.. |
|
TenantUserConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId, TenantId tenantId, UserId userId) Default constructor. |
|
TenantUserConfigurationKey(TenantUserConfigurationKey key, ApplicationId appId) Copy constructor. |
Method Summary | |
---|---|
int |
compareTo(TenantUserConfigurationKey o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
TenantId |
getTenantId() Returns the identifier of the tenant the configuration is for. |
UserId |
getUserId() Returns the identifier of the user the configuration is for. |
boolean |
hasActiveDynamicParts() Returns true if this key instance has active dynamic parts. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class de.smartics.properties.impl.config.domain.key.envapp.AbstractConfigurationKey |
---|
getApplicationId, getEnvironmentId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TenantUserConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId) throws NullPointerException
environmentId
- the identifier of the environment the application is deployed in.
applicationId
- the identifier of the application whose configuration is requested.
NullPointerException
- if
environmentId
or
applicationId
is
null
.
public TenantUserConfigurationKey(EnvironmentId environmentId, ApplicationId applicationId, TenantId tenantId, UserId userId) throws NullPointerException
environmentId
- the identifier of the environment the application is deployed in.
applicationId
- the identifier of the application whose configuration is requested.
tenantId
- the identifier of the tenant the configuration is for.
userId
- the identifier of the user the configuration is for.
NullPointerException
- if
environmentId
,
applicationId
,
tenantId
, or
userId
is
null
.
public TenantUserConfigurationKey(TenantUserConfigurationKey key, ApplicationId appId) throws NullPointerException
key
- the key to copy.
appId
- the appId to set into the copy.
NullPointerException
- if
key
or
appId
is
null
.
Method Detail |
---|
public TenantId getTenantId()
public UserId getUserId()
public boolean hasActiveDynamicParts()
ConfigurationKey
true
if this key instance has active dynamic parts. Returns
false
(otherwise) if this key instance has only static parts. The decision criteria between a static and a dynamic key is, if all keys are known at startup, or if keys have dynamic parts, like the current user or the current tenant which can change during runtime.
hasActiveDynamicParts
in interface
ConfigurationKey<TenantUserConfigurationKey>
hasActiveDynamicParts
in class
AbstractConfigurationKey<TenantUserConfigurationKey>
true
when this key uses dynamic parts (and not only static parts).
false
otherwise.
public int hashCode()
hashCode
in interface
ConfigurationKey<TenantUserConfigurationKey>
hashCode
in class
AbstractConfigurationKey<TenantUserConfigurationKey>
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in interface
ConfigurationKey<TenantUserConfigurationKey>
equals
in class
AbstractConfigurationKey<TenantUserConfigurationKey>
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int compareTo(TenantUserConfigurationKey o)
compareTo
in interface
ConfigurationKey<TenantUserConfigurationKey>
compareTo
in interface
Comparable<TenantUserConfigurationKey>
compareTo
in class
AbstractConfigurationKey<TenantUserConfigurationKey>
public String toString()
AbstractConfigurationKey
toString
in interface
ConfigurationKey<TenantUserConfigurationKey>
toString
in class
AbstractConfigurationKey<TenantUserConfigurationKey>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |