com.silverpeas.admin.components
Class Instanciateur
java.lang.Object
com.silverpeas.admin.components.Instanciateur
public class Instanciateur
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Instanciateur
public Instanciateur()
- Creates new instantiator
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.