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) |
throwExceptionIfReadonly
public ScopeAdapter(ScopeEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ScopeEntity getEntity()
getEntity
in interface JpaModel<ScopeEntity>
public String getId()
Scope
public String getName()
Scope
public void setName(String name)
Scope
public String getDisplayName()
Scope
Scope.getName()
is returned.getDisplayName
in interface Scope
public void setDisplayName(String name)
Scope
setDisplayName
in interface Scope
name
- the name of this scopepublic String getIconUri()
Scope
URI
for this scope.getIconUri
in interface Scope
public void setIconUri(String iconUri)
Scope
URI
for this scope.setIconUri
in interface Scope
public ResourceServer getResourceServer()
Scope
ResourceServer
instance to where this scope belongs to.getResourceServer
in interface Scope
public static ScopeEntity toEntity(javax.persistence.EntityManager em, Scope scope)
Copyright © 2021 JBoss by Red Hat. All rights reserved.