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) |
List<String> |
getAttribute(String name) |
Map<String,List<String>> |
getAttributes() |
long |
getCacheTimestamp() |
Resource |
getDelegateForUpdate() |
String |
getDisplayName() |
String |
getIconUri() |
String |
getId() |
String |
getName() |
String |
getOwner() |
ResourceServer |
getResourceServer() |
List<Scope> |
getScopes() |
String |
getSingleAttribute(String name) |
String |
getType() |
Set<String> |
getUris() |
int |
hashCode() |
void |
invalidate() |
protected void |
invalidateFlag() |
boolean |
isFetched(String association) |
boolean |
isOwnerManagedAccess() |
protected boolean |
isUpdated() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
List<String> values) |
void |
setDisplayName(String name) |
void |
setIconUri(String iconUri) |
void |
setName(String name) |
void |
setOwnerManagedAccess(boolean ownerManagedAccess) |
void |
setType(String type) |
void |
updateScopes(Set<Scope> scopes) |
void |
updateUris(Set<String> uris) |
protected final CachedResource cached
protected final 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 getDisplayName()
getDisplayName in interface Resourcepublic void setDisplayName(String name)
setDisplayName in interface Resourcepublic String getIconUri()
getIconUri in interface Resourcepublic void setIconUri(String iconUri)
setIconUri in interface Resourcepublic ResourceServer getResourceServer()
getResourceServer in interface Resourcepublic void updateUris(Set<String> uris)
updateUris in interface Resourcepublic boolean isOwnerManagedAccess()
isOwnerManagedAccess in interface Resourcepublic void setOwnerManagedAccess(boolean ownerManagedAccess)
setOwnerManagedAccess in interface Resourcepublic void updateScopes(Set<Scope> scopes)
updateScopes in interface Resourcepublic Map<String,List<String>> getAttributes()
getAttributes in interface Resourcepublic String getSingleAttribute(String name)
getSingleAttribute in interface Resourcepublic List<String> getAttribute(String name)
getAttribute in interface Resourcepublic void setAttribute(String name, List<String> values)
setAttribute in interface Resourcepublic void removeAttribute(String name)
removeAttribute in interface Resourcepublic boolean isFetched(String association)
Copyright © 2019 JBoss by Red Hat. All rights reserved.