|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.pdc.control.PdcBmImpl
@Named(value="pdcBm") public class PdcBmImpl
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 |
---|
public PdcBmImpl()
Method Detail |
---|
public List<AxisHeader> getAxisByType(String type) throws PdcException
getAxisByType
in interface PdcBm
type
- - the whished type of the axe.
PdcException
public List<AxisHeader> getAxis() throws PdcException
getAxis
in interface PdcBm
PdcException
public int getNbAxis() throws PdcException
getNbAxis
in interface PdcBm
PdcException
public int getNbMaxAxis() throws PdcException
getNbMaxAxis
in interface PdcBm
PdcException
public int createAxis(AxisHeader axisHeader) throws PdcException
createAxis
in interface PdcBm
axisHeader
- - the object which contains all data about an axe
PdcException
public int updateAxis(AxisHeader axisHeader) throws PdcException
updateAxis
in interface PdcBm
axisHeader
- - the object which contains all data about an axe
PdcException
public void deleteAxis(Connection con, String axisId) throws PdcException
deleteAxis
in interface PdcBm
axisId
- - the id of the selected axe
PdcException
public Axis getAxisDetail(String axisId) throws PdcException
getAxisDetail
in interface PdcBm
axisId
- - the id of the selected axe.
PdcException
public Axis getAxisDetail(String axisId, AxisFilter filter) throws PdcException
getAxisDetail
in interface PdcBm
PdcException
public String getTreeId(String axisId) throws PdcException
getTreeId
in interface PdcBm
PdcException
public Value getValue(String axisId, String valueId) throws PdcException
getValue
in interface PdcBm
valueId
- - the id of the selected value
PdcException
public Value getAxisValue(String valueId, String treeId) throws PdcException
getAxisValue
in interface PdcBm
valueId
- - the id of the selected value
PdcException
public List<Value> getAxisValuesByName(String valueName) throws PdcException
getAxisValuesByName
in interface PdcBm
valueName
- - the name of the value.
PdcException
public List<String> getDaughterValues(String axisId, String valueId) throws PdcException
getDaughterValues
in interface PdcBm
axisId
- valueId
-
PdcException
public List<Value> getFilteredAxisValues(String rootId, AxisFilter filter) throws PdcException
getFilteredAxisValues
in interface PdcBm
rootId
- filter
-
PdcException
public Value getRoot(String axisId) throws PdcException
getRoot
in interface PdcBm
axisId
-
PdcException
public List<Value> getAxisValues(int treeId) throws PdcException
getAxisValues
in interface PdcBm
treeId
- The id of the selected axis.
PdcException
public int insertMotherValue(Value valueToInsert, String refValue, String axisId) throws PdcException
insertMotherValue
in interface PdcBm
valueToInsert
- - a Value objectrefValue
- - the id of the Value to insert
PdcException
public int moveValueToNewFatherId(Axis axis, Value valueToMove, String newFatherId, int orderNumber) throws PdcException
moveValueToNewFatherId
in interface PdcBm
axis
- : l'axe concernévalueToMove
- - a Value objectnewFatherId
- - the id of the new father
PdcException
public List<List<String>> getInheritedManagers(Value value) throws PdcException
getInheritedManagers
in interface PdcBm
value
-
PdcException
public List<List<String>> getManagers(String axisId, String valueId) throws PdcException
getManagers
in interface PdcBm
axisId
- valueId
-
PdcException
public boolean isUserManager(String userId) throws PdcException
isUserManager
in interface PdcBm
PdcException
public void setManagers(List<String> userIds, List<String> groupIds, String axisId, String valueId) throws PdcException
setManagers
in interface PdcBm
userIds
- groupIds
- axisId
- valueId
-
PdcException
public void razManagers(String axisId, String valueId) throws PdcException
PdcBm
razManagers
in interface PdcBm
PdcException
public void deleteManager(String userId) throws PdcException
deleteManager
in interface PdcBm
userId
-
SQLException
PdcException
public void deleteGroupManager(String groupId) throws PdcException
deleteGroupManager
in interface PdcBm
groupId
-
SQLException
PdcException
public int createDaughterValue(Value valueToInsert, String refValue, String treeId) throws PdcException
createDaughterValue
in interface PdcBm
valueToInsert
- - a Value objectrefValue
- - the id of the Value to insert
PdcException
public String createDaughterValueWithId(Value valueToInsert, String refValue, String treeId) throws PdcException
createDaughterValueWithId
in interface PdcBm
valueToInsert
- - a Value objectrefValue
- - the id of the Value to insert
PdcException
public int updateValue(Value value, String treeId) throws PdcException
updateValue
in interface PdcBm
value
- - a Value object
PdcException
public void deleteValueAndSubtree(Connection con, String valueId, String axisId, String treeId) throws PdcException
deleteValueAndSubtree
in interface PdcBm
valueId
- - the id of the select value
PdcException
public String deleteValue(Connection con, String valueId, String axisId, String treeId) throws PdcException
deleteValue
in interface PdcBm
valueId
- - the id of the select value
PdcException
public List<Value> getFullPath(String valueId, String treeId) throws PdcException
getFullPath
in interface PdcBm
valueId
- - the id of the selected value (value is not empty)
PdcException
public AxisHeader getAxisHeader(String axisId)
PdcBm
getAxisHeader
in interface PdcBm
public AxisHeader getAxisHeader(String axisId, boolean setTranslations)
public List<Value> getDaughters(String axisId, String valueId)
getDaughters
in interface PdcBm
public List<Value> getSubAxisValues(String axisId, String valueId)
getSubAxisValues
in interface PdcBm
public UsedAxis getUsedAxis(String usedAxisId) throws PdcException
getUsedAxis
in interface PdcBm
PdcException
public List<UsedAxis> getUsedAxisByInstanceId(String instanceId) throws PdcException
getUsedAxisByInstanceId
in interface PdcBm
instanceId
-
PdcException
public int addUsedAxis(UsedAxis usedAxis) throws PdcException
addUsedAxis
in interface PdcBm
usedAxis
-
PdcException
public int updateUsedAxis(UsedAxis usedAxis) throws PdcException
updateUsedAxis
in interface PdcBm
usedAxis
-
PdcException
public void deleteUsedAxis(String usedAxisId) throws PdcException
deleteUsedAxis
in interface PdcBm
usedAxisId
-
PdcException
public void deleteUsedAxis(Collection<String> usedAxisIds) throws PdcException
deleteUsedAxis
in interface PdcBm
usedAxisIds
-
PdcException
public List<UsedAxis> getUsedAxisToClassify(String instanceId, int silverObjectId) throws PdcException
getUsedAxisToClassify
in interface PdcBm
instanceId
- the unique identifier of the component instance.silverObjectId
- the Silverpeas object identifier representing the content to classify.
PdcException
- if an error occurs while getting the PdC axis for the specified component
instance.public void addPositions(List<ClassifyPosition> positions, int objectId, String instanceId) throws PdcException
addPositions
in interface PdcBm
PdcException
public void copyPositions(int fromObjectId, String fromInstanceId, int toObjectId, String toInstanceId) throws PdcException
copyPositions
in interface PdcBm
PdcException
public int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId) throws PdcException
addPosition
in interface PdcBm
PdcException
public int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId, boolean alertSubscribers) throws PdcException
addPosition
in interface PdcBm
PdcException
public int updatePosition(ClassifyPosition position, String instanceId, int silverObjectId) throws PdcException
updatePosition
in interface PdcBm
PdcException
public int updatePosition(ClassifyPosition position, String instanceId, int silverObjectId, boolean alertSubscribers) throws PdcException
updatePosition
in interface PdcBm
PdcException
public void deletePosition(int positionId, String sComponentId) throws PdcException
deletePosition
in interface PdcBm
PdcException
public List<ClassifyPosition> getPositions(int silverObjectId, String sComponentId) throws PdcException
getPositions
in interface PdcBm
PdcException
public List<SearchAxis> getPertinentAxis(SearchContext searchContext, String axisType) throws PdcException
PdcBm
getPertinentAxis
in interface PdcBm
PdcException
public List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext, String axisType, String instanceId) throws PdcException
getPertinentAxisByInstanceId
in interface PdcBm
PdcException
public List<SearchAxis> getPertinentAxisByInstanceId(SearchContext searchContext, String axisType, String instanceId, AxisFilter filter) throws PdcException
getPertinentAxisByInstanceId
in interface PdcBm
PdcException
public List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext, String axisType, List<String> instanceIds) throws PdcException
getPertinentAxisByInstanceIds
in interface PdcBm
PdcException
public List<SearchAxis> getPertinentAxisByInstanceIds(SearchContext searchContext, String axisType, List<String> instanceIds, AxisFilter filter) throws PdcException
getPertinentAxisByInstanceIds
in interface PdcBm
PdcException
public List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext, String axisId, String valueId, String instanceId) throws PdcException
getPertinentDaughterValuesByInstanceId
in interface PdcBm
PdcException
public List<Value> getPertinentDaughterValuesByInstanceId(SearchContext searchContext, String axisId, String valueId, String instanceId, AxisFilter filter) throws PdcException
getPertinentDaughterValuesByInstanceId
in interface PdcBm
PdcException
public List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext, String axisId, String valueId, List<String> instanceIds) throws PdcException
getPertinentDaughterValuesByInstanceIds
in interface PdcBm
PdcException
public List<Value> getPertinentDaughterValuesByInstanceIds(SearchContext searchContext, String axisId, String valueId, List<String> instanceIds, AxisFilter filter) throws PdcException
getPertinentDaughterValuesByInstanceIds
in interface PdcBm
PdcException
public List<Value> getFirstLevelAxisValuesByInstanceId(SearchContext searchContext, String axisId, String instanceId) throws PdcException
getFirstLevelAxisValuesByInstanceId
in interface PdcBm
PdcException
public List<Value> getFirstLevelAxisValuesByInstanceIds(SearchContext searchContext, String axisId, List<String> instanceIds) throws PdcException
getFirstLevelAxisValuesByInstanceIds
in interface PdcBm
PdcException
public boolean isClassifyingMandatory(String componentId) throws PdcException
isClassifyingMandatory
in interface PdcBm
componentId
- - id of the component to test
PdcException
public void indexAllAxis() throws PdcException
indexAllAxis
in interface PdcBm
PdcException
public String getCallParameters(String sComponentId, String sSilverContentId)
getCallParameters
in interface ContainerInterface
public List<Integer> removePosition(Connection connection, int nSilverContentId) throws ContainerManagerException
removePosition
in interface ContainerInterface
ContainerManagerException
public ContainerPositionInterface getSilverContentIdSearchContext(int nSilverContentId, String sComponentId) throws ContainerManagerException
getSilverContentIdSearchContext
in interface ContainerInterface
ContainerManagerException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate) throws ContainerManagerException
findSilverContentIdByPosition
in interface ContainerInterface
findSilverContentIdByPosition
in interface PdcBm
ContainerManagerException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate, boolean recursiveSearch, boolean visibilitySensitive) throws ContainerManagerException
findSilverContentIdByPosition
in interface PdcBm
ContainerManagerException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId) throws ContainerManagerException
PdcBm
findSilverContentIdByPosition
in interface ContainerInterface
findSilverContentIdByPosition
in interface PdcBm
ContainerManagerException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, boolean recursiveSearch, boolean visibilitySensitive) throws ContainerManagerException
findSilverContentIdByPosition
in interface PdcBm
ContainerManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |