public class ResourceAdapter extends Object implements Resource, CachedModel<Resource>
| Modifier and Type | Field and Description |
|---|---|
protected CachedResource |
cached |
protected StoreFactoryCacheSession |
cacheSession |
protected boolean |
invalidated |
protected List<Scope> |
scopes |
protected Resource |
updated |
| Constructor and Description |
|---|
ResourceAdapter(CachedResource cached,
StoreFactoryCacheSession cacheSession) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getCacheTimestamp() |
Resource |
getDelegateForUpdate() |
String |
getIconUri() |
String |
getId() |
String |
getName() |
String |
getOwner() |
ResourceServer |
getResourceServer() |
List<Scope> |
getScopes() |
String |
getType() |
String |
getUri() |
int |
hashCode() |
void |
invalidate() |
protected void |
invalidateFlag() |
protected boolean |
isUpdated() |
void |
setIconUri(String iconUri) |
void |
setName(String name) |
void |
setType(String type) |
void |
setUri(String uri) |
void |
updateScopes(Set<Scope> scopes) |
protected CachedResource cached
protected StoreFactoryCacheSession cacheSession
protected Resource updated
protected boolean invalidated
public ResourceAdapter(CachedResource cached, StoreFactoryCacheSession cacheSession)
public Resource getDelegateForUpdate()
getDelegateForUpdate in interface CachedModel<Resource>protected void invalidateFlag()
public void invalidate()
invalidate in interface CachedModel<Resource>public long getCacheTimestamp()
getCacheTimestamp in interface CachedModel<Resource>protected boolean isUpdated()
public String getIconUri()
getIconUri in interface Resourcepublic void setIconUri(String iconUri)
setIconUri in interface Resourcepublic ResourceServer getResourceServer()
getResourceServer in interface Resourcepublic void updateScopes(Set<Scope> scopes)
updateScopes in interface ResourceCopyright © 2017 JBoss by Red Hat. All rights reserved.