public class ResourceAdapter extends AbstractAuthorizationModel implements Resource, JpaModel<ResourceEntity>
| Constructor and Description |
|---|
ResourceAdapter(ResourceEntity entity,
javax.persistence.EntityManager em,
StoreFactory storeFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<String> |
getAttribute(String name) |
Map<String,List<String>> |
getAttributes() |
String |
getDisplayName() |
ResourceEntity |
getEntity() |
String |
getIconUri() |
String |
getId() |
String |
getName() |
String |
getOwner() |
ResourceServer |
getResourceServer() |
List<Scope> |
getScopes() |
String |
getSingleAttribute(String name) |
String |
getType() |
Set<String> |
getUris() |
int |
hashCode() |
boolean |
isFetched(String association) |
boolean |
isOwnerManagedAccess() |
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) |
static ResourceEntity |
toEntity(javax.persistence.EntityManager em,
Resource resource) |
void |
updateScopes(Set<Scope> toUpdate) |
void |
updateUris(Set<String> uri) |
throwExceptionIfReadonlypublic ResourceAdapter(ResourceEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ResourceEntity getEntity()
getEntity in interface JpaModel<ResourceEntity>public String getDisplayName()
getDisplayName in interface Resourcepublic void setDisplayName(String name)
setDisplayName in interface Resourcepublic void updateUris(Set<String> uri)
updateUris in interface Resourcepublic String getIconUri()
getIconUri in interface Resourcepublic void setIconUri(String iconUri)
setIconUri in interface Resourcepublic ResourceServer getResourceServer()
getResourceServer in interface Resourcepublic boolean isOwnerManagedAccess()
isOwnerManagedAccess in interface Resourcepublic void setOwnerManagedAccess(boolean ownerManagedAccess)
setOwnerManagedAccess in interface Resourcepublic void updateScopes(Set<Scope> toUpdate)
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)
public static ResourceEntity toEntity(javax.persistence.EntityManager em, Resource resource)
Copyright © 2020 JBoss by Red Hat. All rights reserved.