Class PublicationI18NDAO
- java.lang.Object
-
- org.silverpeas.core.contribution.publication.dao.PublicationI18NDAO
-
public class PublicationI18NDAO extends Object
This is the Publication Data Access Object.- Author:
- Nicolas Eysseric
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addTranslation(Connection con, PublicationI18N translation)
static void
deleteComponentInstanceData(String componentInstanceId)
Deletes all translations of publications linked to the component instance represented by the given identifier.static Map<String,List<PublicationI18N>>
getIndexedTranslations(Connection con, List<String> publicationIds)
static List<PublicationI18N>
getTranslations(Connection con, PublicationPK pubPK)
static void
removeTranslation(Connection con, int translationId)
static void
removeTranslation(Connection con, String translationId)
static void
removeTranslations(Connection con, PublicationPK pubPK)
static void
updateTranslation(Connection con, PublicationI18N translation)
-
-
-
Method Detail
-
deleteComponentInstanceData
public static void deleteComponentInstanceData(String componentInstanceId) throws SQLException
Deletes all translations of publications linked to the component instance represented by the given identifier.- Parameters:
componentInstanceId
- the identifier of the component instance for which the resources must be deleted.- Throws:
SQLException
- on technical SQL error
-
getTranslations
public static List<PublicationI18N> getTranslations(Connection con, PublicationPK pubPK) throws SQLException
- Throws:
SQLException
-
getIndexedTranslations
public static Map<String,List<PublicationI18N>> getIndexedTranslations(Connection con, List<String> publicationIds) throws SQLException
- Throws:
SQLException
-
addTranslation
public static void addTranslation(Connection con, PublicationI18N translation) throws SQLException
- Throws:
SQLException
-
updateTranslation
public static void updateTranslation(Connection con, PublicationI18N translation) throws SQLException
- Throws:
SQLException
-
removeTranslation
public static void removeTranslation(Connection con, String translationId) throws SQLException
- Throws:
SQLException
-
removeTranslation
public static void removeTranslation(Connection con, int translationId) throws SQLException
- Throws:
SQLException
-
removeTranslations
public static void removeTranslations(Connection con, PublicationPK pubPK) throws SQLException
- Throws:
SQLException
-
-