fineract-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100126 <...@git.apache.org>
Subject [GitHub] fineract pull request #283: Notification Module
Date Mon, 31 Jul 2017 09:07:24 GMT
Github user nazeer1100126 commented on a diff in the pull request:

    https://github.com/apache/fineract/pull/283#discussion_r130302234
  
    --- Diff: fineract-provider/src/main/java/org/apache/fineract/notification/service/NotificationReadPlatformServiceImpl.java
---
    @@ -0,0 +1,204 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements. See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership. The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License. You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied. See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.fineract.notification.service;
    +
    +import org.apache.fineract.infrastructure.core.service.Page;
    +import org.apache.fineract.infrastructure.core.service.PaginationHelper;
    +import org.apache.fineract.infrastructure.core.service.RoutingDataSource;
    +import org.apache.fineract.infrastructure.core.service.SearchParameters;
    +import org.apache.fineract.infrastructure.security.service.PlatformSecurityContext;
    +import org.apache.fineract.notification.cache.CacheNotificationResponseHeader;
    +import org.apache.fineract.notification.data.NotificationData;
    +import org.apache.fineract.notification.data.NotificationMapperData;
    +import org.springframework.beans.factory.annotation.Autowired;
    +import org.springframework.jdbc.core.JdbcTemplate;
    +import org.springframework.jdbc.core.RowMapper;
    +import org.springframework.stereotype.Service;
    +
    +import java.sql.ResultSet;
    +import java.sql.SQLException;
    +import java.util.HashMap;
    +import java.util.List;
    +
    +@Service
    +public class NotificationReadPlatformServiceImpl implements NotificationReadPlatformService
{
    +
    +    private final JdbcTemplate jdbcTemplate;
    +    private final PlatformSecurityContext context;
    +    private final PaginationHelper<NotificationData> paginationHelper = new PaginationHelper<>();
    +    private final NotificationDataRow notificationDataRow = new NotificationDataRow();
    +    private final NotificationMapperRow notificationMapperRow = new NotificationMapperRow();
    +    private HashMap<Long, CacheNotificationResponseHeader> notificationResponseHeaderCache
= new HashMap<>();
    --- End diff --
    
    Does this cache works in multi tenancy environment? What happens if two tenants have same
user i?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message