|
void | finishModelStage (OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException |
|
|
boolean | attribNotChanging (String attributeName, ModelNode newValue, ModelNode oldValue) |
|
Update an attribute on an Auth Server.
- 著者
- Stan Silvert ssilv.nosp@m.ert@.nosp@m.redha.nosp@m.t.co.nosp@m.m (C) 2014 Red Hat Inc.
◆ KeycloakSubsystemWriteAttributeHandler() [1/2]
org.keycloak.subsystem.server.extension.KeycloakSubsystemWriteAttributeHandler.KeycloakSubsystemWriteAttributeHandler |
( |
List< AttributeDefinition > |
definitions | ) |
|
|
inline |
36 this(definitions.toArray(
new AttributeDefinition[definitions.size()]));
◆ KeycloakSubsystemWriteAttributeHandler() [2/2]
org.keycloak.subsystem.server.extension.KeycloakSubsystemWriteAttributeHandler.KeycloakSubsystemWriteAttributeHandler |
( |
AttributeDefinition... |
definitions | ) |
|
|
inline |
◆ attribNotChanging()
boolean org.keycloak.subsystem.server.extension.KeycloakSubsystemWriteAttributeHandler.attribNotChanging |
( |
String |
attributeName, |
|
|
ModelNode |
newValue, |
|
|
ModelNode |
oldValue |
|
) |
| |
|
inlineprivate |
61 AttributeDefinition attribDef = KeycloakSubsystemDefinition.lookup(attributeName);
62 if (!oldValue.isDefined()) {
63 oldValue = attribDef.getDefaultValue();
65 if (!newValue.isDefined()) {
66 newValue = attribDef.getDefaultValue();
68 return newValue.equals(oldValue);
◆ finishModelStage()
void org.keycloak.subsystem.server.extension.KeycloakSubsystemWriteAttributeHandler.finishModelStage |
( |
OperationContext |
context, |
|
|
ModelNode |
operation, |
|
|
String |
attributeName, |
|
|
ModelNode |
newValue, |
|
|
ModelNode |
oldValue, |
|
|
Resource |
model |
|
) |
| throws OperationFailedException |
|
inlineprotected |
45 if (!context.isNormalServer() ||
attribNotChanging(attributeName, newValue, oldValue)) {
46 super.finishModelStage(context, operation, attributeName, newValue, oldValue, model);
50 String deploymentName = ServerUtil.getDeploymentName(operation);
52 if (attributeName.equals(KeycloakSubsystemDefinition.WEB_CONTEXT.getName())) {
53 KeycloakAdapterConfigService.INSTANCE.setWebContext(newValue.asString());
54 ServerUtil.addStepToRedeployServerWar(context, deploymentName);
57 super.finishModelStage(context, operation, attributeName, newValue, oldValue, model);
boolean attribNotChanging(String attributeName, ModelNode newValue, ModelNode oldValue)
Definition: KeycloakSubsystemWriteAttributeHandler.java:60
このクラス詳解は次のファイルから抽出されました: