public class ResourceAdapter extends AbstractAuthorizationModel implements Resource, JpaModel<ResourceEntity>
EXACT_NAME
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) |
throwExceptionIfReadonly
public ResourceAdapter(ResourceEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ResourceEntity getEntity()
getEntity
in interface JpaModel<ResourceEntity>
public String getDisplayName()
getDisplayName
in interface Resource
public void setDisplayName(String name)
setDisplayName
in interface Resource
public void updateUris(Set<String> uri)
updateUris
in interface Resource
public String getIconUri()
getIconUri
in interface Resource
public void setIconUri(String iconUri)
setIconUri
in interface Resource
public ResourceServer getResourceServer()
getResourceServer
in interface Resource
public boolean isOwnerManagedAccess()
isOwnerManagedAccess
in interface Resource
public void setOwnerManagedAccess(boolean ownerManagedAccess)
setOwnerManagedAccess
in interface Resource
public void updateScopes(Set<Scope> toUpdate)
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
public boolean isFetched(String association)
public static ResourceEntity toEntity(javax.persistence.EntityManager em, Resource resource)
Copyright © 2021 JBoss by Red Hat. All rights reserved.