|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.pdc.control.PdcClassifyBmImpl
public class PdcClassifyBmImpl
Constructor Summary | |
---|---|
PdcClassifyBmImpl()
|
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)
Create two lists of Value. |
void |
deletePosition(int nPositionId,
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)
Find all the SilverContentId with the given position. |
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)
search a defined position for one 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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdcClassifyBmImpl()
Method Detail |
---|
public int isPositionAlreadyExists(int silverObjectId, ClassifyPosition position) throws PdcException
PdcClassifyBm
isPositionAlreadyExists
in interface PdcClassifyBm
PdcException
public int addPosition(int silverObjectId, ClassifyPosition position, String sComponentId) throws PdcException
PdcClassifyBm
addPosition
in interface PdcClassifyBm
silverObjectId
- - id of the object to classifyposition
- - the position of the object
PdcException
public int updatePosition(ClassifyPosition position) throws PdcException
PdcClassifyBm
updatePosition
in interface PdcClassifyBm
position
- - the position of the object
PdcException
public int updatePositions(List<Value> classifyValues, int silverObjectId) throws PdcException
updatePositions
in interface PdcClassifyBm
PdcException
public void deletePosition(int nPositionId, String sComponentId) throws PdcException
PdcClassifyBm
deletePosition
in interface PdcClassifyBm
PdcException
public List<Position> getPositions(int silverObjectId, String sComponentId) throws PdcException
PdcClassifyBm
getPositions
in interface PdcClassifyBm
silverObjectId
- - id of the object
PdcException
public JoinStatement getPositionsJoinStatement(String sComponentId) throws PdcException
getPositionsJoinStatement
in interface PdcClassifyBm
PdcException
public JoinStatement getPositionsJoinStatement(List<String> alComponentId) throws PdcException
getPositionsJoinStatement
in interface PdcClassifyBm
PdcException
public void registerAxis(Connection con, int axisId) throws PdcException
registerAxis
in interface PdcClassifyBm
PdcException
public void unregisterAxis(Connection con, int axisId) throws PdcException
unregisterAxis
in interface PdcClassifyBm
PdcException
public void createValuesAndReplace(Connection con, String axisId, List<String> oldPath, List<String> newPath) throws PdcException
createValuesAndReplace
in interface PdcClassifyBm
con
- - a connection to the databaseaxisId
- - the id of the axisoldPath
- - a list of pathnewPath
- - a list of path
PdcException
public List<Integer> getObjectsByInstance(String instanceId) throws PdcException
PdcClassifyBm
getObjectsByInstance
in interface PdcClassifyBm
PdcException
public boolean hasAlreadyPositions(List<Integer> objectIdList, UsedAxis usedAxis) throws PdcException
hasAlreadyPositions
in interface PdcClassifyBm
objectIdList
- usedAxis
- - the UsedAxis object
PdcException
public List<PertinentAxis> getPertinentAxis(SearchContext searchContext, List<Integer> axisIds) throws PdcException
getPertinentAxis
in interface PdcClassifyBm
PdcException
public List<PertinentValue> getPertinentValues(SearchContext searchContext, int axisId) throws PdcException
getPertinentValues
in interface PdcClassifyBm
PdcException
public List<PertinentAxis> getPertinentAxis(SearchContext searchContext, List<Integer> axisIds, JoinStatement joinStatementAllPositions) throws PdcException
getPertinentAxis
in interface PdcClassifyBm
PdcException
public PertinentAxis getPertinentAxis(SearchContext searchContext, String axisId, String sRootValue, JoinStatement joinStatementAllPositions) throws PdcException
getPertinentAxis
in interface PdcClassifyBm
PdcException
public List<PertinentValue> getPertinentValues(SearchContext searchContext, int axisId, JoinStatement joinStatementAllPositions) throws PdcException
getPertinentValues
in interface PdcClassifyBm
PdcException
public List<ObjectValuePair> getObjectValuePairs(SearchContext searchContext, int axisId, JoinStatement joinStatementAllPositions) throws PdcException
getObjectValuePairs
in interface PdcClassifyBm
PdcException
public List<Integer> removePosition(Connection connection, int nSilverContentId) throws PdcException
removePosition
in interface PdcClassifyBm
connection
- nSilverContentId
-
PdcException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate) throws PdcException
findSilverContentIdByPosition
in interface PdcClassifyBm
containerPosition
- alComponentId
- authorId
- afterDate
- beforeDate
-
PdcException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId, String authorId, String afterDate, String beforeDate, boolean recursiveSearch, boolean visibilitySensitive) throws PdcException
findSilverContentIdByPosition
in interface PdcClassifyBm
containerPosition
- alComponentId
- authorId
- afterDate
- beforeDate
- recursiveSearch
- visibilitySensitive
-
PdcException
public List<Integer> findSilverContentIdByPosition(ContainerPositionInterface containerPosition, List<String> alComponentId) throws PdcException
findSilverContentIdByPosition
in interface PdcClassifyBm
PdcException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |