org.exoplatform.services.wcm.category
Class CreateTaxonomyPlugin

java.lang.Object
  extended by org.exoplatform.services.deployment.DeploymentPlugin
      extended by org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin
          extended by org.exoplatform.services.wcm.portal.artifacts.CreatePortalPlugin
              extended by org.exoplatform.services.wcm.category.CreateTaxonomyPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class CreateTaxonomyPlugin
extends CreatePortalPlugin

Created by The eXo Platform SAS Author : eXoPlatform chuong_phan@exoplatform.com, phan.le.thanh.chuong@gmail.com Aug 11, 2009


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
CreateTaxonomyPlugin(org.exoplatform.container.xml.InitParams params, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.cms.taxonomy.TaxonomyService taxonomyService, org.exoplatform.services.cms.actions.ActionServiceContainer actionServiceContainer, org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration, org.exoplatform.services.cms.link.LinkManager linkManager)
          Instantiates a new initial taxonomy plugin.
 
Method Summary
 void deployToPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName)
          Deploy to portal.
 java.lang.String getName()
           
 java.lang.String getPath()
          Gets the path.
 java.util.List<org.exoplatform.services.cms.taxonomy.impl.TaxonomyConfig.Permission> getPermissions()
          Gets the permissions.
 java.lang.String getWorkspace()
          Gets the workspace.
 void init()
          Inits the.
 void init(java.lang.String repository)
          Inits the.
 void setName(java.lang.String name)
           
 void setPath(java.lang.String path)
          Sets the path.
 void setPermissions(java.util.List<org.exoplatform.services.cms.taxonomy.impl.TaxonomyConfig.Permission> permissions)
          Sets the permissions.
 void setWorkspace(java.lang.String workspace)
          Sets the workspace.
 
Methods inherited from class org.exoplatform.services.wcm.portal.artifacts.CreatePortalPlugin
getPriority
 
Methods inherited from class org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin
deploy
 
Methods inherited from class org.exoplatform.services.deployment.DeploymentPlugin
getDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

CreateTaxonomyPlugin

public CreateTaxonomyPlugin(org.exoplatform.container.xml.InitParams params,
                            org.exoplatform.container.configuration.ConfigurationManager configurationManager,
                            org.exoplatform.services.jcr.RepositoryService repositoryService,
                            org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                            org.exoplatform.services.cms.taxonomy.TaxonomyService taxonomyService,
                            org.exoplatform.services.cms.actions.ActionServiceContainer actionServiceContainer,
                            org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration,
                            org.exoplatform.services.cms.link.LinkManager linkManager)
                     throws java.lang.Exception
Instantiates a new initial taxonomy plugin.

Parameters:
params - the params
configurationManager - the configuration manager
repositoryService - the repository service
nodeHierarchyCreator - the node hierarchy creator
taxonomyService - the taxonomy service
actionServiceContainer - the action service container
dmsConfiguration - the dms configuration
Throws:
java.lang.Exception - the exception
Method Detail

deployToPortal

public void deployToPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                           java.lang.String portalName)
                    throws java.lang.Exception
Description copied from class: CreatePortalPlugin
Deploy to portal.

Specified by:
deployToPortal in class CreatePortalPlugin
Parameters:
sessionProvider - the session provider
portalName - the portal name
Throws:
java.lang.Exception - the exception

init

public void init()
          throws java.lang.Exception
Inits the.

Throws:
java.lang.Exception - the exception

init

public void init(java.lang.String repository)
          throws java.lang.Exception
Inits the.

Parameters:
repository - the repository
Throws:
java.lang.Exception - the exception

getName

public java.lang.String getName()
Specified by:
getName in interface org.exoplatform.container.component.ComponentPlugin
Overrides:
getName in class org.exoplatform.services.deployment.DeploymentPlugin

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.exoplatform.container.component.ComponentPlugin
Overrides:
setName in class org.exoplatform.services.deployment.DeploymentPlugin

getPath

public java.lang.String getPath()
Gets the path.

Returns:
the path

setPath

public void setPath(java.lang.String path)
Sets the path.

Parameters:
path - the new path

getPermissions

public java.util.List<org.exoplatform.services.cms.taxonomy.impl.TaxonomyConfig.Permission> getPermissions()
Gets the permissions.

Returns:
the permissions

setPermissions

public void setPermissions(java.util.List<org.exoplatform.services.cms.taxonomy.impl.TaxonomyConfig.Permission> permissions)
Sets the permissions.

Parameters:
permissions - the new permissions

getWorkspace

public java.lang.String getWorkspace()
Gets the workspace.

Returns:
the workspace

setWorkspace

public void setWorkspace(java.lang.String workspace)
Sets the workspace.

Parameters:
workspace - the new workspace


Copyright © 2011 eXo Platform SAS. All Rights Reserved.