com.stratelia.silverpeas.pdc.control
Class PdcBmImpl

java.lang.Object
  extended by com.stratelia.silverpeas.pdc.control.PdcBmImpl
All Implemented Interfaces:
ContainerInterface, PdcBm

@Named(value="pdcBm")
public class PdcBmImpl
extends Object
implements PdcBm, ContainerInterface


Field Summary
 
Fields inherited from interface com.stratelia.silverpeas.pdc.control.PdcBm
PRIMARY_AXIS, SECONDARY_AXIS
 
Constructor Summary
PdcBmImpl()
          Constructor declaration
 
Method Summary
 int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId)
           
 int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId, boolean alertSubscribers)
           
 void addPositions(List<ClassifyPosition> positions, int objectId, String instanceId)
           
 int addUsedAxis(UsedAxis usedAxis)
          Method declaration
 void copyPositions(int fromObjectId, String fromInstanceId, int toObjectId, String toInstanceId)
           
 int createAxis(AxisHeader axisHeader)
          Create an axe into the data base.
 int createDaughterValue(Value valueToInsert, String refValue, String treeId)
          insert a value which is defined like a daughter value
 String createDaughterValueWithId(Value valueToInsert, String refValue, String treeId)
          insert a value which is defined like a daughter value
 void deleteAxis(Connection con, String axisId)
          delete the axe from the data base and all its subtrees.
 void deleteGroupManager(String groupId)
          Supprime les droits associés au groupid
 void deleteManager(String userId)
          Supprime les droits associés au userid
 void deletePosition(int positionId, String sComponentId)
           
 void deleteUsedAxis(Collection<String> usedAxisIds)
          Method declaration
 void deleteUsedAxis(String usedAxisId)
          Method declaration
 String deleteValue(Connection con, String valueId, String axisId, String treeId)
          Delete the selected value.
 void deleteValueAndSubtree(Connection con, String valueId, String axisId, String treeId)
          Delete a value and it's sub tree
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId)
          Find all the SilverContentId with the given position
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, boolean recursiveSearch, boolean visibilitySensitive)
           
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate)
           
 List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate, boolean recursiveSearch, boolean visibilitySensitive)
          Find all the SilverContentId with the given position
 List<AxisHeader> getAxis()
          Returns a list of axes sorted.
 List<AxisHeader> getAxisByType(String type)
          Returns a list of axes sorted in according to the axe type.
 Axis getAxisDetail(String axisId)
          Returns a detail axe (header,values).
 Axis getAxisDetail(String axisId, AxisFilter filter)
           
 AxisHeader getAxisHeader(String axisId)
          Method declaration
 AxisHeader getAxisHeader(String axisId, boolean setTranslations)
           
 Value getAxisValue(String valueId, String treeId)
          Returns a value from an axe.
 List<Value> getAxisValues(int treeId)
           
 List<Value> getAxisValuesByName(String valueName)
          Return a list of axis values having the value name in parameter
 String getCallParameters(String sComponentId, String sSilverContentId)
          Return the parameters for the HTTP call on the classify
 List<Value> getDaughters(String axisId, String valueId)
           
 List<String> getDaughterValues(String axisId, String valueId)
          Return a list of String corresponding to the valueId of the value in parameter
 List<Value> getFilteredAxisValues(String rootId, AxisFilter filter)
          Return a list of String corresponding to the valueId of the value in parameter
 List<Value> getFirstLevelAxisValuesByInstanceId(SearchContext searchContext, String axisId, String instanceId)
           
 List<Value> getFirstLevelAxisValuesByInstanceIds(SearchContext searchContext, String axisId, List<String> instanceIds)
           
 List<Value> getFullPath(String valueId, String treeId)
          Returns the full path of the value
 List<List<String>> getInheritedManagers(Value value)
          retourne les droits hérités sur la valeur
 List<List<String>> getManagers(String axisId, String valueId)
          retourne les droits sur la valeur
 int getNbAxis()
          Return the number of axe.
 int getNbMaxAxis()
          Return the max number of axis.
 List<SearchAxis> getPertinentAxis(SearchContext searchContext, String axisType)
          Search methods
 List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext, String axisType, String instanceId)
           
 List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext, String axisType, String instanceId, AxisFilter filter)
           
 List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext, String axisType, List<String> instanceIds)
           
 List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext, String axisType, List<String> instanceIds, AxisFilter filter)
           
 List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext, String axisId, String valueId, String instanceId)
           
 List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext, String axisId, String valueId, String instanceId, AxisFilter filter)
           
 List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext, String axisId, String valueId, List<String> instanceIds)
           
 List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext, String axisId, String valueId, List<String> instanceIds, AxisFilter filter)
           
 List<ClassifyPosition> getPositions(int silverObjectId, String sComponentId)
           
 Value getRoot(String axisId)
          Return the Value corresponding to the axis done
 ContainerPositionInterface getSilverContentIdSearchContext(int nSilverContentId, String sComponentId)
          Get the SearchContext of the first position for the given SilverContentId
 List<Value> getSubAxisValues(String axisId, String valueId)
           
 String getTreeId(String axisId)
           
 UsedAxis getUsedAxis(String usedAxisId)
          **************************************************
 List<UsedAxis> getUsedAxisByInstanceId(String instanceId)
          Method declaration
 List<UsedAxis> getUsedAxisToClassify(String instanceId, int silverObjectId)
          *********************************************
 Value getValue(String axisId, String valueId)
          Returns a value from an axe.
 void indexAllAxis()
           
 int insertMotherValue(Value valueToInsert, String refValue, String axisId)
          insert a value which is defined like a mother value
 boolean isClassifyingMandatory(String componentId)
          To know if classifying is mandatory on a given component
 boolean isUserManager(String userId)
           
 int moveValueToNewFatherId(Axis axis, Value valueToMove, String newFatherId, int orderNumber)
          Move a value under a new father
 void razManagers(String axisId, String valueId)
          supprime tous les droits sur la valeur
 List<Integer> removePosition(Connection connection, int nSilverContentId)
          Remove all the positions of the given content
 void setManagers(List<String> userIds, List<String> groupIds, String axisId, String valueId)
          met à jour les droits sur la valeur
 int updateAxis(AxisHeader axisHeader)
          Update an axe into the data base.
 int updatePosition(ClassifyPosition position, String instanceId, int silverObjectId)
           
 int updatePosition(ClassifyPosition position, String instanceId, int silverObjectId, boolean alertSubscribers)
           
 int updateUsedAxis(UsedAxis usedAxis)
          Method declaration
 int updateValue(Value value, String treeId)
          Update the selected value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdcBmImpl

