Class DefaultCoordinatesService
- java.lang.Object
-
- org.silverpeas.core.node.coordinates.service.DefaultCoordinatesService
-
- All Implemented Interfaces:
ComponentInstanceDeletion
,CoordinatesService
@Service public class DefaultCoordinatesService extends Object implements CoordinatesService, ComponentInstanceDeletion
Class declaration- Version:
- %I%, %G%
- Author:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultCoordinatesService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addCoordinate(CoordinatePK pk, List<CoordinatePoint> coordinatePoints)
Method declarationvoid
addPointToAllCoordinates(CoordinatePK pk, CoordinatePoint point)
Method declarationvoid
delete(String componentInstanceId)
Deletes the resources belonging to the specified component instance.void
deleteCoordinates(CoordinatePK pk, List<String> coordinates)
Method declarationvoid
deleteCoordinatesByPoints(CoordinatePK pk, List<String> coordinatePoints)
Method declarationCollection<String>
getCoordinateIdsByNodeId(CoordinatePK pk, String nodeId)
Method declarationList<Coordinate>
getCoordinatesByCoordinateIds(List<String> coordinateIds, CoordinatePK pk)
Method declarationCollection<String>
getCoordinatesByFatherIds(List<Integer> fatherIds, CoordinatePK pk)
Used only by the specific job'peas SmallAds This method must not be used by an another Job'peas Instead, you must use getCoordinatesByFatherPaths()Collection<String>
getCoordinatesByFatherPaths(List<String> fatherPaths, CoordinatePK pk)
-
-
-
Method Detail
-
getCoordinatesByFatherIds
public Collection<String> getCoordinatesByFatherIds(List<Integer> fatherIds, CoordinatePK pk)
Used only by the specific job'peas SmallAds This method must not be used by an another Job'peas Instead, you must use getCoordinatesByFatherPaths()- Specified by:
getCoordinatesByFatherIds
in interfaceCoordinatesService
- Parameters:
fatherIds
-pk
-- Returns:
-
getCoordinatesByFatherPaths
public Collection<String> getCoordinatesByFatherPaths(List<String> fatherPaths, CoordinatePK pk)
- Specified by:
getCoordinatesByFatherPaths
in interfaceCoordinatesService
- Returns:
-
addCoordinate
public int addCoordinate(CoordinatePK pk, List<CoordinatePoint> coordinatePoints)
Method declaration- Specified by:
addCoordinate
in interfaceCoordinatesService
- Parameters:
pk
-coordinatePoints
-- Returns:
-
deleteCoordinates
public void deleteCoordinates(CoordinatePK pk, List<String> coordinates)
Method declaration- Specified by:
deleteCoordinates
in interfaceCoordinatesService
- Parameters:
pk
-coordinates
-
-
deleteCoordinatesByPoints
public void deleteCoordinatesByPoints(CoordinatePK pk, List<String> coordinatePoints)
Method declaration- Specified by:
deleteCoordinatesByPoints
in interfaceCoordinatesService
- Parameters:
pk
-coordinatePoints
-
-
getCoordinatesByCoordinateIds
public List<Coordinate> getCoordinatesByCoordinateIds(List<String> coordinateIds, CoordinatePK pk)
Method declaration- Specified by:
getCoordinatesByCoordinateIds
in interfaceCoordinatesService
- Parameters:
coordinateIds
-pk
-- Returns:
-
addPointToAllCoordinates
public void addPointToAllCoordinates(CoordinatePK pk, CoordinatePoint point)
Method declaration- Specified by:
addPointToAllCoordinates
in interfaceCoordinatesService
- Parameters:
pk
-point
-
-
getCoordinateIdsByNodeId
public Collection<String> getCoordinateIdsByNodeId(CoordinatePK pk, String nodeId)
Method declaration- Specified by:
getCoordinateIdsByNodeId
in interfaceCoordinatesService
- Parameters:
pk
-nodeId
-- Returns:
-
delete
public void delete(String componentInstanceId)
Deletes the resources belonging to the specified component instance. This method is invoked by Silverpeas when a component instance is being deleted.- Specified by:
delete
in interfaceComponentInstanceDeletion
- Parameters:
componentInstanceId
- the unique identifier of a component instance.
-
-