public class ScopeAdapter extends Object implements Scope, CachedModel<Scope>
Scope.FilterOption, Scope.SearchableFields
Modifier and Type | Field and Description |
---|---|
protected CachedScope |
cached |
protected StoreFactoryCacheSession |
cacheSession |
protected boolean |
invalidated |
protected Scope |
updated |
Constructor and Description |
---|
ScopeAdapter(CachedScope cached,
StoreFactoryCacheSession cacheSession) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getCacheTimestamp()
When was the model was loaded from database.
|
Scope |
getDelegateForUpdate()
Invalidates the cache for this model and returns a delegate that represents the actual data provider
|
String |
getDisplayName()
Returns the end user friendly name for this scope.
|
String |
getIconUri()
Returns an icon
URI for this scope. |
String |
getId()
Returns the unique identifier for this instance.
|
String |
getName()
Returns the name of this scope.
|
ResourceServer |
getResourceServer()
Returns the
ResourceServer instance to where this scope belongs to. |
int |
hashCode() |
void |
invalidate()
Invalidate the cache for this model
|
protected void |
invalidateFlag() |
protected boolean |
isUpdated() |
void |
setDisplayName(String name)
Sets an end user friendly name for this scope.
|
void |
setIconUri(String iconUri)
Sets an icon
URI for this scope. |
void |
setName(String name)
Sets a name for this scope.
|
protected CachedScope cached
protected StoreFactoryCacheSession cacheSession
protected Scope updated
protected boolean invalidated
public ScopeAdapter(CachedScope cached, StoreFactoryCacheSession cacheSession)
public Scope getDelegateForUpdate()
CachedModel
getDelegateForUpdate
in interface CachedModel<Scope>
protected void invalidateFlag()
public void invalidate()
CachedModel
invalidate
in interface CachedModel<Scope>
public long getCacheTimestamp()
CachedModel
getCacheTimestamp
in interface CachedModel<Scope>
protected boolean isUpdated()
public String getId()
Scope
public String getName()
Scope
public void setName(String name)
Scope
public String getDisplayName()
Scope
Scope.getName()
is returned.getDisplayName
in interface Scope
public void setDisplayName(String name)
Scope
setDisplayName
in interface Scope
name
- the name of this scopepublic String getIconUri()
Scope
URI
for this scope.getIconUri
in interface Scope
public void setIconUri(String iconUri)
Scope
URI
for this scope.setIconUri
in interface Scope
public ResourceServer getResourceServer()
Scope
ResourceServer
instance to where this scope belongs to.getResourceServer
in interface Scope
Copyright © 2021 JBoss by Red Hat. All rights reserved.