public PdcBmImpl()
Constructor declaration

See Also:
Method Detail

getAxisByType

public List<AxisHeader> getAxisByType(String type)
                               throws PdcException
Returns a list of axes sorted in according to the axe type.

Specified by:
getAxisByType in interface PdcBm
Parameters:
type - - the whished type of the axe.
Returns:
a sorted list.
Throws:
PdcException

getAxis

public List<AxisHeader> getAxis()
                         throws PdcException
Returns a list of axes sorted.

Specified by:
getAxis in interface PdcBm
Returns:
a list sorted or null otherwise
Throws:
PdcException
See Also:

getNbAxis

public int getNbAxis()
              throws PdcException
Return the number of axe.

Specified by:
getNbAxis in interface PdcBm
Returns:
the number of axe
Throws:
PdcException
See Also:

getNbMaxAxis

public int getNbMaxAxis()
                 throws PdcException
Return the max number of axis.

Specified by:
getNbMaxAxis in interface PdcBm
Returns:
the max number of axis
Throws:
PdcException

createAxis

public int createAxis(AxisHeader axisHeader)
               throws PdcException
Create an axe into the data base.

Specified by:
createAxis in interface PdcBm
Parameters:
axisHeader - - the object which contains all data about an axe
Returns:
1 if the maximun of axe is atteignable, 2 if the axe already exist, 0 otherwise
Throws:
PdcException
See Also:

updateAxis

public int updateAxis(AxisHeader axisHeader)
               throws PdcException
Update an axe into the data base.

Specified by:
updateAxis in interface PdcBm
Parameters:
axisHeader - - the object which contains all data about an axe
Returns:
2 if the axe already exist, 0 otherwise
Throws:
PdcException
See Also:

deleteAxis

public void deleteAxis(Connection con,
                       String axisId)
                throws PdcException
delete the axe from the data base and all its subtrees.

Specified by:
deleteAxis in interface PdcBm
Parameters:
axisId - - the id of the selected axe
Throws:
PdcException
See Also:

getAxisDetail

public Axis getAxisDetail(String axisId)
                   throws PdcException
Returns a detail axe (header,values).

