com.stratelia.silverpeas.pdc.control
Interface PdcClassifyBm

All Known Implementing Classes:
PdcClassifyBmImpl

public interface PdcClassifyBm


Method Summary
 int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId)
          Add new position for an object
 void createValuesAndReplace(Connection con, String axisId, List<String> oldPath, List<String> newPath)
           
 void deletePosition(int positionId, String sComponentId)
          Delete the position of an object
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId)
           
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate)
          Find all the SilverContentId with the given position
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate, boolean recursiveSearch, boolean visibilitySensitive)
           
 List<Integer> getObjectsByInstance(String instanceId)
          Returns a list of object for one instance
 List<ObjectValuePair> getObjectValuePairs(SearchContext searchContext, int axisId, JoinStatement joinStatementAllPositions)
           
 List<PertinentAxis> getPertinentAxis(SearchContext searchContext, List<Integer> axisIds)
           
 List<PertinentAxis> getPertinentAxis(SearchContext searchContext, List<Integer> axisIds, JoinStatement joinStatementAllPositions)
           
 PertinentAxis getPertinentAxis(SearchContext searchContext, String axisId, String sRootValue, JoinStatement joinStatementAllPositions)
           
 List<PertinentValue> getPertinentValues(SearchContext searchContext, int axisId)
           
 List<PertinentValue> getPertinentValues(SearchContext searchContext, int axisId, JoinStatement joinStatementAllPositions)
           
 List<Position> getPositions(int silverObjectId, String sComponentId)
          Returns all positions of an object
 JoinStatement getPositionsJoinStatement(List<String> alComponentId)
           
 JoinStatement getPositionsJoinStatement(String sComponentId)
           
 boolean hasAlreadyPositions(List<Integer> objectIdList, UsedAxis usedAxis)
           
 int isPositionAlreadyExists(int silverObjectId, ClassifyPosition position)
          Check if the object is already classified on the position
 void registerAxis(Connection con, int axisId)
           
 List<Integer> removePosition(Connection connection, int nSilverContentId)
          Remove all the positions of the given content
 void unregisterAxis(Connection con, int axisId)
           
 int updatePosition(ClassifyPosition position)
          Update the position of an object
 int updatePositions(List<Value> classifyValues, int silverObjectId)
           
 

Method Detail

isPositionAlreadyExists

int isPositionAlreadyExists(int silverObjectId,
                            ClassifyPosition position)
                            throws PdcException
Check if the object is already classified on the position

Parameters:
silverObjectId -
position -
Returns:
the positionId if the object is already classified, -1 otherwise.
Throws:
PdcException

addPosition

int addPosition(int silverObjectId,
                ClassifyPosition position,
                String sComponentId)
                throws PdcException
Add new position for an object

Parameters:
silverObjectId - - id of the object to classify
position - - the position of the object
Returns:
0 position is OK, insertion have been done. 1 if variant constraint not respected
Throws:
PdcException

updatePosition

int updatePosition(ClassifyPosition position)
                   throws PdcException
Update the position of an object

Parameters:
silverObjectId - - id of the object
position - - the position of the object
Returns:
0 position is OK, insertion have been done. 1 if variant constraint not respected
Throws:
PdcException

updatePositions

int updatePositions(List<Value> classifyValues,
                    int silverObjectId)
                    throws PdcException
Throws:
PdcException

deletePosition

void deletePosition(int positionId,
                    String sComponentId)
                    throws PdcException
Delete the position of an object

Parameters:
silverObjectId - - id of the object
position - - the id of the position
Throws:
PdcException

getPositions

List<Position> getPositions(int silverObjectId,
                            String sComponentId)
                            throws PdcException
Returns all positions of an object

Parameters:
silverObjectId - - id of the object
Returns:
a Position List
Throws:
PdcException

getPositionsJoinStatement

JoinStatement getPositionsJoinStatement(String sComponentId)
                                        throws PdcException
Throws:
PdcException

getPositionsJoinStatement

JoinStatement getPositionsJoinStatement(List<String> alComponentId)
                                        throws PdcException
Throws:
PdcException

registerAxis

void registerAxis(Connection con,
                  int axisId)
                  throws PdcException
Throws:
PdcException

unregisterAxis

void unregisterAxis(Connection con,
                    int axisId)
                    throws PdcException
Throws:
PdcException

createValuesAndReplace

void createValuesAndReplace(Connection con,
                            String axisId,
                            List<String> oldPath,
                            List<String> newPath)
                            throws PdcException
Throws:
PdcException

removePosition

List<Integer> removePosition(Connection connection,
                             int nSilverContentId)
                             throws PdcException
Remove all the positions of the given content

Throws:
PdcException

findSilverContentIdByPosition

List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                            List<String> alComponentId,
                                            String authorId,
                                            String afterDate,
                                            String beforeDate)
                                            throws PdcException
Find all the SilverContentId with the given position

Throws:
PdcException

findSilverContentIdByPosition

List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                            List<String> alComponentId,
                                            String authorId,
                                            String afterDate,
                                            String beforeDate,
                                            boolean recursiveSearch,
                                            boolean visibilitySensitive)
                                            throws PdcException
Throws:
PdcException

findSilverContentIdByPosition

List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                            List<String> alComponentId)
                                            throws PdcException
Throws:
PdcException

hasAlreadyPositions

boolean hasAlreadyPositions(List<Integer> objectIdList,
                            UsedAxis usedAxis)
                            throws PdcException
Throws:
PdcException

getObjectsByInstance

List<Integer> getObjectsByInstance(String instanceId)
                                   throws PdcException
Returns a list of object for one instance

Throws:
PdcException

getPertinentAxis

List<PertinentAxis> getPertinentAxis(SearchContext searchContext,
                                     List<Integer> axisIds)
                                     throws PdcException
Throws:
PdcException

getPertinentValues

List<PertinentValue> getPertinentValues(SearchContext searchContext,
                                        int axisId)
                                        throws PdcException
Throws:
PdcException

getPertinentAxis

List<PertinentAxis> getPertinentAxis(SearchContext searchContext,
                                     List<Integer> axisIds,
                                     JoinStatement joinStatementAllPositions)
                                     throws PdcException
Throws:
PdcException

getPertinentAxis

PertinentAxis getPertinentAxis(SearchContext searchContext,
                               String axisId,
                               String sRootValue,
                               JoinStatement joinStatementAllPositions)
                               throws PdcException
Throws:
PdcException

getPertinentValues

List<PertinentValue> getPertinentValues(SearchContext searchContext,
                                        int axisId,
                                        JoinStatement joinStatementAllPositions)
                                        throws PdcException
Throws:
PdcException

getObjectValuePairs

List<ObjectValuePair> getObjectValuePairs(SearchContext searchContext,
                                          int axisId,
                                          JoinStatement joinStatementAllPositions)
                                          throws PdcException
Throws:
PdcException


Copyright © 2016 Silverpeas. All Rights Reserved.