public class ResourceAdapter extends Object implements Resource, CachedModel<Resource>
Resource.FilterOption, Resource.SearchableFields
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() |
String |
getResourceServer() |
List<Scope> |
getScopes() |
String |
getSingleAttribute(String name) |
String |
getType() |
Set<String> |
getUris() |
int |
hashCode() |
void |
invalidate() |
protected void |
invalidateFlag() |
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 Resource
public void setDisplayName(String name)
setDisplayName
in interface Resource
public String getIconUri()
getIconUri
in interface Resource
public void setIconUri(String iconUri)
setIconUri
in interface Resource
public String getResourceServer()
getResourceServer
in interface Resource
public void updateUris(Set<String> uris)
updateUris
in interface Resource
public boolean isOwnerManagedAccess()
isOwnerManagedAccess
in interface Resource
public void setOwnerManagedAccess(boolean ownerManagedAccess)
setOwnerManagedAccess
in interface Resource
public void updateScopes(Set<Scope> scopes)
updateScopes
in interface Resource
public Map<String,List<String>> getAttributes()
getAttributes
in interface Resource
public String getSingleAttribute(String name)
getSingleAttribute
in interface Resource
public List<String> getAttribute(String name)
getAttribute
in interface Resource
public void setAttribute(String name, List<String> values)
setAttribute
in interface Resource
public void removeAttribute(String name)
removeAttribute
in interface Resource
Copyright © 2021 JBoss by Red Hat. All rights reserved.