Class TokenServiceImpl

java.lang.Object
org.exoplatform.chat.services.TokenServiceImpl
All Implemented Interfaces:
org.exoplatform.chat.services.TokenService

@Named("tokenService") @ApplicationScoped @Singleton public class TokenServiceImpl extends Object implements org.exoplatform.chat.services.TokenService
  • Constructor Details

    • TokenServiceImpl

      public TokenServiceImpl()
  • Method Details

    • getToken

      public String getToken(String user)
      Specified by:
      getToken in interface org.exoplatform.chat.services.TokenService
    • hasUserWithToken

      public boolean hasUserWithToken(String user, String token)
      Specified by:
      hasUserWithToken in interface org.exoplatform.chat.services.TokenService
    • addUser

      public void addUser(String user, String token)
      Specified by:
      addUser in interface org.exoplatform.chat.services.TokenService
    • removeUserToken

      public void removeUserToken(String user, String token)
      Specified by:
      removeUserToken in interface org.exoplatform.chat.services.TokenService
    • getActiveUsersFilterBy

      public Map<String,org.exoplatform.chat.model.UserBean> getActiveUsersFilterBy(String user, List<String> limitUsers, boolean withUsers, boolean withPublic, boolean isAdmin, int limit)
      Specified by:
      getActiveUsersFilterBy in interface org.exoplatform.chat.services.TokenService
    • isDemoUser

      public boolean isDemoUser(String user)
      Specified by:
      isDemoUser in interface org.exoplatform.chat.services.TokenService