/** * Deletes the specified position of the specified resource content on the PdC configured for the * specified component instance. * * @param positionId the identifier of the position to delete. * @param componentId the identifier of the component that owns the PdC instance. * @throws PdcException if the position or the component identifier doesn't exist or if the * deletion fails. */ public void deletePosition(int positionId, String contentId, String componentId) throws PdcException, ContentManagerException { List<UsedAxis> axis = getAxisUsedInPdcFor(componentId); List<ClassifyPosition> positions = getAllPositions(contentId, componentId); if (positions.size() == 1) { for (UsedAxis anAxis : axis) { if (anAxis.getMandatory() == 1) { throw new PdcPositionDeletionException( getClass().getSimpleName(), SilverTrace.TRACE_LEVEL_ERROR, "Pdc.CANNOT_DELETE_VALUE"); } } } getPdcBm().deletePosition(positionId, componentId); }