Class ClientAdapter
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.ClientAdapter
-
- All Implemented Interfaces:
CachedObject,ClientModel,ClientScopeModel,OrderedModel,ProtocolMapperContainerModel,RoleContainerModel,ScopeContainerModel
public class ClientAdapter extends Object implements ClientModel, CachedObject
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.ClientModel
ClientModel.ClientCreationEvent, ClientModel.ClientIdChangeEvent, ClientModel.ClientProtocolUpdatedEvent, ClientModel.ClientRemovedEvent, ClientModel.ClientUpdatedEvent, ClientModel.SearchableFields
-
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModel
ClientScopeModel.ClientScopeRemovedEvent
-
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModel
OrderedModel.OrderedModelComparator<OM extends OrderedModel>
-
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedClientcachedprotected RealmModelcachedRealmprotected RealmCacheSessioncacheSessionprotected booleaninvalidatedprotected ClientModelupdated-
Fields inherited from interface org.keycloak.models.ClientModel
LOGO_URI, POLICY_URI, PRIVATE_KEY, PUBLIC_KEY, TOS_URI, X509CERTIFICATE
-
Fields inherited from interface org.keycloak.models.ClientScopeModel
CONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, DYNAMIC_SCOPE_REGEXP, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE, IS_DYNAMIC_SCOPE
-
-
Constructor Summary
Constructors Constructor Description ClientAdapter(RealmModel cachedRealm, CachedClient cached, RealmCacheSession cacheSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddClientScope(ClientScopeModel clientScope, boolean defaultScope)Add clientScope with this client.voidaddClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope)Add clientScopes with this client.voidaddDefaultRole(String name)Deprecated.ProtocolMapperModeladdProtocolMapper(ProtocolMapperModel model)voidaddRedirectUri(String redirectUri)RoleModeladdRole(String name)RoleModeladdRole(String id, String name)voidaddScopeMapping(RoleModel role)voidaddWebOrigin(String webOrigin)voiddeleteScopeMapping(RoleModel role)booleanequals(Object o)StringgetAttribute(String name)Map<String,String>getAttributes()StringgetAuthenticationFlowBindingOverride(String name)Get authentication flow binding override for this client.Map<String,String>getAuthenticationFlowBindingOverrides()StringgetBaseUrl()longgetCacheTimestamp()StringgetClientAuthenticatorType()StringgetClientId()Returns client ID as defined by the user.Map<String,ClientScopeModel>getClientScopes(boolean defaultScope)Return all default scopes (if 'defaultScope' is true) or all optional scopes (if 'defaultScope' is false) linked with this clientStream<String>getDefaultRolesStream()Deprecated.StringgetDescription()StringgetId()Returns client internal ID (UUID).StringgetManagementUrl()StringgetName()intgetNodeReRegistrationTimeout()intgetNotBefore()Time in seconds since epocStringgetProtocol()ProtocolMapperModelgetProtocolMapperById(String id)ProtocolMapperModelgetProtocolMapperByName(String protocol, String name)Stream<ProtocolMapperModel>getProtocolMappersStream()Returns protocol mappers as a stream.RealmModelgetRealm()Stream<RoleModel>getRealmScopeMappingsStream()From the scope mappings returned byScopeContainerModel.getScopeMappingsStream()returns only those that belong to the realm that owns this scope container.Set<String>getRedirectUris()Map<String,Integer>getRegisteredNodes()StringgetRegistrationToken()RoleModelgetRole(String name)Stream<RoleModel>getRolesStream()Returns available roles as a stream.Stream<RoleModel>getRolesStream(Integer first, Integer max)Returns available roles as a stream.StringgetRootUrl()Stream<RoleModel>getScopeMappingsStream()Returns scope mappings for this scope container as a stream.StringgetSecret()Set<String>getWebOrigins()booleanhasDirectScope(RoleModel role)Returnstrue, if this object has the given role directly in its scope.inthashCode()booleanhasScope(RoleModel role)Returnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.voidinvalidate()booleanisAlwaysDisplayInConsole()booleanisBearerOnly()booleanisConsentRequired()booleanisDirectAccessGrantsEnabled()booleanisEnabled()booleanisFrontchannelLogout()booleanisFullScopeAllowed()booleanisImplicitFlowEnabled()booleanisPublicClient()booleanisServiceAccountsEnabled()booleanisStandardFlowEnabled()booleanisSurrogateAuthRequired()protected booleanisUpdated()voidregisterNode(String nodeHost, int registrationTime)Register node or just update the 'lastReRegistration' time if this node is already registeredvoidremoveAttribute(String name)voidremoveAuthenticationFlowBindingOverride(String name)voidremoveClientScope(ClientScopeModel clientScope)voidremoveDefaultRoles(String... defaultRoles)Deprecated.voidremoveProtocolMapper(ProtocolMapperModel mapping)voidremoveRedirectUri(String redirectUri)booleanremoveRole(RoleModel role)voidremoveWebOrigin(String webOrigin)Stream<RoleModel>searchForRolesStream(String search, Integer first, Integer max)Searches roles by the given name.voidsetAlwaysDisplayInConsole(boolean alwaysDisplayInConsole)voidsetAttribute(String name, String value)voidsetAuthenticationFlowBindingOverride(String name, String value)voidsetBaseUrl(String url)voidsetBearerOnly(boolean only)voidsetClientAuthenticatorType(String clientAuthenticatorType)voidsetClientId(String clientId)voidsetConsentRequired(boolean consentRequired)voidsetDescription(String description)voidsetDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled)voidsetEnabled(boolean enabled)voidsetFrontchannelLogout(boolean flag)voidsetFullScopeAllowed(boolean value)voidsetImplicitFlowEnabled(boolean implicitFlowEnabled)voidsetManagementUrl(String url)voidsetName(String name)voidsetNodeReRegistrationTimeout(int timeout)voidsetNotBefore(int notBefore)voidsetProtocol(String protocol)voidsetPublicClient(boolean flag)voidsetRedirectUris(Set<String> redirectUris)voidsetRegistrationToken(String registrationToken)voidsetRootUrl(String url)voidsetSecret(String secret)voidsetServiceAccountsEnabled(boolean serviceAccountsEnabled)voidsetStandardFlowEnabled(boolean standardFlowEnabled)voidsetSurrogateAuthRequired(boolean surrogateAuthRequired)voidsetWebOrigins(Set<String> webOrigins)StringtoString()voidunregisterNode(String nodeHost)voidupdateClient()Notifies other providers that this client has been updated.voidupdateProtocolMapper(ProtocolMapperModel mapping)booleanvalidateSecret(String secret)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.ClientModel
getConsentScreenText, getDynamicClientScope, isDisplayOnConsentScreen
-
Methods inherited from interface org.keycloak.models.ClientScopeModel
getDynamicScopeRegexp, getGuiOrder, isDynamicScope, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope, setIsDynamicScope
-
Methods inherited from interface org.keycloak.models.RoleContainerModel
getDefaultRoles, updateDefaultRoles
-
-
-
-
Field Detail
-
cacheSession
protected RealmCacheSession cacheSession
-
cachedRealm
protected RealmModel cachedRealm
-
updated
protected ClientModel updated
-
cached
protected CachedClient cached
-
invalidated
protected boolean invalidated
-
-
Constructor Detail
-
ClientAdapter
public ClientAdapter(RealmModel cachedRealm, CachedClient cached, RealmCacheSession cacheSession)
-
-
Method Detail
-
invalidate
public void invalidate()
-
isUpdated
protected boolean isUpdated()
-
getCacheTimestamp
public long getCacheTimestamp()
- Specified by:
getCacheTimestampin interfaceCachedObject
-
updateClient
public void updateClient()
Description copied from interface:ClientModelNotifies other providers that this client has been updated.After a client is updated, providers can register for
ClientModel.ClientUpdatedEvent. The setters in this model do not send an update for individual updates of the model. This method is here to allow for sending this event for this client, allowsing for to group multiple changes of a client and signal that all the changes in this client have been performed.- Specified by:
updateClientin interfaceClientModel- See Also:
ProviderEvent,ProviderEventManager,ClientModel.ClientUpdatedEvent
-
getId
public String getId()
Description copied from interface:ClientModelReturns client internal ID (UUID).- Specified by:
getIdin interfaceClientModel- Specified by:
getIdin interfaceClientScopeModel- Specified by:
getIdin interfaceRoleContainerModel
-
getWebOrigins
public Set<String> getWebOrigins()
- Specified by:
getWebOriginsin interfaceClientModel
-
setWebOrigins
public void setWebOrigins(Set<String> webOrigins)
- Specified by:
setWebOriginsin interfaceClientModel
-
addClientScope
public void addClientScope(ClientScopeModel clientScope, boolean defaultScope)
Description copied from interface:ClientModelAdd clientScope with this client. Add it as default scope (if parameter 'defaultScope' is true) or optional scope (if parameter 'defaultScope' is false)- Specified by:
addClientScopein interfaceClientModel
-
addClientScopes
public void addClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope)
Description copied from interface:ClientModelAdd clientScopes with this client. Add as default scopes (if parameter 'defaultScope' is true) or optional scopes (if parameter 'defaultScope' is false)- Specified by:
addClientScopesin interfaceClientModel
-
removeClientScope
public void removeClientScope(ClientScopeModel clientScope)
- Specified by:
removeClientScopein interfaceClientModel
-
getClientScopes
public Map<String,ClientScopeModel> getClientScopes(boolean defaultScope)
Description copied from interface:ClientModelReturn all default scopes (if 'defaultScope' is true) or all optional scopes (if 'defaultScope' is false) linked with this client- Specified by:
getClientScopesin interfaceClientModel- Returns:
- map where key is the name of the clientScope, value is particular clientScope. Returns empty map if no scopes linked (never returns null).
-
addWebOrigin
public void addWebOrigin(String webOrigin)
- Specified by:
addWebOriginin interfaceClientModel
-
removeWebOrigin
public void removeWebOrigin(String webOrigin)
- Specified by:
removeWebOriginin interfaceClientModel
-
getRedirectUris
public Set<String> getRedirectUris()
- Specified by:
getRedirectUrisin interfaceClientModel
-
setRedirectUris
public void setRedirectUris(Set<String> redirectUris)
- Specified by:
setRedirectUrisin interfaceClientModel
-
addRedirectUri
public void addRedirectUri(String redirectUri)
- Specified by:
addRedirectUriin interfaceClientModel
-
removeRedirectUri
public void removeRedirectUri(String redirectUri)
- Specified by:
removeRedirectUriin interfaceClientModel
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceClientModel
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceClientModel
-
isAlwaysDisplayInConsole
public boolean isAlwaysDisplayInConsole()
- Specified by:
isAlwaysDisplayInConsolein interfaceClientModel
-
setAlwaysDisplayInConsole
public void setAlwaysDisplayInConsole(boolean alwaysDisplayInConsole)
- Specified by:
setAlwaysDisplayInConsolein interfaceClientModel
-
getClientAuthenticatorType
public String getClientAuthenticatorType()
- Specified by:
getClientAuthenticatorTypein interfaceClientModel
-
setClientAuthenticatorType
public void setClientAuthenticatorType(String clientAuthenticatorType)
- Specified by:
setClientAuthenticatorTypein interfaceClientModel
-
validateSecret
public boolean validateSecret(String secret)
- Specified by:
validateSecretin interfaceClientModel
-
getSecret
public String getSecret()
- Specified by:
getSecretin interfaceClientModel
-
setSecret
public void setSecret(String secret)
- Specified by:
setSecretin interfaceClientModel
-
getRegistrationToken
public String getRegistrationToken()
- Specified by:
getRegistrationTokenin interfaceClientModel
-
setRegistrationToken
public void setRegistrationToken(String registrationToken)
- Specified by:
setRegistrationTokenin interfaceClientModel
-
isPublicClient
public boolean isPublicClient()
- Specified by:
isPublicClientin interfaceClientModel
-
setPublicClient
public void setPublicClient(boolean flag)
- Specified by:
setPublicClientin interfaceClientModel
-
isFrontchannelLogout
public boolean isFrontchannelLogout()
- Specified by:
isFrontchannelLogoutin interfaceClientModel
-
setFrontchannelLogout
public void setFrontchannelLogout(boolean flag)
- Specified by:
setFrontchannelLogoutin interfaceClientModel
-
isFullScopeAllowed
public boolean isFullScopeAllowed()
- Specified by:
isFullScopeAllowedin interfaceClientModel
-
setFullScopeAllowed
public void setFullScopeAllowed(boolean value)
- Specified by:
setFullScopeAllowedin interfaceClientModel
-
getScopeMappingsStream
public Stream<RoleModel> getScopeMappingsStream()
Description copied from interface:ScopeContainerModelReturns scope mappings for this scope container as a stream.- Specified by:
getScopeMappingsStreamin interfaceScopeContainerModel- Returns:
- Stream of
RoleModel. Never returnsnull.
-
addScopeMapping
public void addScopeMapping(RoleModel role)
- Specified by:
addScopeMappingin interfaceScopeContainerModel
-
deleteScopeMapping
public void deleteScopeMapping(RoleModel role)
- Specified by:
deleteScopeMappingin interfaceScopeContainerModel
-
getRealmScopeMappingsStream
public Stream<RoleModel> getRealmScopeMappingsStream()
Description copied from interface:ScopeContainerModelFrom the scope mappings returned byScopeContainerModel.getScopeMappingsStream()returns only those that belong to the realm that owns this scope container.- Specified by:
getRealmScopeMappingsStreamin interfaceScopeContainerModel- Returns:
- stream of
RoleModel. Never returnsnull.
-
getRealm
public RealmModel getRealm()
- Specified by:
getRealmin interfaceClientModel- Specified by:
getRealmin interfaceClientScopeModel
-
getNotBefore
public int getNotBefore()
Description copied from interface:ClientModelTime in seconds since epoc- Specified by:
getNotBeforein interfaceClientModel- Returns:
-
setNotBefore
public void setNotBefore(int notBefore)
- Specified by:
setNotBeforein interfaceClientModel
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfaceClientModel- Specified by:
getProtocolin interfaceClientScopeModel
-
setProtocol
public void setProtocol(String protocol)
- Specified by:
setProtocolin interfaceClientModel- Specified by:
setProtocolin interfaceClientScopeModel
-
setAttribute
public void setAttribute(String name, String value)
- Specified by:
setAttributein interfaceClientModel- Specified by:
setAttributein interfaceClientScopeModel
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceClientModel- Specified by:
removeAttributein interfaceClientScopeModel
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceClientModel- Specified by:
getAttributein interfaceClientScopeModel
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributesin interfaceClientModel- Specified by:
getAttributesin interfaceClientScopeModel
-
setAuthenticationFlowBindingOverride
public void setAuthenticationFlowBindingOverride(String name, String value)
- Specified by:
setAuthenticationFlowBindingOverridein interfaceClientModel
-
removeAuthenticationFlowBindingOverride
public void removeAuthenticationFlowBindingOverride(String name)
- Specified by:
removeAuthenticationFlowBindingOverridein interfaceClientModel
-
getAuthenticationFlowBindingOverride
public String getAuthenticationFlowBindingOverride(String name)
Description copied from interface:ClientModelGet authentication flow binding override for this client. Allows client to override an authentication flow binding.- Specified by:
getAuthenticationFlowBindingOverridein interfaceClientModel- Parameters:
name- examples are "browser", "direct_grant"- Returns:
-
getAuthenticationFlowBindingOverrides
public Map<String,String> getAuthenticationFlowBindingOverrides()
- Specified by:
getAuthenticationFlowBindingOverridesin interfaceClientModel
-
getProtocolMappersStream
public Stream<ProtocolMapperModel> getProtocolMappersStream()
Description copied from interface:ProtocolMapperContainerModelReturns protocol mappers as a stream.- Specified by:
getProtocolMappersStreamin interfaceProtocolMapperContainerModel- Returns:
- Stream of protocol mapper. Never returns
null.
-
addProtocolMapper
public ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model)
- Specified by:
addProtocolMapperin interfaceProtocolMapperContainerModel
-
removeProtocolMapper
public void removeProtocolMapper(ProtocolMapperModel mapping)
- Specified by:
removeProtocolMapperin interfaceProtocolMapperContainerModel
-
updateProtocolMapper
public void updateProtocolMapper(ProtocolMapperModel mapping)
- Specified by:
updateProtocolMapperin interfaceProtocolMapperContainerModel
-
getProtocolMapperById
public ProtocolMapperModel getProtocolMapperById(String id)
- Specified by:
getProtocolMapperByIdin interfaceProtocolMapperContainerModel
-
getProtocolMapperByName
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name)
- Specified by:
getProtocolMapperByNamein interfaceProtocolMapperContainerModel
-
getClientId
public String getClientId()
Description copied from interface:ClientModelReturns client ID as defined by the user.- Specified by:
getClientIdin interfaceClientModel- Returns:
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientIdin interfaceClientModel
-
getName
public String getName()
- Specified by:
getNamein interfaceClientModel- Specified by:
getNamein interfaceClientScopeModel
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceClientModel- Specified by:
setNamein interfaceClientScopeModel
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceClientModel- Specified by:
getDescriptionin interfaceClientScopeModel
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceClientModel- Specified by:
setDescriptionin interfaceClientScopeModel
-
isSurrogateAuthRequired
public boolean isSurrogateAuthRequired()
- Specified by:
isSurrogateAuthRequiredin interfaceClientModel
-
setSurrogateAuthRequired
public void setSurrogateAuthRequired(boolean surrogateAuthRequired)
- Specified by:
setSurrogateAuthRequiredin interfaceClientModel
-
getManagementUrl
public String getManagementUrl()
- Specified by:
getManagementUrlin interfaceClientModel
-
setManagementUrl
public void setManagementUrl(String url)
- Specified by:
setManagementUrlin interfaceClientModel
-
getRootUrl
public String getRootUrl()
- Specified by:
getRootUrlin interfaceClientModel
-
setRootUrl
public void setRootUrl(String url)
- Specified by:
setRootUrlin interfaceClientModel
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrlin interfaceClientModel
-
setBaseUrl
public void setBaseUrl(String url)
- Specified by:
setBaseUrlin interfaceClientModel
-
getDefaultRolesStream
@Deprecated public Stream<String> getDefaultRolesStream()
Deprecated.- Specified by:
getDefaultRolesStreamin interfaceRoleContainerModel- Returns:
- Stream of default roles names or empty stream if there are none. Never returns
null.
-
addDefaultRole
@Deprecated public void addDefaultRole(String name)
Deprecated.- Specified by:
addDefaultRolein interfaceRoleContainerModel
-
removeDefaultRoles
@Deprecated public void removeDefaultRoles(String... defaultRoles)
Deprecated.- Specified by:
removeDefaultRolesin interfaceRoleContainerModel
-
isBearerOnly
public boolean isBearerOnly()
- Specified by:
isBearerOnlyin interfaceClientModel
-
setBearerOnly
public void setBearerOnly(boolean only)
- Specified by:
setBearerOnlyin interfaceClientModel
-
isConsentRequired
public boolean isConsentRequired()
- Specified by:
isConsentRequiredin interfaceClientModel
-
setConsentRequired
public void setConsentRequired(boolean consentRequired)
- Specified by:
setConsentRequiredin interfaceClientModel
-
isStandardFlowEnabled
public boolean isStandardFlowEnabled()
- Specified by:
isStandardFlowEnabledin interfaceClientModel
-
setStandardFlowEnabled
public void setStandardFlowEnabled(boolean standardFlowEnabled)
- Specified by:
setStandardFlowEnabledin interfaceClientModel
-
isImplicitFlowEnabled
public boolean isImplicitFlowEnabled()
- Specified by:
isImplicitFlowEnabledin interfaceClientModel
-
setImplicitFlowEnabled
public void setImplicitFlowEnabled(boolean implicitFlowEnabled)
- Specified by:
setImplicitFlowEnabledin interfaceClientModel
-
isDirectAccessGrantsEnabled
public boolean isDirectAccessGrantsEnabled()
- Specified by:
isDirectAccessGrantsEnabledin interfaceClientModel
-
setDirectAccessGrantsEnabled
public void setDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled)
- Specified by:
setDirectAccessGrantsEnabledin interfaceClientModel
-
isServiceAccountsEnabled
public boolean isServiceAccountsEnabled()
- Specified by:
isServiceAccountsEnabledin interfaceClientModel
-
setServiceAccountsEnabled
public void setServiceAccountsEnabled(boolean serviceAccountsEnabled)
- Specified by:
setServiceAccountsEnabledin interfaceClientModel
-
getRole
public RoleModel getRole(String name)
- Specified by:
getRolein interfaceRoleContainerModel
-
addRole
public RoleModel addRole(String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
addRole
public RoleModel addRole(String id, String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
removeRole
public boolean removeRole(RoleModel role)
- Specified by:
removeRolein interfaceRoleContainerModel
-
getRolesStream
public Stream<RoleModel> getRolesStream()
Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
getRolesStreamin interfaceRoleContainerModel- Returns:
- Stream of
RoleModel. Never returnsnull.
-
getRolesStream
public Stream<RoleModel> getRolesStream(Integer first, Integer max)
Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
getRolesStreamin interfaceRoleContainerModel- Parameters:
first-IntegerIndex of the first desired role. Ignored if negative ornull.max-IntegerMaximum number of returned roles. Ignored if negative ornull.- Returns:
- Stream of
RoleModel. Never returnsnull.
-
searchForRolesStream
public Stream<RoleModel> searchForRolesStream(String search, Integer first, Integer max)
Description copied from interface:RoleContainerModelSearches roles by the given name. Returns all roles that match the given filter.- Specified by:
searchForRolesStreamin interfaceRoleContainerModel- Parameters:
search-StringName of the role to be used as a filter.first-IntegerIndex of the first desired role. Ignored if negative ornull.max-IntegerMaximum number of returned roles. Ignored if negative ornull.- Returns:
- Stream of
RoleModel. Never returnsnull.
-
getNodeReRegistrationTimeout
public int getNodeReRegistrationTimeout()
- Specified by:
getNodeReRegistrationTimeoutin interfaceClientModel
-
setNodeReRegistrationTimeout
public void setNodeReRegistrationTimeout(int timeout)
- Specified by:
setNodeReRegistrationTimeoutin interfaceClientModel
-
getRegisteredNodes
public Map<String,Integer> getRegisteredNodes()
- Specified by:
getRegisteredNodesin interfaceClientModel
-
registerNode
public void registerNode(String nodeHost, int registrationTime)
Description copied from interface:ClientModelRegister node or just update the 'lastReRegistration' time if this node is already registered- Specified by:
registerNodein interfaceClientModel
-
unregisterNode
public void unregisterNode(String nodeHost)
- Specified by:
unregisterNodein interfaceClientModel
-
hasDirectScope
public boolean hasDirectScope(RoleModel role)
Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly in its scope.- Specified by:
hasDirectScopein interfaceClientModel- Specified by:
hasDirectScopein interfaceScopeContainerModel- Parameters:
role- the role- Returns:
- see description
- See Also:
if you want to check whether this object has the given role directly or indirectly in its scope
-
hasScope
public boolean hasScope(RoleModel role)
Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.- Specified by:
hasScopein interfaceScopeContainerModel- Parameters:
role- the role- Returns:
- see description
- See Also:
if you want to check if this object has the given role directly in its scope
-
-