Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdateCachedBannerMapperRequest


        {
            SaveImageRequest currentRequest = (SaveImageRequest) inActionContext.getParams();
            imageWriter.write(currentRequest.getFileItem(), "n" + currentRequest.getImageId());
            mapper.updateBannerId(currentRequest.getEntityId(), currentRequest.getImageId());
            mapper.flush();
            cacheMapper.execute(new UpdateCachedBannerMapperRequest(currentRequest.getImageId(), currentRequest
                    .getEntityId()));
        }
        catch (Exception ex)
        {
            log.error("Error running SaveBannerAction", ex);
View Full Code Here


                imageWriter.delete("n" + bannerObject.getBannerId());
            }
            // Update the db.
            boolean result = mapper.updateBannerId(entityId, null);
            // Update the cache.
            updateCachedBannerMapper.execute(new UpdateCachedBannerMapperRequest(null, entityId));

            return bannerObject;
        }
        catch (Exception ex)
        {
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.UpdateCachedBannerMapperRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.