public interface AccessClientServiceLocal extends AccessClientService, CRUDServiceLocal<AccessClient,AccessClientDTO,AccessClientData,AccessClientDataParams>
AccessClientService| Modifier and Type | Method and Description |
|---|---|
boolean |
canActivateAccessClient(AccessClientPrincipalType type,
User user)
Returns if the given user can activate an access client of the given type by checking
if there are unassigned access clients or if it is possible to create a new one.
|
AccessClient |
findByToken(Network network,
java.lang.String token)
Finds an access client by token in the given network
|
AccessClient |
findForAccess(Network network,
java.lang.String remoteAddress,
java.lang.String token)
Returns an access client by token
|
AccessClient |
findForActivation(User user,
java.lang.String activationCode)
Finds an access client for the given user for activation - needs to be in unassigned status
|
boolean |
isVisible(AccessClient accessClient)
Returns whether the given access client is visible to the logged user
|
java.util.List<AccessClient> |
listVisible(User user,
AccessClientStatus... status)
Returns all visible access clients, ordered by type and then client names
|
AccessClient |
locateAccessClient(AccessClientLocator locator)
Locates an access client, either by id or token
|
activate, block, getActivationCode, getListData, getSearchData, getTypeData, locate, search, unassign, unassignCurrent, unblockfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean canActivateAccessClient(AccessClientPrincipalType type, User user)
AccessClient findByToken(Network network, java.lang.String token)
AccessClient findForAccess(Network network, java.lang.String remoteAddress, java.lang.String token)
AccessClient findForActivation(User user, java.lang.String activationCode)
boolean isVisible(AccessClient accessClient)
java.util.List<AccessClient> listVisible(User user, AccessClientStatus... status)
status - If not null filter by those status. Otherwise returns all visible.AccessClient locateAccessClient(AccessClientLocator locator)