Class MigrateOperation
- java.lang.Object
-
- org.wildfly.extension.picketlink.federation.MigrateOperation
-
- All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
public class MigrateOperation extends Object implements org.jboss.as.controller.OperationStepHandler
Operation to migrate from the legacy picketlink-federation subsystem to the keycloak-saml subsystem. This operation must be performed when the server is in admin-only mode.This operation assumes that the user has already obtained the Keycloak client SAML adapter and installed it.
Internally, the operation:
- queries the description of the entire picketlink-federation subsystem by invoking the :describe operation. This returns a list of :add operations for each picketlink-federation resource.
- :add the new org.keycloak.keycloak-saml-adapter-subsystem extension if necessary (this should already be added when installing the Keycloak client SAML adapter)
- for each picketlink-federation resource, transform the :add operations to add the corresponding resource to the new keycloak-saml. In this step, changes to the resources model are taken into account
- :remove the picketlink-federation subsystem
:describe-migrationoperation will return a list of all the actual operations that would be performed during the invocation of the:migrateoperation. Note that all new operation addresses are generated for standalone mode. If this is a domain mode server then the addresses are fixed after they have been generated- Author:
- Farah Juma
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)
-
-
-
Method Detail
-
execute
public void execute(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException- Specified by:
executein interfaceorg.jboss.as.controller.OperationStepHandler- Throws:
org.jboss.as.controller.OperationFailedException
-
-