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