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()
CachedModelgetDelegateForUpdate in interface CachedModel<Scope>protected void invalidateFlag()
public void invalidate()
CachedModelinvalidate in interface CachedModel<Scope>public long getCacheTimestamp()
CachedModelgetCacheTimestamp in interface CachedModel<Scope>protected boolean isUpdated()
public String getId()
Scopepublic String getName()
Scopepublic void setName(String name)
Scopepublic String getDisplayName()
ScopeScope.getName() is returned.getDisplayName in interface Scopepublic void setDisplayName(String name)
ScopesetDisplayName in interface Scopename - the name of this scopepublic String getIconUri()
ScopeURI for this scope.getIconUri in interface Scopepublic void setIconUri(String iconUri)
ScopeURI for this scope.setIconUri in interface Scopepublic ResourceServer getResourceServer()
ScopeResourceServer instance to where this scope belongs to.getResourceServer in interface ScopeCopyright © 2021 JBoss by Red Hat. All rights reserved.