javadoc
This commit is contained in:
parent
1dacddb7e3
commit
f6a080729a
2 changed files with 28 additions and 1 deletions
|
@ -30,11 +30,32 @@ import javax.ws.rs.core.MediaType;
|
||||||
* @version $Revision: 1 $
|
* @version $Revision: 1 $
|
||||||
*/
|
*/
|
||||||
public interface UserStorageProviderResource {
|
public interface UserStorageProviderResource {
|
||||||
|
/**
|
||||||
|
* If the provider supports synchronization, this will invoke it.
|
||||||
|
*
|
||||||
|
* Action can be "triggerFullSync" or "triggerChangedUsersSync"
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param action
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("{componentId}/sync")
|
@Path("{componentId}/sync")
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
SynchronizationResultRepresentation syncUsers(@QueryParam("action") String action);
|
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
|
@POST
|
||||||
@Path("{componentId}/mappers/{mapperId}/sync")
|
@Path("{componentId}/mappers/{mapperId}/sync")
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -80,9 +80,13 @@ public class UserStorageProviderResource {
|
||||||
auth.init(RealmAuth.Resource.USER);
|
auth.init(RealmAuth.Resource.USER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger sync of users
|
* Trigger sync of users
|
||||||
*
|
*
|
||||||
|
* Action can be "triggerFullSync" or "triggerChangedUsersSync"
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @param action
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
|
@ -128,6 +132,8 @@ public class UserStorageProviderResource {
|
||||||
/**
|
/**
|
||||||
* Trigger sync of mapper data related to ldap mapper (roles, groups, ...)
|
* Trigger sync of mapper data related to ldap mapper (roles, groups, ...)
|
||||||
*
|
*
|
||||||
|
* direction is "fedToKeycloak" or "keycloakToFed"
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
|
|
Loading…
Reference in a new issue