Specified by:
getAxisDetail in interface PdcBm
Parameters:
axisId - - the id of the selected axe.
Returns:
the Axis Object
Throws:
PdcException
See Also:

getAxisDetail

public Axis getAxisDetail(String axisId,
                          AxisFilter filter)
                   throws PdcException
Specified by:
getAxisDetail in interface PdcBm
Throws:
PdcException

getTreeId

public String getTreeId(String axisId)
                 throws PdcException
Specified by:
getTreeId in interface PdcBm
Throws:
PdcException

getValue

public Value getValue(String axisId,
                      String valueId)
               throws PdcException
Returns a value from an axe.

Specified by:
getValue in interface PdcBm
Parameters:
valueId - - the id of the selected value
Returns:
the Value object
Throws:
PdcException

getAxisValue

public Value getAxisValue(String valueId,
                          String treeId)
                   throws PdcException
Returns a value from an axe.

Specified by:
getAxisValue in interface PdcBm
Parameters:
valueId - - the id of the selected value
Returns:
the Value object
Throws:
PdcException
See Also:

getAxisValuesByName

public List<Value> getAxisValuesByName(String valueName)
                                throws PdcException
Return a list of axis values having the value name in parameter

Specified by:
getAxisValuesByName in interface PdcBm
Parameters:
valueName - - the name of the value.
Returns:
List
Throws:
PdcException
See Also:

getDaughterValues

public List<String> getDaughterValues(String axisId,
                                      String valueId)
                               throws PdcException
Return a list of String corresponding to the valueId of the value in parameter

Specified by:
getDaughterValues in interface PdcBm
Parameters:
axisId -
valueId -
Returns:
List of String
Throws:
PdcException
See Also:

getFilteredAxisValues

public List<Value> getFilteredAxisValues(String rootId,
                                         AxisFilter filter)
                                  throws PdcException
Return a list of String corresponding to the valueId of the value in parameter

Specified by:
getFilteredAxisValues in interface PdcBm
Parameters:
rootId -
filter -
Returns:
List of String
Throws:
PdcException
See Also:

getRoot

public Value getRoot(String axisId)
              throws PdcException
Return the Value corresponding to the axis done

Specified by:
getRoot in interface PdcBm
Parameters:
axisId -
Returns:
com.stratelia.silverpeas.pdc.model.Value
Throws:
PdcException
See Also:

getAxisValues

public List<Value> getAxisValues(int treeId)
                          throws PdcException
Specified by:
getAxisValues in interface PdcBm
Parameters:
treeId - The id of the selected axis.
Returns:
The list of values of the axis.
Throws:
PdcException

insertMotherValue

public int insertMotherValue(Value valueToInsert,
                             String refValue,
                             String axisId)
                      throws PdcException
insert a value which is defined like a mother value

Specified by:
insertMotherValue in interface PdcBm
Parameters:
valueToInsert - - a Value object
refValue - - the id of the Value to insert
Returns:
1 if the name already exist 0 otherwise
Throws:
PdcException
See Also:

moveValueToNewFatherId

public int moveValueToNewFatherId(Axis axis,
                                  Value valueToMove,
                                  String newFatherId,
                                  int orderNumber)
                           throws PdcException
Move a value under a new father

Specified by:
moveValueToNewFatherId in interface PdcBm
Parameters:
axis - : l'axe concerné
valueToMove - - a Value object
newFatherId - - the id of the new father
Returns:
1 if the name already exist 0 otherwise
Throws:
PdcException

getInheritedManagers

public List<List<String>> getInheritedManagers(Value value)
                                        throws PdcException
retourne les droits hérités sur la valeur

Specified by:
getInheritedManagers in interface PdcBm
Parameters:
value -
Returns:
ArrayList( ArrayList UsersId, ArrayList GroupsId)
Throws:
PdcException

getManagers

public List<List<String>> getManagers(String axisId,
                                      String valueId)
                               throws PdcException
retourne les droits sur la valeur

Specified by:
getManagers in interface PdcBm
Parameters:
axisId -
valueId -
Returns:
List(List userIds, List groupIds)
Throws:
PdcException

isUserManager

public boolean isUserManager(String userId)
                      throws PdcException
Specified by:
isUserManager in interface PdcBm
Throws:
PdcException

setManagers

public void setManagers(List<String> userIds,
                        List<String> groupIds,
                        String axisId,
                        String valueId)
                 throws PdcException
met à jour les droits sur la valeur

