|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.containerManager.ContainerManager
public class ContainerManager
This class represents the ContainerManager API It is the gateway to all the silverpeas containers (PDC, ....)
Constructor Summary | |
---|---|
ContainerManager()
Constructor declaration |
Method Summary | |
---|---|
void |
addContainerContentInstanceLink(Connection connection,
int nPositionId,
String sComponentId)
Add a link between a position (in the classify engine) and a container intance Called when a content is referenced in a container |
List<Integer> |
filterPositionsByComponentId(List<Integer> alPositions,
String sComponentId)
Return only the positions that belongs to the given componentId ATTENTION: this function is slow, use it only for a few positions (for one SilverContentId) |
int |
getContainerInstanceId(String sComponentId)
Return the container instance Id corresponding to the componentId |
ContainerPeas |
getContainerPeas(String componentId)
Return the containerPeas corresponding to the given componentId |
ContainerPeas |
getContainerPeasByType(String sContainerType)
Method declaration |
JoinStatement |
getFilterPositionsByComponentIdStatement(List<Integer> alPositions,
List<String> alComponentId)
Return the statement to get only the positions that belongs to the given componentId |
int |
registerNewContainerInstance(Connection connection,
String sComponentId,
String sContainerType,
String sContentType)
When a generic component is instanciate, this function is called to register the association between container and content |
void |
removeAllPositionIdsLink(Connection connection,
List<Integer> alPositionIds)
Remove all the links for the given positionIds Ex: Called when empty positions are removed from the ClassifyEngine |
void |
removeContainerContentInstanceLink(Connection connection,
int nPositionId,
String sComponentId)
Remove a link between a position (in the classify engine) and a container intance Called when a content is unreferenced in a container |
void |
silverContentIsRemoved(Connection connection,
int nSilverContentId,
int nContainerInstanceId)
A SilverContent is removed, the containerManager is called to do all the necessary actions Assumption : the nSilverContentId is unique among all the SilverContent |
void |
unregisterNewContainerInstance(Connection connection,
String sComponentId,
String sContainerType,
String sContentType)
When a generic component is uninstanciate, this function is called to unregister the association between container and content |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContainerManager()
Method Detail |
---|
public int registerNewContainerInstance(Connection connection, String sComponentId, String sContainerType, String sContentType) throws ContainerManagerException
ContainerManagerException
public void unregisterNewContainerInstance(Connection connection, String sComponentId, String sContainerType, String sContentType) throws ContainerManagerException
ContainerManagerException
public ContainerPeas getContainerPeas(String componentId) throws ContainerManagerException
ContainerManagerException
public ContainerPeas getContainerPeasByType(String sContainerType) throws ContainerManagerException
sContainerType
-
ContainerManagerException
public int getContainerInstanceId(String sComponentId) throws ContainerManagerException
ContainerManagerException
public void silverContentIsRemoved(Connection connection, int nSilverContentId, int nContainerInstanceId) throws ContainerManagerException
ContainerManagerException
public void addContainerContentInstanceLink(Connection connection, int nPositionId, String sComponentId) throws ContainerManagerException
ContainerManagerException
public void removeContainerContentInstanceLink(Connection connection, int nPositionId, String sComponentId) throws ContainerManagerException
ContainerManagerException
public void removeAllPositionIdsLink(Connection connection, List<Integer> alPositionIds) throws ContainerManagerException
ContainerManagerException
public JoinStatement getFilterPositionsByComponentIdStatement(List<Integer> alPositions, List<String> alComponentId) throws ContainerManagerException
ContainerManagerException
public List<Integer> filterPositionsByComponentId(List<Integer> alPositions, String sComponentId) throws ContainerManagerException
ContainerManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |