public class ScopeAdapter extends AbstractAuthorizationModel implements Scope, JpaModel<ScopeEntity>
Scope.FilterOption, Scope.SearchableFields| Constructor and Description |
|---|
ScopeAdapter(ScopeEntity entity,
javax.persistence.EntityManager em,
StoreFactory storeFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDisplayName()
Returns the end user friendly name for this scope.
|
ScopeEntity |
getEntity() |
String |
getIconUri()
Returns an icon
URI for this scope. |
String |
getId()
Returns the unique identifier for this instance.
|
String |
getName()
Returns the name of this scope.
|
ResourceServer |
getResourceServer()
Returns the
ResourceServer instance to where this scope belongs to. |
int |
hashCode() |
void |
setDisplayName(String name)
Sets an end user friendly name for this scope.
|
void |
setIconUri(String iconUri)
Sets an icon
URI for this scope. |
void |
setName(String name)
Sets a name for this scope.
|
static ScopeEntity |
toEntity(javax.persistence.EntityManager em,
Scope scope) |
throwExceptionIfReadonlypublic ScopeAdapter(ScopeEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ScopeEntity getEntity()
getEntity in interface JpaModel<ScopeEntity>public String getId()
Scopepublic String getName()
Scopepublic void setName(String name)
Scopepublic String getDisplayName()
ScopeScope.getName() is returned.getDisplayName in interface Scopepublic void setDisplayName(String name)
ScopesetDisplayName in interface Scopename - the name of this scopepublic String getIconUri()
ScopeURI for this scope.getIconUri in interface Scopepublic void setIconUri(String iconUri)
ScopeURI for this scope.setIconUri in interface Scopepublic ResourceServer getResourceServer()
ScopeResourceServer instance to where this scope belongs to.getResourceServer in interface Scopepublic static ScopeEntity toEntity(javax.persistence.EntityManager em, Scope scope)
Copyright © 2021 JBoss by Red Hat. All rights reserved.