com.stratelia.webactiv.beans.admin
Class ComponentInstManager

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.ComponentInstManager

public class ComponentInstManager
extends Object


Constructor Summary
ComponentInstManager()
           
 
Method Summary
 ComponentInst copy(ComponentInst componentInstToCopy)
          Return a copy of the given componentInst
 String createComponentInst(ComponentInst componentInst, DomainDriverManager ddManager, String sFatherId)
          Creates a component instance in database
 void deleteComponentInst(ComponentInst componentInst, DomainDriverManager ddManager)
          Deletes component instance from Silverpeas
 String[] getAllCompoIdsByComponentName(DomainDriverManager ddManager, String sComponentName)
          Get the component ids with the given component name
 List<String> getAllowedComponentIds(int userId, List<String> groupIds)
           
 List<String> getAllowedComponentIds(int userId, List<String> groupIds, String spaceId)
           
 List<String> getAllowedComponentIds(int userId, List<String> groupIds, String spaceId, String componentName)
           
 String[] getComponentIdsInSpace(int spaceId)
           
 ComponentInst getComponentInst(DomainDriverManager ddManager, String sComponentId, String spaceId)
          Get component instance with the given id
 ComponentInstLight getComponentInstLight(DomainDriverManager ddManager, String sComponentId)
          Get component instance light with the given id
 List<ComponentInstLight> getComponentsInSpace(int spaceId)
           
 List<Parameter> getParameters(DomainDriverManager ddManager, String componentId)
           
 List<ComponentInstLight> getRemovedComponents(DomainDriverManager ddManager)
          Return the all the root spaces ids available in Silverpeas
 void moveComponentInst(DomainDriverManager ddManager, String spaceId, String componentId)
           
 void restoreComponentFromBasket(DomainDriverManager ddManager, String componentId)
           
 void sendComponentToBasket(DomainDriverManager ddManager, ComponentInst componentInst, String userId)
           
 void setComponentInst(ComponentInst componentInst, DomainDriverManager ddManager, String sComponentId, String sFatherId)
           
 void updateComponentInheritance(DomainDriverManager ddManager, String sComponentId, boolean inheritanceBlocked)
           
 String updateComponentInst(DomainDriverManager ddManager, ComponentInst compoInstNew)
           
 void updateComponentOrder(DomainDriverManager ddManager, String sComponentId, int orderNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentInstManager

public ComponentInstManager()
Method Detail

copy

public ComponentInst copy(ComponentInst componentInstToCopy)
Return a copy of the given componentInst

Parameters:
componentInstToCopy -
Returns:

createComponentInst

public String createComponentInst(ComponentInst componentInst,
                                  DomainDriverManager ddManager,
                                  String sFatherId)
                           throws AdminException
Creates a component instance in database

Parameters:
componentInst -
ddManager -
sFatherId -
Returns:
Throws:
AdminException

sendComponentToBasket

public void sendComponentToBasket(DomainDriverManager ddManager,
                                  ComponentInst componentInst,
                                  String userId)
                           throws AdminException
Throws:
AdminException

restoreComponentFromBasket

public void restoreComponentFromBasket(DomainDriverManager ddManager,
                                       String componentId)
                                throws AdminException
Throws:
AdminException

getComponentInst

public ComponentInst getComponentInst(DomainDriverManager ddManager,
                                      String sComponentId,
                                      String spaceId)
                               throws AdminException
Get component instance with the given id

Parameters:
ddManager -
sComponentId -
spaceId -
Returns:
Throws:
AdminException

getRemovedComponents

public List<ComponentInstLight> getRemovedComponents(DomainDriverManager ddManager)
                                              throws AdminException
Return the all the root spaces ids available in Silverpeas

Parameters:
ddManager -
Returns:
Throws:
AdminException

getComponentInstLight

public ComponentInstLight getComponentInstLight(DomainDriverManager ddManager,
                                                String sComponentId)
                                         throws AdminException
Get component instance light with the given id

Parameters:
ddManager -
sComponentId -
Returns:
Throws:
AdminException

setComponentInst

public void setComponentInst(ComponentInst componentInst,
                             DomainDriverManager ddManager,
                             String sComponentId,
                             String sFatherId)
                      throws AdminException
Throws:
AdminException

deleteComponentInst

public void deleteComponentInst(ComponentInst componentInst,
                                DomainDriverManager ddManager)
                         throws AdminException
Deletes component instance from Silverpeas

Parameters:
componentInst -
ddManager -
Throws:
AdminException

updateComponentOrder

public void updateComponentOrder(DomainDriverManager ddManager,
                                 String sComponentId,
                                 int orderNum)
                          throws AdminException
Throws:
AdminException

updateComponentInheritance

public void updateComponentInheritance(DomainDriverManager ddManager,
                                       String sComponentId,
                                       boolean inheritanceBlocked)
                                throws AdminException
Throws:
AdminException

updateComponentInst

public String updateComponentInst(DomainDriverManager ddManager,
                                  ComponentInst compoInstNew)
                           throws AdminException
Throws:
AdminException

moveComponentInst

public void moveComponentInst(DomainDriverManager ddManager,
                              String spaceId,
                              String componentId)
                       throws AdminException
Throws:
AdminException

getAllCompoIdsByComponentName

public String[] getAllCompoIdsByComponentName(DomainDriverManager ddManager,
                                              String sComponentName)
                                       throws AdminException
Get the component ids with the given component name

Parameters:
ddManager -
sComponentName -
Returns:
Throws:
AdminException

getComponentIdsInSpace

public String[] getComponentIdsInSpace(int spaceId)
                                throws AdminException
Throws:
AdminException

getComponentsInSpace

public List<ComponentInstLight> getComponentsInSpace(int spaceId)
                                              throws AdminException
Throws:
AdminException

getAllowedComponentIds

public List<String> getAllowedComponentIds(int userId,
                                           List<String> groupIds)
                                    throws AdminException
Throws:
AdminException

getAllowedComponentIds

public List<String> getAllowedComponentIds(int userId,
                                           List<String> groupIds,
                                           String spaceId)
                                    throws AdminException
Throws:
AdminException

getAllowedComponentIds

public List<String> getAllowedComponentIds(int userId,
                                           List<String> groupIds,
                                           String spaceId,
                                           String componentName)
                                    throws AdminException
Throws:
AdminException

getParameters

public List<Parameter> getParameters(DomainDriverManager ddManager,
                                     String componentId)
                              throws AdminException
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.