Package org.cyclos.impl.access
Interface AccessClientServiceLocal
-
- All Superinterfaces:
AccessClientService,CRUDService<AccessClientDTO,AccessClientData,AccessClientDataParams>,CRUDServiceLocal<AccessClient,AccessClientDTO,AccessClientData,AccessClientDataParams>,Service
public interface AccessClientServiceLocal extends AccessClientService, CRUDServiceLocal<AccessClient,AccessClientDTO,AccessClientData,AccessClientDataParams>
Local interface forAccessClientService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanActivateAccessClient(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.AccessClientfindByToken(Network network, String token)Finds an access client by token in the given networkAccessClientfindForAccess(Network network, String remoteAddress, String token)Returns an access client by tokenAccessClientfindForActivation(User user, String activationCode)Finds an access client for the given user for activation - needs to be in unassigned statusbooleanisVisible(AccessClient accessClient)Returns whether the given access client is visible to the logged userList<AccessClient>listVisible(User user, AccessClientStatus... status)Returns all visible access clients, ordered by type and then client namesAccessClientlocateAccessClient(AccessClientLocatorVO locator)Locates an access client, either by id or tokenvoidremoveAll(User user)Removes all access clients of the given user-
Methods inherited from interface org.cyclos.services.access.AccessClientService
activate, block, createAndActivate, getActivationCode, getActivationData, getListData, getSearchData, getTypeData, locate, requestActivationCode, search, unassign, unassignCurrent, unblock
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
canActivateAccessClient
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.
-
findByToken
AccessClient findByToken(Network network, String token)
Finds an access client by token in the given network
-
findForAccess
AccessClient findForAccess(Network network, String remoteAddress, String token)
Returns an access client by token
-
findForActivation
AccessClient findForActivation(User user, String activationCode)
Finds an access client for the given user for activation - needs to be in unassigned status
-
isVisible
boolean isVisible(AccessClient accessClient)
Returns whether the given access client is visible to the logged user
-
listVisible
List<AccessClient> listVisible(User user, AccessClientStatus... status)
Returns all visible access clients, ordered by type and then client names- Parameters:
status- If not null filter by those status. Otherwise returns all visible.
-
locateAccessClient
AccessClient locateAccessClient(AccessClientLocatorVO locator)
Locates an access client, either by id or token
-
removeAll
void removeAll(User user)
Removes all access clients of the given user
-
-