Generated by
JDiff

Interface org.cyclos.services.access.TokenService

Removed Methods
SerializableInputStream exportToCSV(TokenQuery) Returns a CSV version of all returned tokens
 

Added Methods
Long activate(TokenActionDTO, UserLocatorVO) Searches for a token with the given type and value specified in the TokenActionDTO parameter.
The token's status must be TokenStatus.UNASSIGNED orTokenStatus.PENDING_ACTIVATION but assigned to the logged user or one of its operators.
If the token is unassigned then this method assigns it to the user specified by the UserLocatorVO parameter and change its status to TokenStatus.ACTIVE.
Otherwise (the token is already assigned and is pending by activation) it activates only.
This method can be used only by members (i.e.
FileInfo exportTokens(ExportFormatVO, TokenQuery) Exports the token search results to file
void setActivationDeadline(Long, DateTime) Changes the token activation deadline date.
void setExpiryDate(Long, DateTime) Changes the token expiry date.
 

Changed Methods
void assign(Long, UserLocatorVO) Change in signature from (TokenActionDTO, UserLocatorVO) to (Long, UserLocatorVO).
Change in exceptions thrown from (org.cyclos.model.FrameworkException, org.cyclos.model.access.MaxTokenActivationAttemptsException, org.cyclos.model.access.InvalidTokenException) to org.cyclos.model.FrameworkException.
Documentation changed from old to new.
Assigns a pending token to a user, leaving it in pending status The token status must be TokenStatus.UNASSIGNED.
<any> search(TokenQuery) Documentation changed from old to new.
Searches for tokens.