public interface AccessClientService extends CRUDService<AccessClientDTO,AccessClientData,AccessClientDataParams>
| Modifier and Type | Method and Description |
|---|---|
ActivateAccessClientDTO |
activate(@NotNull java.lang.String activationCode,
java.lang.String prefix)
Activates an access client for the current user, using the given activation code.
|
void |
block(@NotNull AccessClientActionParams params)
Blocks the given an access client
|
java.lang.String |
getActivationCode(@NotNull AccessClientActionParams params)
Returns the code which can be used to activate the access client, connecting an application
|
AccessClientsListData |
getListData(@NotNull PrincipalTypeVO principalType,
@NotNull UserLocatorVO user)
Returns data for listing access clients of a given type and user
|
AccessClientsSearchData |
getSearchData()
Returns data for searching access clients
|
java.util.List<AccessClientTypeData> |
getTypeData(@NotNull UserLocatorVO user,
ChannelVO channel)
Returns data each access client type the authenticated user can see for the given user.
|
AccessClientVO |
locate(@NotNull AccessClientLocatorVO locator)
Returns an access client by either id or token, but only if it belongs (or is managed by) the authenticated user
|
Page<AccessClientDetailedVO> |
search(@NotNull AccessClientQuery query)
Searches for access clients according to the given criteria
|
void |
unassign(@NotNull AccessClientActionParams params)
Unassigns the given access client from its connected application
|
boolean |
unassignCurrent(ActionWithConfirmationPassword action)
Unassigns the access client in the current authorization.
|
void |
unblock(@NotNull AccessClientActionParams params)
Unblocks the given access client
|
getData, getDataForNew, load, remove, removeAll, saveActivateAccessClientDTO activate(@NotNull @NotNull java.lang.String activationCode, java.lang.String prefix) throws FrameworkException
FrameworkExceptionvoid block(@NotNull
@NotNull AccessClientActionParams params)
throws FrameworkException
IllegalActionException - When the status is not activeFrameworkExceptionjava.lang.String getActivationCode(@NotNull
@NotNull AccessClientActionParams params)
throws FrameworkException
IllegalActionException - When the status is not unassignedFrameworkExceptionAccessClientsListData getListData(@NotNull @NotNull PrincipalTypeVO principalType, @NotNull @NotNull UserLocatorVO user) throws FrameworkException
FrameworkExceptionAccessClientsSearchData getSearchData() throws FrameworkException
FrameworkExceptionjava.util.List<AccessClientTypeData> getTypeData(@NotNull @NotNull UserLocatorVO user, ChannelVO channel) throws FrameworkException
FrameworkExceptionAccessClientVO locate(@NotNull @NotNull AccessClientLocatorVO locator) throws FrameworkException
FrameworkExceptionPage<AccessClientDetailedVO> search(@NotNull @NotNull AccessClientQuery query) throws FrameworkException
FrameworkExceptionvoid unassign(@NotNull
@NotNull AccessClientActionParams params)
throws FrameworkException
IllegalActionException - When the status is unassignedFrameworkExceptionboolean unassignCurrent(ActionWithConfirmationPassword action) throws FrameworkException
FrameworkExceptionvoid unblock(@NotNull
@NotNull AccessClientActionParams params)
throws FrameworkException
IllegalActionException - When the status is not blockedFrameworkException