Specified by:
setManagers in interface PdcBm
Parameters:
userIds -
groupIds -
axisId -
valueId -
Throws:
PdcException

razManagers

public void razManagers(String axisId,
                        String valueId)
                 throws PdcException
Description copied from interface: PdcBm
supprime tous les droits sur la valeur

Specified by:
razManagers in interface PdcBm
Throws:
PdcException

deleteManager

public void deleteManager(String userId)
                   throws PdcException
Supprime les droits associés au userid

Specified by:
deleteManager in interface PdcBm
Parameters:
userId -
Throws:
SQLException
PdcException

deleteGroupManager

public void deleteGroupManager(String groupId)
                        throws PdcException
Supprime les droits associés au groupid

Specified by:
deleteGroupManager in interface PdcBm
Parameters:
groupId -
Throws:
SQLException
PdcException

createDaughterValue

public int createDaughterValue(Value valueToInsert,
                               String refValue,
                               String treeId)
                        throws PdcException
insert a value which is defined like a daughter value

Specified by:
createDaughterValue in interface PdcBm
Parameters:
valueToInsert - - a Value object
refValue - - the id of the Value to insert
Returns:
1 if the name already exist 0 otherwise
Throws:
PdcException
See Also:

createDaughterValueWithId

public String createDaughterValueWithId(Value valueToInsert,
                                        String refValue,
                                        String treeId)
                                 throws PdcException
insert a value which is defined like a daughter value

Specified by:
createDaughterValueWithId in interface PdcBm
Parameters:
valueToInsert - - a Value object
refValue - - the id of the Value to insert
Returns:
-1 if the name already exists id otherwise
Throws:
PdcException
See Also:

updateValue

public int updateValue(Value value,
                       String treeId)
                throws PdcException
Update the selected value

Specified by:
updateValue in interface PdcBm
Parameters:
value - - a Value object
Returns:
1 if the name already exist 0 otherwise
Throws:
PdcException
See Also:

deleteValueAndSubtree

public void deleteValueAndSubtree(Connection con,
                                  String valueId,
                                  String axisId,
                                  String treeId)
                           throws PdcException
Delete a value and it's sub tree

Specified by:
deleteValueAndSubtree in interface PdcBm
Parameters:
valueId - - the id of the select value
Throws:
PdcException
See Also:

deleteValue

public String deleteValue(Connection con,
                          String valueId,
                          String axisId,
                          String treeId)
                   throws PdcException
Delete the selected value. If a daughter of the selected value is named like a sister of her mother the delete is not possible.

Specified by:
deleteValue in interface PdcBm
Parameters:
valueId - - the id of the select value
Returns:
null if the delete is possible, the name of her daughter else.
Throws:
PdcException
See Also:

getFullPath

public List<Value> getFullPath(String valueId,
                               String treeId)
                        throws PdcException
Returns the full path of the value

Specified by:
getFullPath in interface PdcBm
Parameters:
valueId - - the id of the selected value (value is not empty)
Returns:
the complet path - It's a List of ArrayList. Each ArrayList contains the name, the id and the treeId of the value in the path.
Throws:
PdcException
See Also:

getAxisHeader

public AxisHeader getAxisHeader(String axisId)
Description copied from interface: PdcBm
Method declaration

Specified by:
getAxisHeader in interface PdcBm
Returns:
See Also:

getAxisHeader

public AxisHeader getAxisHeader(String axisId,
                                boolean setTranslations)

getDaughters

public List<Value> getDaughters(String axisId,
                                String valueId)
Specified by:
getDaughters in interface PdcBm

getSubAxisValues

public List<Value> getSubAxisValues(String axisId,
                                    String valueId)
Specified by:
getSubAxisValues in interface PdcBm

getUsedAxis

public UsedAxis getUsedAxis(String usedAxisId)
                     throws PdcException
**************************************************

Specified by:
getUsedAxis in interface PdcBm
Throws:
PdcException

getUsedAxisByInstanceId

public List<UsedAxis> getUsedAxisByInstanceId(String instanceId)
                                       throws PdcException
Method declaration

Specified by:
getUsedAxisByInstanceId in interface PdcBm
Parameters:
instanceId -
Returns:
Throws:
PdcException
See Also:

addUsedAxis

public int addUsedAxis(UsedAxis usedAxis)
                throws PdcException
Method declaration

Specified by:
addUsedAxis in interface PdcBm
Parameters:
usedAxis -
Returns:
Throws:
PdcException
See Also:

