View Javadoc
1   /*
2    * Copyright (C) 2003-2008 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.services.wcm.portal.artifacts;
18  
19  import org.exoplatform.container.configuration.ConfigurationManager;
20  import org.exoplatform.container.xml.InitParams;
21  import org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin;
22  import org.exoplatform.services.jcr.RepositoryService;
23  import org.exoplatform.services.jcr.ext.common.SessionProvider;
24  
25  /**
26   * Created by The eXo Platform SAS
27   * Author : Hoa Pham
28   * hoa.phamvu@exoplatform.com
29   * Oct 22, 2008
30   */
31  public abstract class RemovePortalPlugin extends XMLDeploymentPlugin {
32  
33    /**
34     * Instantiates a new base portal artifacts plugin.
35     *
36     * @param initParams the init params
37     * @param configurationManager the configuration manager
38     * @param repositoryService the repository service
39     */
40    public RemovePortalPlugin(InitParams initParams,
41                              ConfigurationManager configurationManager,
42                              RepositoryService repositoryService) {
43      super(initParams, configurationManager, repositoryService);
44    }
45  
46    /**
47     * Deploy to portal.
48     *
49     * @param portalName the portal name
50     * @param sessionProvider the session provider
51     *
52     * @throws Exception the exception
53     */
54    public abstract void invalidateFromPortal(SessionProvider sessionProvider, String portalName) throws Exception;
55  }