Package org.cyclos.impl.messaging
Class InviteServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.messaging.InviteServiceImpl
-
- All Implemented Interfaces:
InviteServiceLocal,InviteService,Service
@Service public class InviteServiceImpl extends BaseServiceImpl implements InviteServiceLocal
Implementation forInviteService
-
-
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 InviteServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanSend()Returns whether the logged user is allowed to send invitation messagesSendInviteMessageDatagetSendData()Returns data for sending an invite messageInviteTokeninviteToken(String token)Returns the invitation token for the given string, or null if the given token is null or invalidprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidsend(SendInviteMessageDTO params)Sends an invitation message to the destination addresses-
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
-
canSend
public boolean canSend()
Description copied from interface:InviteServiceLocalReturns whether the logged user is allowed to send invitation messages- Specified by:
canSendin interfaceInviteServiceLocal
-
getSendData
public SendInviteMessageData getSendData()
Description copied from interface:InviteServiceReturns data for sending an invite message- Specified by:
getSendDatain interfaceInviteService
-
inviteToken
public InviteToken inviteToken(String token)
Description copied from interface:InviteServiceLocalReturns the invitation token for the given string, or null if the given token is null or invalid- Specified by:
inviteTokenin interfaceInviteServiceLocal
-
send
public void send(SendInviteMessageDTO params)
Description copied from interface:InviteServiceSends an invitation message to the destination addresses- Specified by:
sendin interfaceInviteService
-
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
-
-