updateUsedAxis

public int updateUsedAxis(UsedAxis usedAxis)
                   throws PdcException
Method declaration

Specified by:
updateUsedAxis in interface PdcBm
Parameters:
usedAxis -
Returns:
Throws:
PdcException
See Also:

deleteUsedAxis

public void deleteUsedAxis(String usedAxisId)
                    throws PdcException
Method declaration

Specified by:
deleteUsedAxis in interface PdcBm
Parameters:
usedAxisId -
Throws:
PdcException
See Also:

deleteUsedAxis

public void deleteUsedAxis(Collection<String> usedAxisIds)
                    throws PdcException
Method declaration

Specified by:
deleteUsedAxis in interface PdcBm
Parameters:
usedAxisIds -
Throws:
PdcException
See Also:

getUsedAxisToClassify

public List<UsedAxis> getUsedAxisToClassify(String instanceId,
                                            int silverObjectId)
                                     throws PdcException
*********************************************

Specified by:
getUsedAxisToClassify in interface PdcBm
Parameters:
instanceId - the unique identifier of the component instance.
silverObjectId - the Silverpeas object identifier representing the content to classify.
Returns:
a list of axis to use in the classification of a content.
Throws:
PdcException - if an error occurs while getting the PdC axis for the specified component instance.

addPositions

public void addPositions(List<ClassifyPosition> positions,
                         int objectId,
                         String instanceId)
                  throws PdcException
Specified by:
addPositions in interface PdcBm
Throws:
PdcException

copyPositions

public void copyPositions(int fromObjectId,
                          String fromInstanceId,
                          int toObjectId,
                          String toInstanceId)
                   throws PdcException
Specified by:
copyPositions in interface PdcBm
Throws:
PdcException

addPosition

public int addPosition(int silverObjectId,
                       ClassifyPosition position,
                       String sComponentId)
                throws PdcException
Specified by:
addPosition in interface PdcBm
Throws:
PdcException

addPosition

public int addPosition(int silverObjectId,
                       ClassifyPosition position,
                       String sComponentId,
                       boolean alertSubscribers)
                throws PdcException
Specified by:
addPosition in interface PdcBm
Throws:
PdcException

updatePosition

public int updatePosition(ClassifyPosition position,
                          String instanceId,
                          int silverObjectId)
                   throws PdcException
Specified by:
updatePosition in interface PdcBm
Throws:
PdcException

updatePosition

public int updatePosition(ClassifyPosition position,
                          String instanceId,
                          int silverObjectId,
                          boolean alertSubscribers)
                   throws PdcException
Specified by:
updatePosition in interface PdcBm
Throws:
PdcException

deletePosition

public void deletePosition(int positionId,
                           String sComponentId)
                    throws PdcException
Specified by:
deletePosition in interface PdcBm
Throws:
PdcException

getPositions

public List<ClassifyPosition> getPositions(int silverObjectId,
                                           String sComponentId)
                                    throws PdcException
Specified by:
getPositions in interface PdcBm
Throws:
PdcException

getPertinentAxis

public List<SearchAxis> getPertinentAxis(SearchContext searchContext,
                                         String axisType)
                                  throws PdcException
Description copied from interface: PdcBm
Search methods

Specified by:
getPertinentAxis in interface PdcBm
Throws:
PdcException

getPertinentAxisByInstanceId

public List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext,
                                                     String axisType,
                                                     String instanceId)
                                              throws PdcException
Specified by:
getPertinentAxisByInstanceId in interface PdcBm
Throws:
PdcException

getPertinentAxisByInstanceId

public List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext,
                                                     String axisType,
                                                     String instanceId,
                                                     AxisFilter filter)
                                              throws PdcException
Specified by:
getPertinentAxisByInstanceId in interface PdcBm
Throws:
PdcException

getPertinentAxisByInstanceIds

public List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext,
                                                      String axisType,
                                                      List<String> instanceIds)
                                               throws PdcException
Specified by:
getPertinentAxisByInstanceIds in interface PdcBm
Throws:
PdcException

getPertinentAxisByInstanceIds

public List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext,
                                                      String axisType,
                                                      List<String> instanceIds,
                                                      AxisFilter filter)
                                               throws PdcException
Specified by:
getPertinentAxisByInstanceIds in interface PdcBm
Throws:
PdcException

getPertinentDaughterValuesByInstanceId

