This commit is contained in:
Bill Burke 2016-11-28 12:25:54 -05:00
parent 1dacddb7e3
commit f6a080729a
2 changed files with 28 additions and 1 deletions

View file

@ -30,11 +30,32 @@ import javax.ws.rs.core.MediaType;
* @version $Revision: 1 $
*/
public interface UserStorageProviderResource {
/**
* If the provider supports synchronization, this will invoke it.
*
* Action can be "triggerFullSync" or "triggerChangedUsersSync"
*
*
* @param action
* @return
*/
@POST
@Path("{componentId}/sync")
@Produces(MediaType.APPLICATION_JSON)
SynchronizationResultRepresentation syncUsers(@QueryParam("action") String action);
/**
* REST invocation for initiating sync for an ldap mapper. This method may be moved in the future. Right now
* don't have a good place for it.
*
* direction is "fedToKeycloak" or "keycloakToFed"
*
*
* @param componentId
* @param mapperId
* @param direction
* @return
*/
@POST
@Path("{componentId}/mappers/{mapperId}/sync")
@Produces(MediaType.APPLICATION_JSON)

View file

@ -80,9 +80,13 @@ public class UserStorageProviderResource {
auth.init(RealmAuth.Resource.USER);
}
/**
/**
* Trigger sync of users
*
* Action can be "triggerFullSync" or "triggerChangedUsersSync"
*
* @param id
* @param action
* @return
*/
@POST
@ -128,6 +132,8 @@ public class UserStorageProviderResource {
/**
* Trigger sync of mapper data related to ldap mapper (roles, groups, ...)
*
* direction is "fedToKeycloak" or "keycloakToFed"
*
* @return
*/
@POST