Package org.cyclos.impl.users
Class FcmTokenServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.FcmTokenServiceImpl
-
- All Implemented Interfaces:
FcmTokenServiceLocal,Service,FcmTokenService
@Service public class FcmTokenServiceImpl extends BaseServiceImpl implements FcmTokenServiceLocal
Implementation forFcmTokenService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description FcmTokenServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassign(String token)Assigns the given registration token to the logged user.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidremove(String token, Set<Long> users)Removed a token from the given users.voidreplace(String oldToken, String newToken)Replace a token with it's new value.-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
assign
public void assign(String token) throws FrameworkException
Description copied from interface:FcmTokenServiceAssigns the given registration token to the logged user. If the token was already assigned then the used date is updated- Specified by:
assignin interfaceFcmTokenService- Parameters:
token- the FCM registration token- Throws:
FrameworkException
-
remove
public void remove(String token, Set<Long> users) throws FrameworkException
Description copied from interface:FcmTokenServiceRemoved a token from the given users. Can be invoked as guest.- Specified by:
removein interfaceFcmTokenService- Parameters:
token- the FCM registration token to be removedusers- the set of users from whom the token will be removed- Throws:
FrameworkException
-
replace
public void replace(String oldToken, String newToken) throws FrameworkException
Description copied from interface:FcmTokenServiceReplace a token with it's new value. Can be invoked as guest.- Specified by:
replacein interfaceFcmTokenService- Parameters:
oldToken- the existing tokennewToken- the new token value- Throws:
FrameworkException
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-