1 /* ===============================================================================2 *3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)4 *5 * ===============================================================================6 *7 * Copyright (C)8 * 9 * This program is free software; you can redistribute it and/or modify it under10 * the terms of the GNU General Public License version 2, as published by the11 * Free Software Foundation. See the file LICENSE.html for more information.12 * 13 * This program is distributed in the hope that it will be useful, but WITHOUT14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.16 * 17 * You should have received a copy of the GNU General Public License along with18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.20 *21 * ===============================================================================22 */23 24 package org.infoglue.cms.webservices;25 26 import java.io.ByteArrayInputStream ;27 import java.io.InputStream ;28 import java.util.ArrayList ;29 import java.util.Date ;30 import java.util.Iterator ;31 import java.util.List ;32 import java.util.Map ;33 34 import org.apache.log4j.Logger;35 import org.dom4j.Document;36 import org.dom4j.Element;37 import org.infoglue.cms.controllers.kernel.impl.simple.ContentController;38 import org.infoglue.cms.controllers.kernel.impl.simple.ContentControllerProxy;39 import org.infoglue.cms.controllers.kernel.impl.simple.ContentStateController;40 import org.infoglue.cms.controllers.kernel.impl.simple.ContentVersionController;41 import org.infoglue.cms.controllers.kernel.impl.simple.ContentVersionControllerProxy;42 import org.infoglue.cms.controllers.kernel.impl.simple.DigitalAssetController;43 import org.infoglue.cms.controllers.kernel.impl.simple.PublicationController;44 import org.infoglue.cms.controllers.kernel.impl.simple.UserControllerProxy;45 import org.infoglue.cms.entities.content.ContentVO;46 import org.infoglue.cms.entities.content.ContentVersionVO;47 import org.infoglue.cms.entities.content.DigitalAssetVO;48 import org.infoglue.cms.entities.publishing.PublicationVO;49 import org.infoglue.cms.exception.SystemException;50 import org.infoglue.cms.security.InfoGluePrincipal;51 import org.infoglue.cms.util.ChangeNotificationController;52 import org.infoglue.cms.util.dom.DOMBuilder;53 import org.infoglue.cms.webservices.elements.RemoteAttachment;54 import org.infoglue.deliver.util.webservices.DynamicWebserviceSerializer;55 56 57 /**58 * This class is responsible for letting an external application call InfoGlue59 * API:s remotely. It handles api:s to manage contents and associated entities.60 * 61 * @author Mattias Bogeblad62 */63 64 public class RemoteInfoGlueService 65 {66 private final static Logger logger = Logger.getLogger(RemoteInfoGlueService.class.getName());67 68 public void updateCaches()69 {70 try71 {72 ChangeNotificationController.notifyListeners();73 }74 catch(Exception e)75 {76 e.printStackTrace();77 }78 }79 80 }81