public List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext,
                                                          String axisId,
                                                          String valueId,
                                                          String instanceId)
                                                   throws PdcException
Specified by:
getPertinentDaughterValuesByInstanceId in interface PdcBm
Throws:
PdcException

getPertinentDaughterValuesByInstanceId

public List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext,
                                                          String axisId,
                                                          String valueId,
                                                          String instanceId,
                                                          AxisFilter filter)
                                                   throws PdcException
Specified by:
getPertinentDaughterValuesByInstanceId in interface PdcBm
Throws:
PdcException

getPertinentDaughterValuesByInstanceIds

public List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext,
                                                           String axisId,
                                                           String valueId,
                                                           List<String> instanceIds)
                                                    throws PdcException
Specified by:
getPertinentDaughterValuesByInstanceIds in interface PdcBm
Throws:
PdcException

getPertinentDaughterValuesByInstanceIds

public List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext,
                                                           String axisId,
                                                           String valueId,
                                                           List<String> instanceIds,
                                                           AxisFilter filter)
                                                    throws PdcException
Specified by:
getPertinentDaughterValuesByInstanceIds in interface PdcBm
Throws:
PdcException

getFirstLevelAxisValuesByInstanceId

public List<Value> getFirstLevelAxisValuesByInstanceId(SearchContext searchContext,
                                                       String axisId,
                                                       String instanceId)
                                                throws PdcException
Specified by:
getFirstLevelAxisValuesByInstanceId in interface PdcBm
Throws:
PdcException

getFirstLevelAxisValuesByInstanceIds

public List<Value> getFirstLevelAxisValuesByInstanceIds(SearchContext searchContext,
                                                        String axisId,
                                                        List<String> instanceIds)
                                                 throws PdcException
Specified by:
getFirstLevelAxisValuesByInstanceIds in interface PdcBm
Throws:
PdcException

isClassifyingMandatory

public boolean isClassifyingMandatory(String componentId)
                               throws PdcException
To know if classifying is mandatory on a given component

Specified by:
isClassifyingMandatory in interface PdcBm
Parameters:
componentId - - id of the component to test
Returns:
true if at least one axis has been selected on component AND at least one axis is mandatory
Throws:
PdcException

indexAllAxis

public void indexAllAxis()
                  throws PdcException
Specified by:
indexAllAxis in interface PdcBm
Throws:
PdcException

getCallParameters

public String getCallParameters(String sComponentId,
                                String sSilverContentId)
Return the parameters for the HTTP call on the classify

Specified by:
getCallParameters in interface ContainerInterface

removePosition

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

Specified by:
removePosition in interface ContainerInterface
Throws:
ContainerManagerException

getSilverContentIdSearchContext

public ContainerPositionInterface getSilverContentIdSearchContext(int nSilverContentId,
                                                                  String sComponentId)
                                                           throws ContainerManagerException
Get the SearchContext of the first position for the given SilverContentId

Specified by:
getSilverContentIdSearchContext in interface ContainerInterface
Throws:
ContainerManagerException

findSilverContentIdByPosition

public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                                   List<String> alComponentId,
                                                   String authorId,
                                                   String afterDate,
                                                   String beforeDate)
                                            throws ContainerManagerException
Specified by:
findSilverContentIdByPosition in interface ContainerInterface
Specified by:
findSilverContentIdByPosition in interface PdcBm
Throws:
ContainerManagerException

findSilverContentIdByPosition

public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                                   List<String> alComponentId,
                                                   String authorId,
                                                   String afterDate,
                                                   String beforeDate,
                                                   boolean recursiveSearch,
                                                   boolean visibilitySensitive)
                                            throws ContainerManagerException
Find all the SilverContentId with the given position

Specified by:
findSilverContentIdByPosition in interface PdcBm
Throws:
ContainerManagerException

findSilverContentIdByPosition

public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                                   List<String> alComponentId)
                                            throws ContainerManagerException
Description copied from interface: PdcBm
Find all the SilverContentId with the given position

Specified by:
findSilverContentIdByPosition in interface ContainerInterface
Specified by:
findSilverContentIdByPosition in interface PdcBm
Throws:
ContainerManagerException

findSilverContentIdByPosition

public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition,
                                                   List<String> alComponentId,
                                                   boolean recursiveSearch,
                                                   boolean visibilitySensitive)
                                            throws ContainerManagerException
Specified by:
findSilverContentIdByPosition in interface PdcBm
Throws:
ContainerManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.