public class ResourceServerAdapter extends AbstractAuthorizationModel implements ResourceServer, JpaModel<ResourceServerEntity>
ResourceServer.SearchableFields
Constructor and Description |
---|
ResourceServerAdapter(ResourceServerEntity entity,
javax.persistence.EntityManager em,
StoreFactory storeFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DecisionStrategy |
getDecisionStrategy()
Returns the
DecisionStrategy configured for this instance. |
ResourceServerEntity |
getEntity() |
String |
getId()
Returns the unique identifier for this instance.
|
PolicyEnforcementMode |
getPolicyEnforcementMode()
Returns the
PolicyEnforcementMode configured for this instance. |
int |
hashCode() |
boolean |
isAllowRemoteResourceManagement()
Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
|
void |
setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
|
void |
setDecisionStrategy(DecisionStrategy decisionStrategy)
Defines a
DecisionStrategy for this instance, indicating how permissions should be granted depending on the given
decisionStrategy . |
void |
setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
Defines a
PolicyEnforcementMode for this instance. |
static ResourceServerEntity |
toEntity(javax.persistence.EntityManager em,
ResourceServer resource) |
throwExceptionIfReadonly
public ResourceServerAdapter(ResourceServerEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public ResourceServerEntity getEntity()
getEntity
in interface JpaModel<ResourceServerEntity>
public String getId()
ResourceServer
getId
in interface ResourceServer
public boolean isAllowRemoteResourceManagement()
ResourceServer
true
if the resource server is allowed to managed them remotelyisAllowRemoteResourceManagement
in interface ResourceServer
public void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
ResourceServer
setAllowRemoteResourceManagement
in interface ResourceServer
allowRemoteResourceManagement
- true
if the resource server is allowed to managed them remotelypublic PolicyEnforcementMode getPolicyEnforcementMode()
ResourceServer
PolicyEnforcementMode
configured for this instance.getPolicyEnforcementMode
in interface ResourceServer
PolicyEnforcementMode
configured for this instance.public void setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
ResourceServer
PolicyEnforcementMode
for this instance.setPolicyEnforcementMode
in interface ResourceServer
enforcementMode
- one of the available options in PolicyEnforcementMode
public DecisionStrategy getDecisionStrategy()
ResourceServer
DecisionStrategy
configured for this instance.getDecisionStrategy
in interface ResourceServer
public void setDecisionStrategy(DecisionStrategy decisionStrategy)
ResourceServer
DecisionStrategy
for this instance, indicating how permissions should be granted depending on the given
decisionStrategy
.setDecisionStrategy
in interface ResourceServer
decisionStrategy
- the decision strategypublic static ResourceServerEntity toEntity(javax.persistence.EntityManager em, ResourceServer resource)
Copyright © 2021 JBoss by Red Hat. All rights reserved.