com.silverpeas.admin.components
Class Instanciateur

java.lang.Object
  extended by com.silverpeas.admin.components.Instanciateur

public class Instanciateur
extends Object


Constructor Summary
Instanciateur()
          Creates new instantiator
 
Method Summary
static Map<String,String> getAllComponentsNames()
           
 String getComponentId()
           
 Connection getConnection()
           
 String getSpaceId()
           
 String getUserId()
           
static List<WAComponent> getVisibleComponentsForPersonalSpace()
           
static WAComponent getWAComponent(String componentName)
           
static Map<String,WAComponent> getWAComponents()
           
static String getXMLPackage()
          Get the directory where the component descriptors are stored
 void instantiateComponent(WAComponent wac)
           
 void instantiateComponentName(String componentName)
           
static boolean isWorkflow(String componentName)
           
static void rebuildWAComponentCache()
          Method reads the WAComponent descriptor files again and rebuild the component descriptor cache
static void removeWorkflow(String fileName)
           
static void saveComponent(WAComponent waComponent, String fileName)
           
static void saveComponent(WAComponent waComponent, String fileName, boolean workflow)
           
 void setComponentId(String sComponentId)
           
 void setConnection(Connection connection)
           
 void setSpaceId(String sSpaceId)
           
 void setUserId(String sUserId)
           
 void unInstantiateComponent(WAComponent wac)
           
 void unInstantiateComponentName(String componentName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instanciateur

public Instanciateur()
Creates new instantiator

Method Detail

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection connection)

getSpaceId

public String getSpaceId()

setSpaceId

public void setSpaceId(String sSpaceId)

getComponentId

public String getComponentId()

setComponentId

public void setComponentId(String sComponentId)

getUserId

public String getUserId()

setUserId

public void setUserId(String sUserId)

instantiateComponentName

public void instantiateComponentName(String componentName)
                              throws InstanciationException
Throws:
InstanciationException

instantiateComponent

public void instantiateComponent(WAComponent wac)
                          throws InstanciationException
Throws:
InstanciationException

unInstantiateComponentName

public void unInstantiateComponentName(String componentName)
                                throws InstanciationException
Throws:
InstanciationException

unInstantiateComponent

public void unInstantiateComponent(WAComponent wac)
                            throws InstanciationException
Throws:
InstanciationException

getWAComponent

public static WAComponent getWAComponent(String componentName)

isWorkflow

public static boolean isWorkflow(String componentName)

getWAComponents

public static Map<String,WAComponent> getWAComponents()

getAllComponentsNames

public static Map<String,String> getAllComponentsNames()

getVisibleComponentsForPersonalSpace

public static List<WAComponent> getVisibleComponentsForPersonalSpace()

rebuildWAComponentCache

public static void rebuildWAComponentCache()
                                    throws InstanciationException
Method reads the WAComponent descriptor files again and rebuild the component descriptor cache

Throws:
InstanciationException - when something goes wrong

saveComponent

public static void saveComponent(WAComponent waComponent,
                                 String fileName)
                          throws JAXBException,
                                 InstanciationException
Throws:
JAXBException
InstanciationException

saveComponent

public static void saveComponent(WAComponent waComponent,
                                 String fileName,
                                 boolean workflow)
                          throws JAXBException,
                                 InstanciationException
Throws:
JAXBException
InstanciationException

removeWorkflow

public static void removeWorkflow(String fileName)
                           throws IOException,
                                  InstanciationException
Throws:
IOException
InstanciationException

getXMLPackage

public static String getXMLPackage()
Get the directory where the component descriptors are stored

Returns:
the path to the directory


Copyright © 2016 Silverpeas. All Rights Reserved.